CoreCommonProps.props
1 <Project> 2 <Import Project="..\..\Common.Dotnet.CsWinRT.props" /> 3 <Import Project="..\..\Common.Dotnet.AotCompatibility.props" /> 4 <PropertyGroup> 5 <Nullable>enable</Nullable> 6 <!-- For MVVM Toolkit Partial Properties/AOT support --> 7 <LangVersion>preview</LangVersion> 8 9 <OutputPath>..\..\..\$(Platform)\$(Configuration)\WinUI3Apps\CmdPal\</OutputPath> 10 <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> 11 <AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> 12 <!-- MRT from windows app sdk will search for a pri file with the same name of the module before defaulting to resources.pri --> 13 <ProjectPriFileName>$(RootNamespace).pri</ProjectPriFileName> 14 15 <!-- Disable SA1313 for Primary Constructor fields conflict https://learn.microsoft.com/dotnet/csharp/programming-guide/classes-and-structs/instance-constructors#primary-constructors --> 16 <NoWarn>SA1313;</NoWarn> 17 18 <ImplicitUsings>enable</ImplicitUsings> 19 </PropertyGroup> 20 21 <PropertyGroup> 22 <CsWinRTAotOptimizerEnabled>true</CsWinRTAotOptimizerEnabled> 23 </PropertyGroup> 24 25 <ItemGroup> 26 <PackageReference Include="Microsoft.Windows.CsWin32"> 27 <PrivateAssets>all</PrivateAssets> 28 <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> 29 </PackageReference> 30 <PackageReference Include="Microsoft.WindowsAppSDK" /> 31 <PackageReference Include="Microsoft.Web.WebView2" /> 32 <!-- This line forces the WebView2 version used by Windows App SDK to be the one we expect from Directory.Packages.props . --> 33 </ItemGroup> 34 35 <ItemGroup> 36 <ProjectReference Include="$(MSBuildThisFileDirectory)\extensionsdk\Microsoft.CommandPalette.Extensions.Toolkit\Microsoft.CommandPalette.Extensions.Toolkit.csproj" /> 37 </ItemGroup> 38 39 <ItemGroup> 40 <EmbeddedResource Update="Properties\Resources.resx"> 41 <Generator>PublicResXFileCodeGenerator</Generator> 42 <LastGenOutput>Resources.Designer.cs</LastGenOutput> 43 </EmbeddedResource> 44 </ItemGroup> 45 46 <ItemGroup> 47 <AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> 48 <_Parameter1>$(AssemblyName).UnitTests</_Parameter1> 49 </AssemblyAttribute> 50 </ItemGroup> 51 52 </Project>