c# - csproj copy files depending on operating system -
i using .net core build cross platform class library. depending on operating system c# .net core project built using .csproj file, need copy native library project's output directory. e.g., os x want copy .dylib file, windows want copy .dll file, linux want copy .so file.
how can condition clause in .csproj itemgroup?
<itemgroup> <content include="libnative.dylib" condition=" '$(configuration)|$(platform)' == 'debug|osx' "> <copytooutputdirectory>preservenewest</copytooutputdirectory> </content> </itemgroup>
$(platform)
not seem work. there different variable can use?
Comments
Post a Comment