AppInstallerCLIE2ETests.csproj (4002B)
1 <Project Sdk="Microsoft.NET.Sdk"> 2 3 <PropertyGroup> 4 <TargetFramework>net8.0-windows</TargetFramework> 5 <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\AppInstallerCLIE2ETests\</OutDir> 6 <IsPackable>false</IsPackable> 7 <Platforms>x64;x86</Platforms> 8 <OutputType>Library</OutputType> 9 <DocumentationFile>$(OutDir)\AppInstallerCLIE2ETests.xml</DocumentationFile> 10 <GenerateAssemblyInfo>false</GenerateAssemblyInfo> 11 </PropertyGroup> 12 13 <PropertyGroup> 14 <!-- Disable warning for CS1591 because auto generated Microsoft.Management.Deployment --> 15 <!-- For our code, we still have stylecops acting on it. --> 16 <NoWarn>1591</NoWarn> 17 </PropertyGroup> 18 19 <PropertyGroup Condition="'$(Configuration)'=='Release'"> 20 <TreatWarningsAsErrors>true</TreatWarningsAsErrors> 21 </PropertyGroup> 22 23 <ItemGroup> 24 <PackageReference Include="Microsoft.PowerShell.SDK" /> 25 <PackageReference Include="Newtonsoft.Json" /> 26 <PackageReference Include="Microsoft.Msix.Utils" /> 27 <PackageReference Include="Microsoft.Win32.Registry" /> 28 <PackageReference Include="Microsoft.Windows.CsWinRT" /> 29 <PackageReference Include="nunit" /> 30 <PackageReference Include="NUnit3TestAdapter" /> 31 <PackageReference Include="Microsoft.NET.Test.Sdk" /> 32 <PackageReference Include="StyleCop.Analyzers"> 33 <PrivateAssets>all</PrivateAssets> 34 <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> 35 </PackageReference> 36 <PackageReference Include="System.Data.SqlClient" /> 37 <PackageReference Include="System.Text.RegularExpressions" /> 38 </ItemGroup> 39 40 <!-- CsWinRT properties --> 41 <PropertyGroup> 42 <CsWinRTWindowsMetadata>10.0.26100.0</CsWinRTWindowsMetadata> 43 </PropertyGroup> 44 45 <ItemGroup> 46 <Content Include="TestData\**"> 47 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 48 </Content> 49 </ItemGroup> 50 51 <ItemGroup> 52 <Content Include="..\..\doc\admx\DesktopAppInstaller.admx" Link="TestData\DesktopAppInstaller.admx"> 53 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 54 </Content> 55 <AdditionalFiles Include="..\stylecop.json" Link="stylecop.json" /> 56 </ItemGroup> 57 58 <ItemGroup> 59 <ProjectReference Include="..\IndexCreationTool\IndexCreationTool.csproj" /> 60 <ProjectReference Include="..\Microsoft.Management.Deployment.Projection\Microsoft.Management.Deployment.Projection.csproj" /> 61 <ProjectReference Include="..\Microsoft.Management.Deployment.InProc\Microsoft.Management.Deployment.InProc.vcxproj"> 62 <ReferenceOutputAssembly>False</ReferenceOutputAssembly> 63 </ProjectReference> 64 <ProjectReference Include="..\WindowsPackageManager\WindowsPackageManager.vcxproj"> 65 <ReferenceOutputAssembly>False</ReferenceOutputAssembly> 66 </ProjectReference> 67 <ProjectReference Include="..\WinGetSourceCreator\WinGetSourceCreator.csproj" /> 68 <ProjectReference Include="..\WinGetTestCommon\WinGetTestCommon.csproj" /> 69 <ProjectReference Include="..\WinGetUtil\WinGetUtil.vcxproj"> 70 <ReferenceOutputAssembly>False</ReferenceOutputAssembly> 71 </ProjectReference> 72 </ItemGroup> 73 74 <ItemGroup> 75 <None Update="Test.runsettings"> 76 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 77 </None> 78 </ItemGroup> 79 80 <Target Name="PostBuild" AfterTargets="PostBuildEvent"> 81 <!-- Rename dll to align with the expected search pattern performed by CsWinRT --> 82 <Copy SourceFiles="$(TargetDir)..\Microsoft.Management.Deployment.InProc\Microsoft.Management.Deployment.InProc.dll" DestinationFiles="$(TargetDir)Microsoft.Management.Deployment.dll" /> 83 <Copy SourceFiles="$(TargetDir)..\WindowsPackageManager\WindowsPackageManager.dll" DestinationFiles="$(TargetDir)WindowsPackageManager.dll" /> 84 <Copy SourceFiles="$(TargetDir)..\WinGetUtil\WinGetUtil.dll" DestinationFiles="$(TargetDir)WinGetUtil.dll" /> 85 </Target> 86 </Project>