Directory.Build.props 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <Project>
  2. <PropertyGroup>
  3. <CodeAnalysisRuleSet>../Custom.ruleset</CodeAnalysisRuleSet>
  4. <AvaloniaVersion>11.2.5</AvaloniaVersion>
  5. </PropertyGroup>
  6. <ItemGroup>
  7. <PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
  8. </ItemGroup>
  9. <ItemGroup>
  10. <AdditionalFiles Include="$(SolutionDir)/stylecop.json" />
  11. </ItemGroup>
  12. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND '$(Platform)' == 'x64'">
  13. <RuntimeIdentifier>win-x64</RuntimeIdentifier>
  14. </PropertyGroup>
  15. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND '$(Platform)' == 'ARM64'">
  16. <RuntimeIdentifier>win-arm64</RuntimeIdentifier>
  17. </PropertyGroup>
  18. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Linux')) AND '$(Platform)' == 'x64'">
  19. <RuntimeIdentifier>linux-x64</RuntimeIdentifier>
  20. </PropertyGroup>
  21. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Linux')) AND '$(Platform)' == 'ARM64'">
  22. <RuntimeIdentifier>linux-arm64</RuntimeIdentifier>
  23. </PropertyGroup>
  24. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('OSX')) AND '$(Platform)' == 'x64'">
  25. <RuntimeIdentifier>osx-x64</RuntimeIdentifier>
  26. </PropertyGroup>
  27. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('OSX')) AND '$(Platform)' == 'ARM64'">
  28. <RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
  29. </PropertyGroup>
  30. <PropertyGroup Condition="'$(Platform)'=='X64'">
  31. <PlatformTarget>x64</PlatformTarget>
  32. </PropertyGroup>
  33. <PropertyGroup Condition="'$(Platform)'=='ARM64'">
  34. <PlatformTarget>arm64</PlatformTarget>
  35. </PropertyGroup>
  36. <PropertyGroup Condition="'$(Configuration)'=='MSIX Debug'">
  37. <Optimize>false</Optimize>
  38. <DefineConstants>DEBUG;TRACE</DefineConstants>
  39. </PropertyGroup>
  40. <PropertyGroup Condition="'$(Configuration)'=='MSIX'">
  41. <DefineConstants>TRACE;RELEASE</DefineConstants>
  42. <DebugSymbols>False</DebugSymbols>
  43. <DebugType>None</DebugType>
  44. <Optimize>true</Optimize>
  45. </PropertyGroup>
  46. <PropertyGroup Condition="'$(Configuration)'=='Release'">
  47. <DefineConstants>TRACE;UPDATE</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)'=='Steam'">
  59. <DefineConstants>TRACE;RELEASE;STEAM</DefineConstants>
  60. <Optimize>True</Optimize>
  61. <DebugSymbols>False</DebugSymbols>
  62. <DebugType>None</DebugType>
  63. </PropertyGroup>
  64. <PropertyGroup Condition="'$(Configuration)'=='DevSteam'">
  65. <DefineConstants>TRACE;RELEASE;STEAM</DefineConstants>
  66. <Optimize>True</Optimize>
  67. <DebugSymbols>False</DebugSymbols>
  68. <DebugType>None</DebugType>
  69. </PropertyGroup>
  70. <PropertyGroup Condition=" '$(Configuration)' == 'DevRelease' ">
  71. <DefineConstants>TRACE;UPDATE;RELEASE</DefineConstants>
  72. <Optimize>True</Optimize>
  73. <DebugSymbols>False</DebugSymbols>
  74. <DebugType>None</DebugType>
  75. </PropertyGroup>
  76. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x64'">
  77. <DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
  78. </PropertyGroup>
  79. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-arm64'">
  80. <DefineConstants>$(DefineConstants);WINDOWS</DefineConstants>
  81. </PropertyGroup>
  82. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='linux-x64'">
  83. <DefineConstants>$(DefineConstants);LINUX</DefineConstants>
  84. </PropertyGroup>
  85. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='linux-arm64'">
  86. <DefineConstants>$(DefineConstants);LINUX</DefineConstants>
  87. </PropertyGroup>
  88. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='osx-x64'">
  89. <DefineConstants>$(DefineConstants);MACOS</DefineConstants>
  90. </PropertyGroup>
  91. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='osx-arm64'">
  92. <DefineConstants>$(DefineConstants);MACOS</DefineConstants>
  93. </PropertyGroup>
  94. </Project>