Skip to content

Commit

Permalink
update csproj to copy dll to Notepad++ dir
Browse files Browse the repository at this point in the history
rdipardo's initial commit broke the old behavior
    of always creating a plugin dir in the correct place
    and then copying the dll to the directory.
Unfortunately, I still can't copy testfiles to the plugin directory
    because the RecursiveDir item is completely cursed
  • Loading branch information
molsonkiko committed Feb 25, 2024
1 parent 36eabd1 commit b6822c4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 10 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.0.3] - (UNRELEASED) YYYY-MM-DD

### Added

1. Added new `Allocate indicators demo`, demonstrating how to allocate and use indicators to style text.
2. Demo on the `SCN_MODIFIED` and `NPPN_GLOBALMODIFIED` notifications, which are used to track when a document is modified.

### Changed

1. Update method of building a DLL to [remove a dependency on .NET Framework 3.5](https://github.com/molsonkiko/NppCSharpPluginPack/pull/3).

### Fixed

1. Greatly reduced unnecessary calls to `NPPM_GETCURRENTLANGTYPE` in `DoInsertHtmlCloseTag` by caching the lexer language whenever the lexer language changes or a buffer is opened.
Expand All @@ -35,8 +44,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

1. Ported over (from kbilsted's old template) the [ToolsForMaintainersOfTheProjectTemplate](/ToolsForMaintainersOfTheProjectTemplate/) folder for updating some of the [PluginInfrastructure](/NppCSharpPluginPack/PluginInfrastructure/) files to stay up to date with Notepad++.
2. Added new [PopupDialog form](/docs/README.md#popup-dialog), which demonstrates how to configure a pop-up dialog that has select-able fields like textboxes or buttons.
3. Added new `Allocate indicators demo`, demonstrating how to allocate and use indicators to style text.
4. Demo on the `SCN_MODIFIED` and `NPPN_GLOBALMODIFIED` notifications, which are used to track when a document is modified.

### Changed

Expand Down
32 changes: 26 additions & 6 deletions NppCSharpPluginPack/NppCSharpPluginPack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,33 @@
Project="$(PkgUnmanagedExports_Repack_Upgrade)\build\UnmanagedExports.Repack.Upgrade.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
<Target Name="CopyTestFiles" BeforeTargets="Build">
-->
<Target Name="CopyBin" DependsOnTargets="Build" AfterTargets="Build" >
<!-- copy over the appropriate DLL and test files to the Notepad++ directory.
Otherwise Notepad++ will just load without the plugin. -->
<ItemGroup>
<TESTFILES Include="testfiles\**\*.*" />
<NPP64BIT Include="$(ProgramW6432)\Notepad++\plugins\CSharpPluginPack" />
<NPP32BIT Include="$(MSBuildProgramFiles32)\Notepad++\plugins\CSharpPluginPack" />
</ItemGroup>
<Copy SourceFiles="@(TESTFILES)" DestinationFolder="$(ProgramW6432)\Notepad++\plugins\CSharpPluginPack\%(RecursiveDir)" SkipUnchangedFiles="true" />
<Copy SourceFiles="@(TESTFILES)" DestinationFolder="$(MSBuildProgramFiles32)\Notepad++\plugins\CSharpPluginPack\%(RecursiveDir)" SkipUnchangedFiles="true" />
<MakeDir Directories="@(NPP64BIT)"
Condition=" '$(Platform)' == 'x64' " />
<MakeDir Directories="@(NPP32BIT)"
Condition=" '$(Platform)' == 'x86' " />
<Copy SourceFiles="bin\Release-x64\CSharpPluginPack.dll"
Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "
DestinationFolder="@(NPP64BIT)"
SkipUnchangedFiles="true" />
<Copy SourceFiles="bin\Release\CSharpPluginPack.dll"
Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "
DestinationFolder="@(NPP32BIT)"
SkipUnchangedFiles="true" />
<Copy SourceFiles="bin\Debug-x64\CSharpPluginPack.dll"
Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "
DestinationFolder="@(NPP64BIT)"
SkipUnchangedFiles="true" />
<Copy SourceFiles="bin\Debug\CSharpPluginPack.dll"
Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "
DestinationFolder="@(NPP32BIT)"
SkipUnchangedFiles="true" />
</Target>
-->
</Project>
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.4")]
[assembly: AssemblyFileVersion("0.0.2.4")]
[assembly: AssemblyVersion("0.0.2.5")]
[assembly: AssemblyFileVersion("0.0.2.5")]

0 comments on commit b6822c4

Please sign in to comment.