Skip to content

Commit b0d6941

Browse files
committed
Only run pre build event on windows
1 parent 4e94214 commit b0d6941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/Website/Website.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@
501501
</VisualStudio>
502502
</ProjectExtensions>
503503
<PropertyGroup>
504-
<PreBuildEvent>IF NOT EXIST "$(ProjectDir)Web.config" (
504+
<PreBuildEvent Condition="'$(OS)' == 'Windows_NT'">IF NOT EXIST "$(ProjectDir)Web.config" (
505505
copy "$(ProjectDir)Web.config.template" "$(ProjectDir)Web.config"
506506
)</PreBuildEvent>
507507
</PropertyGroup>

0 commit comments

Comments
 (0)