Directory.Build.props 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <Project>
  2. <PropertyGroup>
  3. <CodeAnalysisRuleSet>../Custom.ruleset</CodeAnalysisRuleSet>
  4. <AvaloniaVersion>11.0.10</AvaloniaVersion>
  5. </PropertyGroup>
  6. <ItemGroup>
  7. <PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
  8. </ItemGroup>
  9. <ItemGroup>
  10. <AdditionalFiles Include="../stylecop.json" />
  11. </ItemGroup>
  12. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X64'">
  13. <RuntimeIdentifier>win-x64</RuntimeIdentifier>
  14. </PropertyGroup>
  15. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Windows')) AND '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'Arm64'">
  16. <RuntimeIdentifier>win-arm64</RuntimeIdentifier>
  17. </PropertyGroup>
  18. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Linux')) AND '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X64'">
  19. <RuntimeIdentifier>linux-x64</RuntimeIdentifier>
  20. </PropertyGroup>
  21. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('Linux')) AND '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'Arm64'">
  22. <RuntimeIdentifier>linux-arm64</RuntimeIdentifier>
  23. </PropertyGroup>
  24. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('OSX')) AND '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X64'">
  25. <RuntimeIdentifier>osx-x64</RuntimeIdentifier>
  26. </PropertyGroup>
  27. <PropertyGroup Condition="$([MSBuild]::IsOsPlatform('OSX')) AND '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == '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. <DebugType>full</DebugType>
  38. <DebugSymbols>true</DebugSymbols>
  39. <Optimize>false</Optimize>
  40. <DefineConstants>DEBUG;TRACE</DefineConstants>
  41. </PropertyGroup>
  42. <PropertyGroup Condition="'$(Configuration)'=='MSIX'">
  43. <DefineConstants>TRACE;RELEASE</DefineConstants>
  44. <Optimize>true</Optimize>
  45. </PropertyGroup>
  46. <PropertyGroup Condition="'$(Configuration)'=='Release'">
  47. <DefineConstants>TRACE;UPDATE</DefineConstants>
  48. <Optimize>true</Optimize>
  49. </PropertyGroup>
  50. <PropertyGroup Condition="'$(Configuration)'=='Debug'">
  51. <DebugType>full</DebugType>
  52. <DebugSymbols>true</DebugSymbols>
  53. <WarningLevel>0</WarningLevel>
  54. <DefineConstants>DEBUG;TRACE</DefineConstants>
  55. </PropertyGroup>
  56. <PropertyGroup Condition="'$(Configuration)'=='Steam'">
  57. <DefineConstants>TRACE;RELEASE;STEAM</DefineConstants>
  58. <Optimize>True</Optimize>
  59. </PropertyGroup>
  60. <PropertyGroup Condition="'$(Configuration)'=='DevSteam'">
  61. <DefineConstants>TRACE;RELEASE;STEAM</DefineConstants>
  62. <Optimize>True</Optimize>
  63. </PropertyGroup>
  64. <PropertyGroup Condition=" '$(Configuration)' == 'DevRelease' ">
  65. <DefineConstants>TRACE;UPDATE;RELEASE</DefineConstants>
  66. <Optimize>True</Optimize>
  67. </PropertyGroup>
  68. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x64'">
  69. <DefineConstants>WINDOWS</DefineConstants>
  70. </PropertyGroup>
  71. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-arm64'">
  72. <DefineConstants>WINDOWS</DefineConstants>
  73. </PropertyGroup>
  74. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='linux-x64'">
  75. <DefineConstants>LINUX</DefineConstants>
  76. </PropertyGroup>
  77. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='linux-arm64'">
  78. <DefineConstants>LINUX</DefineConstants>
  79. </PropertyGroup>
  80. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='osx-x64'">
  81. <DefineConstants>MACOS</DefineConstants>
  82. </PropertyGroup>
  83. <PropertyGroup Condition="'$(RuntimeIdentifier)'=='osx-arm64'">
  84. <DefineConstants>MACOS</DefineConstants>
  85. </PropertyGroup>
  86. </Project>