Skip to content

Commit c321ccc

Browse files
committed
Add development documentation
Signed-off-by: José Simões <[email protected]>
1 parent 4a08938 commit c321ccc

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

Diff for: README.md

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ In case you want to be in the bleeding edge of technology and use the new stuff
3333
Please follow the instructions [here](http://docs.myget.org/docs/walkthrough/getting-started-with-vsix#Working_with_your_Vsix_feed) on how to add the feed to your Visual Studio instance.
3434
Use this URL for the feed: `https://www.myget.org/F/nanoframework-dev/vsix/`.
3535

36+
## Developing for the Visual Studio extension
37+
38+
If you are working on developing code for **nanoFramework** Visual Studio extension please take a look at the available documentation [here]().
3639

3740
## Credits
3841

Diff for: docs/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Documentation related with Visual Studio extension development
2+
3+
## Internal documentation
4+
5+
* [Developer notes](developer-notes.md)
6+
7+
## External documentation
8+
9+
* [Visual Studio Extensibility Samples](https://github.com/Microsoft/VSSDK-Extensibility-Samples)
10+
* [Extensibility in Visual Studio](https://docs.microsoft.com/en-us/visualstudio/extensibility/extensibility-in-visual-studio?view=vs-2017)
11+
* [Visual Studio SDK](https://docs.microsoft.com/en-us/visualstudio/extensibility/visual-studio-sdk?view=vs-2017)
12+
* [Visual Studio SDK reference](https://docs.microsoft.com/en-us/visualstudio/extensibility/visual-studio-sdk-reference?view=vs-2017)
13+
* [Posts about VS extensibility in "The Visual Studio Blog"](https://blogs.msdn.microsoft.com/visualstudio/tag/extensibility/)

Diff for: docs/developer-notes.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Developer notes
2+
3+
## Launching Visual Studio experimental instance
4+
5+
To launch Visual Studio experimental instance:
6+
7+
1. Open VS developer command prompt.
8+
2. Enter `"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe" /rootSuffix Exp`
9+
10+
> Mind to adjust the path above to your setup.
11+
12+
## Reset VS experimental instance
13+
14+
In case you need to reset the Visual Studio experimental instance:
15+
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`.
19+
20+
> Mind to adjust the path above to your setup.
21+
> The RootSuffix above (**_d9708c20Exp**) will be different for each installation. Please amend the above to match your local one.
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.
24+
25+
## Debugging with the **nanoFramework** Debugger library
26+
27+
In situations where you want to debug something in the **nanoFramework** Debugger library please follow these steps:
28+
29+
1. Make sure to update (or checkout the appropriate commit) in the `nf-debugger` git sub-module.
30+
1. Load the `nanoFramework.Tools.Debugger.sln` solution there, restore the NuGets for the solution and rebuild it. After this you can close the solution.
31+
1. Load the **nanoFramework** extension solution in Visual Studio.
32+
1. Expand the folder `debugger-library` and find there 2 projects for each of the components.
33+
1. Right click and hit `Reload` for each of the project there. Like this.
34+
35+
![](images/reloading-debugger-projects.png)
36+
37+
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. Perform whatever debug that you need by placing breakpoint on any source file of the debugger library.
39+
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.
40+
1. Unload the debugger library projects from the solution.

Diff for: docs/images/reloading-debugger-projects.png

26.2 KB
Loading

0 commit comments

Comments
 (0)