Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

MSBuild target path is incorrect for Notepad 8.2.x #85

Open
Leonard-The-Wise opened this issue Feb 13, 2022 · 1 comment
Open

MSBuild target path is incorrect for Notepad 8.2.x #85

Leonard-The-Wise opened this issue Feb 13, 2022 · 1 comment

Comments

@Leonard-The-Wise
Copy link

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" />
@kbilsted
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants