SDK folder not available

Hello,

In Visual Studio, I get the message that the SDK location can't be found by the plcncli. The simplified location is shown as follows:

C:\\SDK\\2021\\

This location does not exsist, since a backslash can't be in the foldername. For this reason i'm also not able to create the folder again. But the plcncli also asks to remove the SDK from the settings.\
\
. Since it can't find the location when deleting, it's looping those pop-ups.

How am I able to delete the SDK location?

You can try removing the SDK path using the plcncli command in a Windows terminal.

The command would be something like:
[code]plcncli set setting SdkPaths C:\\SDK\\2021\\ --remove[/code]

Hello,

The best way to remove the faulty SDK path is the integrated SDK management. You can find it in Visual Studio under Tools --> Options --> PLCnext Technology --> SDKs. If it is an issue with your project, e.g. you moved the project from an other PC and did not install the same SDK (same controller and version, the SDK location does not matter for this), you can right click your project in the [i]Solution Explorer[/i] and at the very bottom under PLCnext Technology --> Set Targets, you can remove and add build targets.

If all of this does not work and you didn't set any thing else in your settings (only this one faulty SDK). Just delete the [i]settings.xml[/i] in [i]%appdata%/plcncli[/i] or open the settings.xml and delete the line to your erroneous SDK e.g. 
[code]C:\\SDK\\2021\\[/code]
I wonder, how you where able to set this wrong path? Maybe we could avoid this in future.

I’m also not sure how it happened.

What solved it was using dubble backslashes.
[quote]plcncli set setting SdkPaths C:\\\\SDK\\\\2021\\ --remove[/quote]