ConfigurationRemotingServer.csproj (2729B)
1 <Project Sdk="Microsoft.NET.Sdk"> 2 3 <PropertyGroup> 4 <OutputType>Exe</OutputType> 5 <TargetFramework>net8.0-windows10.0.26100.0</TargetFramework> 6 <ImplicitUsings>enable</ImplicitUsings> 7 <Nullable>enable</Nullable> 8 <SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion> 9 <Platforms>x64;x86;arm64</Platforms> 10 <OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)\</OutputPath> 11 <SelfContained>true</SelfContained> 12 <RuntimeIdentifiers>win-x64;win-x86;win-arm64</RuntimeIdentifiers> 13 </PropertyGroup> 14 15 <PropertyGroup Condition=" '$(Platform)' == 'x64' "> 16 <RuntimeIdentifier>win-x64</RuntimeIdentifier> 17 </PropertyGroup> 18 19 <PropertyGroup Condition=" '$(Platform)' == 'x86' "> 20 <RuntimeIdentifier>win-x86</RuntimeIdentifier> 21 </PropertyGroup> 22 23 <PropertyGroup Condition=" '$(Platform)' == 'arm64' "> 24 <RuntimeIdentifier>win-arm64</RuntimeIdentifier> 25 </PropertyGroup> 26 27 <Import Project="..\targets\ReferenceEmbeddedCsWinRTProject.targets" /> 28 29 <ItemGroup> 30 <PackageReference Include="Newtonsoft.Json" /> 31 </ItemGroup> 32 33 <ItemGroup> 34 <ProjectReference Include="..\Microsoft.Management.Configuration.Processor\Microsoft.Management.Configuration.Processor.csproj" /> 35 <ProjectReference Include="..\Microsoft.Management.Configuration\Microsoft.Management.Configuration.vcxproj" /> 36 <!-- Pull in any other .NET projects that need to ship with the package so that they can resolve the nuget graph together and land in the same output location. --> 37 <ProjectReference Include="..\WinGetMCPServer\WinGetMCPServer.csproj" /> 38 </ItemGroup> 39 40 <Target Name="PwshFiles" AfterTargets="AfterBuild"> 41 <ItemGroup> 42 <RefFiles Include="$(SolutionDir)\AnyCPU\$(Configuration)\Microsoft.Management.Configuration.Processor\$(TargetFramework)\win\ref\**\*.*" /> 43 <WinModuleFiles Include="$(SolutionDir)\AnyCPU\$(Configuration)\Microsoft.Management.Configuration.Processor\$(TargetFramework)\win\Modules\**\*.*" /> 44 <!-- The output path for this project is different on some builds where the RIDs are not used in the output. --> 45 <RefFiles Condition="!Exists(@(RefFiles))" Include="$(SolutionDir)\AnyCPU\$(Configuration)\Microsoft.Management.Configuration.Processor\ref\**\*.*" /> 46 <WinModuleFiles Condition="!Exists(@(WinModuleFiles))" Include="$(SolutionDir)\AnyCPU\$(Configuration)\Microsoft.Management.Configuration.Processor\Modules\**\*.*" /> 47 </ItemGroup> 48 <Copy SourceFiles="@(RefFiles)" DestinationFolder="$(OutputPath)\ref\" /> 49 <Copy SourceFiles="@(WinModuleFiles)" DestinationFolder="$(OutputPath)\Modules\%(RecursiveDir)\" /> 50 </Target> 51 52 </Project>