Skip to content

Commit

Permalink
v0.0.3: make NPP starting dir configurable
Browse files Browse the repository at this point in the history
Release version 0.0.3
This has been tested successfully on Notepad++ versions
    7.3.3, 8.3.3, 8.5.5, 8.5.8, and 8.6.4
    (both 32-bit and 64-bit versions of each.
Now the user can specify a non-ProgramFiles directory
    to start from, using the command line. See Changelog.
  • Loading branch information
molsonkiko committed Feb 27, 2024
1 parent 135b08e commit 9e80383
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Change Log
All [notable changes](#002---2024-02-06) to this project will be documented in this file.
All [notable changes](#003---2024-02-26) to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
Expand All @@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Avoid plugin crash when too-large int values are entered in the selection-remembering form.
- Holding down `Enter` in a multiline textbox does not add multiple new lines; it only adds one newline on keyup.

## [0.0.3] - (UNRELEASED) YYYY-MM-DD
## [0.0.3] - 2024-02-26

### Added

Expand All @@ -31,7 +31,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed

1. Update method of building a DLL to [remove a dependency on .NET Framework 3.5](https://github.com/molsonkiko/NppCSharpPluginPack/pull/3).
1. Update method of building a DLL to [remove a dependency on .NET Framework 3.5](https://github.com/molsonkiko/NppCSharpPluginPack/pull/4).
- This also allows the user the specify whatever Notepad++ directory they wish, using the `NppPath32` (to specify 32-bit Notepad++ directory) and `NppPath64` (to specify 64-bit directory) variables from the command line like so: `msbuild /p:NppPath32="D:\portable\npp\x86";NppPath64="somewhere\else\x64" ...`

### Fixed

Expand Down
10 changes: 6 additions & 4 deletions NppCSharpPluginPack/NppCSharpPluginPack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@
<PropertyGroup>
<!-- Default values for debugging so it start correct version of Notepad++
$(ProgramW6432) and $(MSBuildProgramFiles32) points to the 64 and 32 bit "Program Files" directories -->
<NppPath64 Condition="'$(NppPath64)' == ''">$(ProgramW6432)\Notepad++</NppPath64>
<NppPath32 Condition="'$(NppPath32)' == ''">$(MSBuildProgramFiles32)\Notepad++</NppPath32>
<StartAction>Program</StartAction>
<StartProgram Condition="'$(Platform)'=='x64'">$(ProgramW6432)\Notepad++\notepad++.exe</StartProgram>
<StartProgram Condition="'$(Platform)'=='x86'">$(MSBuildProgramFiles32)\Notepad++\notepad++.exe</StartProgram>
<StartProgram Condition="'$(Platform)'=='x64'">$(NppPath64)\notepad++.exe</StartProgram>
<StartProgram Condition="'$(Platform)'=='x86'">$(NppPath32)\notepad++.exe</StartProgram>
</PropertyGroup>
<PropertyGroup>
<RestorePackagesPath>$(MSBuildProjectDirectory)\packages</RestorePackagesPath>
Expand Down Expand Up @@ -198,8 +200,8 @@
<!-- copy over the appropriate DLL and test files to the Notepad++ directory.
Otherwise Notepad++ will just load without the plugin. -->
<ItemGroup>
<NPP64BIT Include="$(ProgramW6432)\Notepad++\plugins\CSharpPluginPack" />
<NPP32BIT Include="$(MSBuildProgramFiles32)\Notepad++\plugins\CSharpPluginPack" />
<NPP64BIT Include="$(NppPath64)\plugins\CSharpPluginPack" />
<NPP32BIT Include="$(NppPath32)\plugins\CSharpPluginPack" />
</ItemGroup>
<MakeDir Directories="@(NPP64BIT)"
Condition=" '$(Platform)' == 'x64' " />
Expand Down
4 changes: 2 additions & 2 deletions NppCSharpPluginPack/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.0.2.5")]
[assembly: AssemblyFileVersion("0.0.2.5")]
[assembly: AssemblyVersion("0.0.3.0")]
[assembly: AssemblyFileVersion("0.0.3.0")]
Binary file modified NppCSharpPluginPack/Release_x64.zip
Binary file not shown.
Binary file modified NppCSharpPluginPack/Release_x86.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you have any issues, see if [updating to the latest release](https://github.c

[Read the docs.](/docs/README.md)

[Read information about the plugin architecture (some of this may be out of date)](/PluginPackArchitecture.md)
[Read information about the plugin architecture (*some of this may be out of date*)](/PluginPackArchitecture.md)

[View past changes.](/CHANGELOG.md)

Expand Down

0 comments on commit 9e80383

Please sign in to comment.