Skip to content

Commit

Permalink
xcopy calls must be reserved for windows operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
obones authored and savornicesei committed Feb 17, 2021
1 parent 8126f7c commit 8614d82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>xcopy /y/q "$(ProjectDir)..\..\tools\sleeper.exe" "$(TargetDir)"</PreBuildEvent>
<PreBuildEvent Condition=" '$(OS)' != 'Unix' >xcopy /y/q "$(ProjectDir)..\..\tools\sleeper.exe" "$(TargetDir)"</PreBuildEvent>
<PreBuildEvent Condition=" '$(OS)' == 'Unix' >cp -f "$(ProjectDir)..\..\tools\sleeper.exe" "$(TargetDir)"</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
5 changes: 0 additions & 5 deletions project/Core.Extensions/Core.Extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,4 @@
fi
</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>
if not "$(ConfigurationName)" == "Build" xcopy /Y "$(TargetPath)" "$(SolutionDir)console\bin\$(ConfigurationName)\"
</PostBuildEvent>
</PropertyGroup>
</Project>

0 comments on commit 8614d82

Please sign in to comment.