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

Commit 681e053

Browse files
committed
copy plugindll only when notepad++ path exists
1 parent dee0a84 commit 681e053

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Demo Plugin/NppManagedPluginDemo/DllExport/NppPlugin.DllExport.targets

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
LibToolDllPath="$(DevEnvDir)"
2222
SdkPath="$(SDK40ToolsPath)"/>
2323

24-
<Copy SourceFiles="$(TargetPath)" DestinationFolder="C:\Program Files (x86)\Notepad++\plugins\" ContinueOnError="false" />
24+
<Copy
25+
SourceFiles="$(TargetPath)"
26+
DestinationFolder="C:\Program Files (x86)\Notepad++\plugins\"
27+
Condition="Exists('C:\Program Files (x86)\Notepad++\plugins\')"
28+
ContinueOnError="false" />
2529
</Target>
2630
</Project>

Visual Studio Project Template C#/DllExport/NppPlugin.DllExport.targets

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
LibToolDllPath="$(DevEnvDir)"
2222
SdkPath="$(SDK40ToolsPath)"/>
2323

24-
<Copy SourceFiles="$(TargetPath)" DestinationFolder="C:\Program Files (x86)\Notepad++\plugins\" ContinueOnError="false" />
24+
<Copy
25+
SourceFiles="$(TargetPath)"
26+
DestinationFolder="C:\Program Files (x86)\Notepad++\plugins\"
27+
Condition="Exists('C:\Program Files (x86)\Notepad++\plugins\')"
28+
ContinueOnError="false" />
2529
</Target>
2630
</Project>

0 commit comments

Comments
 (0)