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

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -