You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developer-notes.md
+19-6
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@ To launch Visual Studio experimental instance:
14
14
In case you need to reset the Visual Studio experimental instance:
15
15
16
16
1. Open VS developer command prompt.
17
-
2. Navigate to `e:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VSSDK\VisualStudioIntegration\Tools\Bin`.
18
-
3. Enter `CreateExpInstance /Reset /VSInstance=15.0 /RootSuffix=_d9708c20Exp`.
17
+
2. Navigate to `C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VSSDK\VisualStudioIntegration\Tools\Bin`.
18
+
3. Enter `CreateExpInstance /Reset /VSInstance=17.0 /RootSuffix=_d9708c20Exp`.
19
19
20
-
> Mind to adjust the path above to your setup and Visual Studio version (15.0 for VS2017 and 16.0 for VS2019).
20
+
> Mind to adjust the path above to your setup and Visual Studio version (16.0 for VS2019 and 17.0 for VS2022).
21
21
> The RootSuffix above (**_d9708c20Exp**) will be different for each installation. Please amend the above to match your local one. You can find the suffix by navigating to the following folder in the users folder `C:\Users\johndoe\AppData\Roaming\Microsoft\VisualStudio`.
22
22
23
-
You'll want to reset VS experimental instance on a number of situations. Usually this is when you need to start fresh because there is too much clutter, a failed deployment that is creeplying your debugging or whenever a new Visual Studio update is installed.
23
+
You'll want to reset VS experimental instance on a number of situations. Usually this is when you need to start fresh because there is too much clutter, a failed deployment that is creeplying your debugging or whenever you install a new Visual Studio version.
24
24
25
25
## Debugging with the **nanoFramework** Debugger library
26
26
@@ -35,7 +35,20 @@ In situations where you want to debug something in the **nanoFramework** Debugge
35
35
36
36

37
37
38
-
6. Use the [NuGet reference switcher extension](https://marketplace.visualstudio.com/items?itemName=RicoSuter.NuGetReferenceSwitcherforVisualStudio2017) to switch the references to `nanoFramework.Tools.Debugger` from NuGet to project and point it to the appropriate project.
38
+
1. Remove the `nf-debugger` Nuget package from the extension projects.
39
+
1. Add a reference to the `nf-debugger` project in the extension projects.
40
+
1. Build as ususal.
39
41
1. Perform whatever debug that you need by placing breakpoint on any source file of the debugger library.
40
-
1. When you are done open the NuGet reference switcher extension again, open the Switch to NuGet references tab and revert the debugger library references. Make sure that the "remove projects from solution" is **not** checked.
42
+
1. When you are done remove the reference to the `nf-debugger` project and add back the Nuget package.
41
43
1. Unload the debugger library projects from the solution.
44
+
45
+
## Known issue with debugging in the experimental instance
46
+
47
+
Because of several `CodeBase` entries required for Visual Studio to load the extension assemblies (see [here](https://developercommunity.visualstudio.com/t/Image-icons-from-image-catalog-not-showi/10791720) for the details) you can run into issues for the experimental instance to load the actual assembly of the build you're trying to debug.
48
+
If that happens, you're forced to follow these steps:
49
+
50
+
1. Make a copy of the folder providing the targets and props of the project system. For Visual Studio 2022, this is usually located at `C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\nanoFramework\v1.0`. Delete the DLLs from there. Leave only the targets and props files.
51
+
1. Uninstall the official .NET nanoFramework extension from Visual Studio.
52
+
1. Load the extension solution and work as usual.
53
+
54
+
Before installing back the official .NET nanoFramework extension, mind to rename (or remove) the project system folder. Failing to do so will cause the extension install to fail.
0 commit comments