I have an <Exec>
task that MSBuild runs whenever it builds my library. It looks like this:
<Exec Command="..\packages\xunit.runner.console.2.0.0\tools\xunit.console bin\$(Configuration)\Core.dll"/>
It seems to be working fine, however I'm worried that this may not work on Linux and OS X because it uses backslashes instead of the standard /
for the directory separator. Is there a way to call Path.Combine from MSBuild so I can avoid this problem?
Use msbuild property functions
$([System.IO.Path]::Combine($(Path1),$(Path2)))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With