Common.Dotnet.CsWinRT.props
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Some items may be set in Directory.Build.props in root --> 3 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 4 <Import Project=".\Common.Dotnet.PrepareGeneratedFolder.targets" /> 5 6 <PropertyGroup> 7 <WindowsSdkPackageVersion>10.0.26100.68-preview</WindowsSdkPackageVersion> 8 <TargetFramework>net9.0-windows10.0.26100.0</TargetFramework> 9 <TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion> 10 <SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion> 11 <RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers> 12 </PropertyGroup> 13 14 <!-- Common from the debug / release items --> 15 <PropertyGroup> 16 <WarningLevel>4</WarningLevel> 17 <NoWarn></NoWarn> 18 <TreatWarningsAsErrors>True</TreatWarningsAsErrors> 19 <WarningsNotAsErrors>CA1824;CA1416;CA1720;CA1859;CA2263;CA2022;MVVMTK0045;MVVMTK0049</WarningsNotAsErrors> 20 </PropertyGroup> 21 22 <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> 23 <DebugSymbols>true</DebugSymbols> 24 <DefineConstants>DEBUG;TRACE</DefineConstants> 25 <DebugType>portable</DebugType> 26 <Optimize>false</Optimize> 27 </PropertyGroup> 28 29 <PropertyGroup Condition="'$(Configuration)' == 'Release'"> 30 <ErrorReport>prompt</ErrorReport> 31 <DefineConstants>RELEASE;TRACE</DefineConstants> 32 <DebugType>pdbonly</DebugType> 33 <Optimize>true</Optimize> 34 </PropertyGroup> 35 36 <ItemGroup> 37 <PackageReference Include="Microsoft.Windows.CsWinRT" /> 38 </ItemGroup> 39 40 <!-- this may need to be removed on future CsWinRT upgrades--> 41 <Target Name="RemoveCsWinRTPackageAnalyzer" BeforeTargets="CoreCompile"> 42 <ItemGroup> 43 <Analyzer Remove="@(Analyzer)" Condition="%(Analyzer.NuGetPackageId) == 'Microsoft.Windows.CsWinRT'" /> 44 </ItemGroup> 45 </Target> 46 </Project>