Directory.Build.props 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <Project>
  2. <PropertyGroup>
  3. <CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Custom.ruleset</CodeAnalysisRuleSet>
  4. <AvaloniaVersion>11.3.9-cibuild0004033-alpha</AvaloniaVersion>
  5. </PropertyGroup>
  6. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND '$(Platform)' == 'x64'">
  7. <RuntimeIdentifier>win-x64</RuntimeIdentifier>
  8. </PropertyGroup>
  9. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND '$(Platform)' == 'ARM64'">
  10. <RuntimeIdentifier>win-arm64</RuntimeIdentifier>
  11. </PropertyGroup>
  12. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Linux')) AND '$(Platform)' == 'x64'">
  13. <RuntimeIdentifier>linux-x64</RuntimeIdentifier>
  14. </PropertyGroup>
  15. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Linux')) AND '$(Platform)' == 'ARM64'">
  16. <RuntimeIdentifier>linux-arm64</RuntimeIdentifier>
  17. </PropertyGroup>
  18. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('OSX')) AND '$(Platform)' == 'x64'">
  19. <RuntimeIdentifier>osx-x64</RuntimeIdentifier>
  20. </PropertyGroup>
  21. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('OSX')) AND '$(Platform)' == 'ARM64'">
  22. <RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
  23. </PropertyGroup>
  24. <PropertyGroup Condition="'$(Platform)'=='X64'">
  25. <PlatformTarget>x64</PlatformTarget>
  26. </PropertyGroup>
  27. <PropertyGroup Condition="'$(Platform)'=='ARM64'">
  28. <PlatformTarget>arm64</PlatformTarget>
  29. </PropertyGroup>
  30. <PropertyGroup Condition="'$(Configuration)'=='MSIX Debug'">
  31. <Optimize>false</Optimize>
  32. <DefineConstants>DEBUG;TRACE</DefineConstants>
  33. </PropertyGroup>
  34. <PropertyGroup Condition="'$(Configuration)'=='MSIX'">
  35. <DefineConstants>TRACE;RELEASE</DefineConstants>
  36. <DebugSymbols>False</DebugSymbols>
  37. <DebugType>None</DebugType>
  38. <Optimize>true</Optimize>
  39. </PropertyGroup>
  40. <PropertyGroup Condition="'$(Configuration)'=='Release'">
  41. <DefineConstants>TRACE;UPDATE;RELEASE</DefineConstants>
  42. <DebugSymbols>False</DebugSymbols>
  43. <DebugType>None</DebugType>
  44. <Optimize>true</Optimize>
  45. </PropertyGroup>
  46. <PropertyGroup Condition="'$(Configuration)'=='ReleaseNoUpdate'">
  47. <DefineConstants>TRACE;RELEASE</DefineConstants>
  48. <DebugSymbols>False</DebugSymbols>
  49. <DebugType>None</DebugType>
  50. <Optimize>true</Optimize>
  51. </PropertyGroup>
  52. <PropertyGroup Condition="'$(Configuration)'=='Debug'">
  53. <DebugType>full</DebugType>
  54. <DebugSymbols>true</DebugSymbols>
  55. <WarningLevel>0</WarningLevel>
  56. <DefineConstants>DEBUG;TRACE</DefineConstants>
  57. </PropertyGroup>
  58. <PropertyGroup Condition="'$(Configuration)'=='DebugSteam'">
  59. <DefineConstants>TRACE;DEBUG;STEAM</DefineConstants>
  60. <DebugSymbols>true</DebugSymbols>
  61. <DebugType>full</DebugType>
  62. </PropertyGroup>
  63. <PropertyGroup Condition="'$(Configuration)'=='Steam'">
  64. <DefineConstants>TRACE;RELEASE;STEAM</DefineConstants>
  65. <Optimize>True</Optimize>
  66. <DebugSymbols>False</DebugSymbols>
  67. <DebugType>None</DebugType>
  68. </PropertyGroup>
  69. <PropertyGroup Condition="'$(Configuration)'=='DevSteam'">
  70. <DefineConstants>TRACE;RELEASE;STEAM</DefineConstants>
  71. <Optimize>True</Optimize>
  72. <DebugSymbols>False</DebugSymbols>
  73. <DebugType>None</DebugType>
  74. </PropertyGroup>
  75. <PropertyGroup Condition=" '$(Configuration)' == 'DevRelease' ">
  76. <DefineConstants>TRACE;UPDATE;RELEASE</DefineConstants>
  77. <Optimize>True</Optimize>
  78. <DebugSymbols>False</DebugSymbols>
  79. <DebugType>None</DebugType>
  80. </PropertyGroup>
  81. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x64'">
  82. <DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
  83. </PropertyGroup>
  84. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-arm64'">
  85. <DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
  86. </PropertyGroup>
  87. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='linux-x64'">
  88. <DefineConstants>$(DefineConstants);LINUX</DefineConstants>
  89. </PropertyGroup>
  90. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='linux-arm64'">
  91. <DefineConstants>$(DefineConstants);LINUX</DefineConstants>
  92. </PropertyGroup>
  93. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='osx-x64'">
  94. <DefineConstants>$(DefineConstants);MACOS</DefineConstants>
  95. </PropertyGroup>
  96. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='osx-arm64'">
  97. <DefineConstants>$(DefineConstants);MACOS</DefineConstants>
  98. </PropertyGroup>
  99. </Project>