NotepadPlusPlusPluginPack.Net icon indicating copy to clipboard operation
NotepadPlusPlusPluginPack.Net copied to clipboard

MSBuild target path is incorrect for Notepad 8.2.x

Open Leonard-The-Wise opened this issue 3 years ago • 1 comments

Current DestinationFolder on NppPlugin.DllExport.targets file for the project is either $(MSBuildProgramFiles32)\Notepad++\plugins
or $(ProgramW6432)\Notepad++\plugins\

But if you compile your plugin under this directories, Notepad++ won't recognize the installation anymore. You must specify a folder with your project name. I fixed the strings here, if you want to update the Git with it.

<Copy 
    SourceFiles="$(TargetPath)" 
    DestinationFolder="$(MSBuildProgramFiles32)\Notepad++\plugins\$(MSBuildProjectName)\"
    Condition="Exists('$(MSBuildProgramFiles32)\Notepad++\plugins\') AND '$(Platform)'=='x86'"
    ContinueOnError="false" /> 
<Copy 
    SourceFiles="$(TargetPath)" 
    DestinationFolder="$(ProgramW6432)\Notepad++\plugins\$(MSBuildProjectName)\"
    Condition="Exists('$(ProgramW6432)\Notepad++\plugins\') AND '$(Platform)'=='x64'"
    ContinueOnError="false" />

Leonard-The-Wise avatar Feb 13 '22 04:02 Leonard-The-Wise

Thanks for reporting. If you can, please submit a PR that fixes it:)

kbilsted avatar May 28 '22 14:05 kbilsted