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
{{ message }}
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This is a fork of UFO's plugin package updated for VS2015
13
13
## Getting started
14
14
1. Download a [release](https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net/releases/)
15
15
2. Place the visual studio project template (the `NppPlugin.zip`) in the visual studio path (typically `"My Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C#\"`)
16
-
3.Ensure you have installed **Visual C++** from the visual studio installer otherwise your project wont build<br>
16
+
3.If you intend to debug Notepad++ itself (and not just the plugin) ensure you have installed **Visual C++** from the visual studio installer<br>
17
17

18
18
4. Create a new project inside Visual studio using `file -> new -> project -> visual C# -> Notepad++ project`
19
19
5. Build (building will copy the dll to the `Notepad++/plugins` folder)
@@ -39,6 +39,7 @@ This is a fork of UFO's plugin package updated for VS2015
If your plugin is not on the list, please make a PR with a link to it.. :-)
44
45
@@ -76,9 +77,17 @@ The architecture of the plugin is.
76
77
+-----------+
77
78
78
79
### How to debug plugins
79
-
80
+
* Install both 32 bit and 64 bit versions of Notepad++ (if you intend to publish for both)
81
+
* Give yourself write permissions to the Notepad++ plugin folders
82
+
* Usually `C:\Program Files (x86)\Notepad++\plugins\` (for 32 bit) and `C:\Program Files\Notepad++\plugins\` (for 64 bit)
83
+
* Or run Visual Studio as administrator (not recommended)
84
+
* In Visual Studio, choose Platform to debug (x86 or x64)
85
+
* Make sure Notepad++ is not running
86
+
* Start Debugging (F5 by default)
87
+
88
+
Or you can attach to a running process:
80
89
* start notepad++
81
-
* in Visualstudio: debug -> attach to process... -> notepad++.exe
90
+
* in Visual Studio: debug -> attach to process... -> notepad++.exe
82
91
83
92
you can now set breakpoints and step-execute. (currently not working in v6.9.2 https://github.com/notepad-plus-plus/notepad-plus-plus/issues/1964)
84
93
@@ -107,6 +116,14 @@ The best way is to install [MSBuild.ILMerge.Task][1] via NuGet in your plugin pr
107
116
108
117
*Note: To use ILMerge in your plugin you have to change the **Target Framework** of your plugin project to at least .NET Framework 4.0 (CP). ILMerge can work with .NET 3.5 and below, but requires additional configuration and adaptation. If you do not required the extreme backwards compatibility, upgrade the .NET Framework target as quick and easy solution.*
109
118
119
+
### 32 vs 64 bit
120
+
Notepad++ comes in two versions, 32 bit and 64 bit. Unfortunately this means plugins need to create two versions as well.
121
+
122
+
Using this template you can switch between the two using the Visual Studio "Target Platform" drop-down.
123
+
124
+
When publishing your plugin you should build in Release mode for both x86 and x64 and publish both resulting dll's (e.g. `bin/Release/myPlugin.dll` and `/bin/Release-x64/MyPlugin.dll`)
125
+
126
+
110
127
## Versioning
111
128
Until we reach v1.0 expect a bit of chaos and breaking changes.
0 commit comments