Skip to content

Commit 90bccd4

Browse files
committed
Add post-build event check for components directory before copying .dll
1 parent e898d9d commit 90bccd4

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,7 @@ ModelManifest.xml
242242
.paket/paket.exe
243243

244244
# FAKE - F# Make
245-
.fake/
245+
.fake/
246+
247+
# Foobar2000 portable installation directory
248+
foobar2000/

foo_input_msu.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
9999
</Link>
100100
<PostBuildEvent>
101-
<Command>copy "$(TargetPath)" "$(SolutionDir)foobar2000\components"</Command>
101+
<Command>if exist "$(SolutionDir)foobar2000\components" copy "$(TargetPath)" "$(SolutionDir)foobar2000\components"</Command>
102102
</PostBuildEvent>
103103
<PostBuildEvent>
104104
<Message>Copy output to foobar2000 components folder</Message>
@@ -120,7 +120,7 @@
120120
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
121121
</Link>
122122
<PostBuildEvent>
123-
<Command>copy "$(TargetPath)" "$(SolutionDir)foobar2000\components"</Command>
123+
<Command>if exist "$(SolutionDir)foobar2000\components" copy "$(TargetPath)" "$(SolutionDir)foobar2000\components"</Command>
124124
</PostBuildEvent>
125125
<PostBuildEvent>
126126
<Message>Copy output to foobar2000 components folder</Message>
@@ -146,7 +146,7 @@
146146
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
147147
</Link>
148148
<PostBuildEvent>
149-
<Command>copy "$(TargetPath)" "$(SolutionDir)foobar2000\components"</Command>
149+
<Command>if exist "$(SolutionDir)foobar2000\components" copy "$(TargetPath)" "$(SolutionDir)foobar2000\components"</Command>
150150
</PostBuildEvent>
151151
<PostBuildEvent>
152152
<Message>Copy output to foobar2000 components folder</Message>
@@ -172,7 +172,7 @@
172172
<OutputFile>$(OutDir)$(TargetName)$(TargetExt)</OutputFile>
173173
</Link>
174174
<PostBuildEvent>
175-
<Command>copy "$(TargetPath)" "$(SolutionDir)foobar2000\components"</Command>
175+
<Command>if exist "$(SolutionDir)foobar2000\components" copy "$(TargetPath)" "$(SolutionDir)foobar2000\components"</Command>
176176
</PostBuildEvent>
177177
<PostBuildEvent>
178178
<Message>Copy output to foobar2000 components folder</Message>

0 commit comments

Comments
 (0)