Microsoft.Management.Configuration.UnitTests.csproj (4048B)
1 <Project Sdk="Microsoft.NET.Sdk"> 2 3 <PropertyGroup> 4 <TargetFramework>net8.0-windows10.0.26100.0</TargetFramework> 5 <Nullable>enable</Nullable> 6 <SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion> 7 <Platforms>x64;x86;arm64</Platforms> 8 <OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)\</OutputPath> 9 <RuntimeIdentifiers>win-x64;win-x86;win-arm64</RuntimeIdentifiers> 10 </PropertyGroup> 11 12 <PropertyGroup Condition="'$(Configuration)'=='Release'"> 13 <!-- See comments on Microsoft.Management.Configuration.Processor.csproj --> 14 <!-- <TreatWarningsAsErrors>true</TreatWarningsAsErrors> --> 15 </PropertyGroup> 16 17 <ItemGroup> 18 <AdditionalFiles Include="..\stylecop.json" Link="stylecop.json" /> 19 </ItemGroup> 20 21 <ItemGroup> 22 <PackageReference Include="Microsoft.NET.Test.Sdk" /> 23 <PackageReference Include="Newtonsoft.Json" /> 24 <PackageReference Include="System.Net.Http" /> 25 <PackageReference Include="System.Private.Uri" /> 26 <PackageReference Include="System.Text.RegularExpressions" /> 27 <PackageReference Include="xunit" /> 28 <PackageReference Include="xunit.runner.visualstudio"> 29 <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> 30 <PrivateAssets>all</PrivateAssets> 31 </PackageReference> 32 <PackageReference Include="coverlet.collector"> 33 <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> 34 <PrivateAssets>all</PrivateAssets> 35 </PackageReference> 36 <PackageReference Include="StyleCop.Analyzers"> 37 <PrivateAssets>all</PrivateAssets> 38 <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> 39 </PackageReference> 40 <PackageReference Include="Moq" /> 41 <PackageReference Include="Microsoft.PowerShell.SDK" GeneratePathProperty="true" /> 42 </ItemGroup> 43 44 <ItemGroup> 45 <ProjectReference Include="..\Microsoft.Management.Configuration\Microsoft.Management.Configuration.vcxproj"> 46 <Private>True</Private> 47 </ProjectReference> 48 <ProjectReference Include="..\Microsoft.Management.Configuration.Processor\Microsoft.Management.Configuration.Processor.csproj"> 49 <Private>True</Private> 50 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 51 </ProjectReference> 52 <ProjectReference Include="..\WinGetTestCommon\WinGetTestCommon.csproj"> 53 <Private>True</Private> 54 </ProjectReference> 55 </ItemGroup> 56 57 <Import Project="..\targets\ReferenceEmbeddedCsWinRTProject.targets" /> 58 59 <Target Name="PwshFiles" AfterTargets="AfterBuild"> 60 <ItemGroup> 61 <RefFiles Include="$(OutputPath)..\..\..\..\..\AnyCPU\$(Configuration)\Microsoft.Management.Configuration.Processor\$(TargetFramework)\win\ref\**\*.*" /> 62 <WinModuleFiles Include="$(OutputPath)..\..\..\..\..\AnyCPU\$(Configuration)\Microsoft.Management.Configuration.Processor\$(TargetFramework)\win\Modules\**\*.*" /> 63 </ItemGroup> 64 <Copy SourceFiles="@(RefFiles)" DestinationFolder="$(OutputPath)\ref\" /> 65 <Copy SourceFiles="@(WinModuleFiles)" DestinationFolder="$(OutputPath)\Modules\%(RecursiveDir)%(Filename)%(Extension)" /> 66 </Target> 67 68 <ItemGroup> 69 <None Update="TestCollateral\PowerShellModules\xAdminTestResource\xAdminTestResource.psd1"> 70 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 71 </None> 72 <None Update="TestCollateral\PowerShellModules\xAdminTestResource\xAdminTestResource.psm1"> 73 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 74 </None> 75 <None Update="TestCollateral\PowerShellModules\xSimpleTestResource\xSimpleTestResource.psd1"> 76 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 77 </None> 78 <None Update="TestCollateral\PowerShellModules\xSimpleTestResource\xSimpleTestResource.psm1"> 79 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> 80 </None> 81 </ItemGroup> 82 83 </Project>