winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Microsoft.Management.Configuration.Processor.csproj (7504B)


      1 <Project Sdk="Microsoft.NET.Sdk">
      2 
      3   <PropertyGroup>
      4     <DotNetVersion>net8.0</DotNetVersion>
      5     <!-- Keep in sync with attributes in AssemblyInfo.cs -->
      6     <TargetFramework>$(DotNetVersion)-windows10.0.26100.0</TargetFramework>
      7     <Nullable>enable</Nullable>
      8     <!-- Keep in sync with attributes in AssemblyInfo.cs -->
      9     <SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
     10     <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
     11     <Platform>AnyCpu</Platform>
     12     <RuntimeIdentifier>win</RuntimeIdentifier>
     13     <OutputPath>$(SolutionDir)$(Platform)\$(Configuration)\$(MSBuildProjectName)\</OutputPath>
     14     <GenerateDocumentationFile>true</GenerateDocumentationFile>
     15     <!-- Workaround for MSB3271 error on processor architecture mismatch -->
     16     <ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
     17     <!-- Disable warning CS1591 for cswinrt auto-generated files and CS8785 for SourceGenerator compilation errors -->
     18     <NoWarn>1591,8785</NoWarn>
     19     <Configurations>Debug;Release;ReleaseStatic</Configurations>
     20     <CsWinRTEnableLogging>true</CsWinRTEnableLogging>
     21     <WinGetCsWinRTEmbedded Condition="'$(WinGetCsWinRTEmbedded)'==''">true</WinGetCsWinRTEmbedded>
     22   </PropertyGroup>
     23 
     24   <PropertyGroup Condition="'$(WingetDisableTestHooks)'=='true'">
     25     <DefineConstants>$(DefineConstants);AICLI_DISABLE_TEST_HOOKS</DefineConstants>
     26   </PropertyGroup>
     27 
     28   <PropertyGroup Condition="'$(Configuration)'=='Release'">
     29     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
     30   </PropertyGroup>
     31 
     32   <PropertyGroup Condition="'$(Configuration)'=='ReleaseStatic'">
     33     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
     34   </PropertyGroup>
     35 
     36   <PropertyGroup>
     37     <CsWinRTComponent>true</CsWinRTComponent>
     38     <CsWinRTWindowsMetadata>10.0.26100.0</CsWinRTWindowsMetadata>
     39   </PropertyGroup>
     40 
     41   <ItemGroup>
     42     <AdditionalFiles Include="..\stylecop.json" Link="stylecop.json" />
     43   </ItemGroup>
     44 
     45   <ItemGroup>
     46     <PackageReference Include="Microsoft.Windows.CsWinRT" />
     47     <PackageReference Include="Microsoft.PowerShell.SDK" GeneratePathProperty="true">
     48       <ExcludeAssets>contentFiles</ExcludeAssets>
     49     </PackageReference>
     50     <PackageReference Include="Newtonsoft.Json" />
     51     <PackageReference Include="StyleCop.Analyzers">
     52       <PrivateAssets>all</PrivateAssets>
     53     </PackageReference>
     54     <PackageReference Include="System.Data.SqlClient" />
     55   </ItemGroup>
     56 
     57   <ItemGroup Condition="'$(WinGetCsWinRTEmbedded)'!='true'">
     58     <ProjectReference Include="..\Microsoft.Management.Configuration.Projection\Microsoft.Management.Configuration.Projection.csproj">
     59       <OutputItemType>Content</OutputItemType>
     60       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     61       <ReferenceOutputAssembly>True</ReferenceOutputAssembly>
     62     </ProjectReference>
     63   </ItemGroup>
     64 
     65   <ItemGroup Condition="'$(WinGetCsWinRTEmbedded)'=='true'">
     66     <ProjectReference Include="..\Microsoft.Management.Configuration\Microsoft.Management.Configuration.vcxproj">
     67       <OutputItemType>Content</OutputItemType>
     68       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     69     </ProjectReference>
     70   </ItemGroup>
     71 
     72   <PropertyGroup Condition="'$(WinGetCsWinRTEmbedded)'=='true'">
     73     <DefineConstants>$(DefineConstants);WinGetCsWinRTEmbedded</DefineConstants>
     74     <CsWinRTComponent>false</CsWinRTComponent>
     75     <CsWinRTIncludes>
     76       Microsoft.Management.Configuration;
     77       Windows.ApplicationModel.AppDisplayInf;
     78       Windows.ApplicationModel.IAppDisplayInf;
     79       Windows.ApplicationModel.AppExecutionContex;
     80       Windows.ApplicationModel.IAppExecutionContex;
     81       Windows.ApplicationModel.AppInf;
     82       Windows.ApplicationModel.IAppInf;
     83       Windows.ApplicationModel.AppInstallerInf;
     84       Windows.ApplicationModel.IAppInstallerInf;
     85       Windows.ApplicationModel.AppInstallerPolicySourc;
     86       Windows.ApplicationModel.AddResourcePackageOption;
     87       Windows.ApplicationModel.IAddResourcePackageOption;
     88       Windows.ApplicationModel.FindRelatedPackagesOption;
     89       Windows.ApplicationModel.IFindRelatedPackagesOption;
     90       Windows.ApplicationModel.Packag;
     91       Windows.ApplicationModel.IPackag;
     92       Windows.ApplicationModel.Core.AppListEntr;
     93       Windows.ApplicationModel.Core.IAppListEntr;
     94       Windows.Data.Text.TextSegmen;
     95       Windows.Management.Deployment;
     96       Windows.Devices.Geolocation;
     97       Windows.Foundation;
     98       Windows.Globalization.DayOfWee;
     99       Windows.Networking.Connectivity;
    100       Windows.Networking.DomainNameTyp;
    101       Windows.Networking.EndpointPai;
    102       Windows.Networking.IEndpointPai;
    103       Windows.Networking.HostNam;
    104       Windows.Networking.IHostNam;
    105       Windows.Security.Cryptography.Certificates;
    106       Windows.Storage;
    107       Windows.Storage.Provider.FileUpdateStatu;
    108       Windows.System.ProcessorArchitectur;
    109       Windows.System.Use;
    110       Windows.System.IUse;
    111     </CsWinRTIncludes>
    112     <CsWinRTExcludes>
    113       Windows.Foundation.PropertyType;
    114       Windows.Storage.Provider;
    115     </CsWinRTExcludes>
    116     <!-- Ensure Support for Windows 10, Version 1809 -->
    117     <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
    118   </PropertyGroup>
    119 
    120   <Import Project="..\targets\EmbeddedCsWinRT.targets" Condition="'$(WinGetCsWinRTEmbedded)'=='true'" />
    121 
    122   <Target Name="MicrosoftManagementConfigurationPathTarget" BeforeTargets="CsWinRTSetAuthoringWinMDs">
    123     <PropertyGroup>
    124       <MicrosoftManagementConfigurationPath>$(OutputPath)..\Microsoft.Management.Configuration\Microsoft.Management.Configuration.winmd</MicrosoftManagementConfigurationPath>
    125       <MicrosoftManagementConfigurationPath Condition="!Exists('$(MicrosoftManagementConfigurationPath)')">$(SolutionDir)x64\$(Configuration)\Microsoft.Management.Configuration\Microsoft.Management.Configuration.winmd</MicrosoftManagementConfigurationPath>
    126       <MicrosoftManagementConfigurationPath Condition="!Exists('$(MicrosoftManagementConfigurationPath)')">$(SolutionDir)x86\$(Configuration)\Microsoft.Management.Configuration\Microsoft.Management.Configuration.winmd</MicrosoftManagementConfigurationPath>
    127       <MicrosoftManagementConfigurationPath Condition="!Exists('$(MicrosoftManagementConfigurationPath)')">$(SolutionDir)arm64\$(Configuration)\Microsoft.Management.Configuration\Microsoft.Management.Configuration.winmd</MicrosoftManagementConfigurationPath>
    128     </PropertyGroup>
    129 
    130     <Message Importance="normal" Text="Microsoft.Management.Configuration.winmd -&gt; $(MicrosoftManagementConfigurationPath)" />
    131     <Error Condition="!Exists('$(MicrosoftManagementConfigurationPath)')" Text="Microsoft.Management.Configuration.winmd was not found" />
    132     <ItemGroup Condition="Exists('$(MicrosoftManagementConfigurationPath)')">
    133       <CsWinRTAuthoringWinMDs Include="$(MicrosoftManagementConfigurationPath)" />
    134     </ItemGroup>
    135   </Target>
    136 
    137   <Target Name="PwshFiles" AfterTargets="AfterBuild">
    138     <ItemGroup>
    139       <RefFiles Include="$(PkgMicrosoft_PowerShell_SDK)\contentFiles\any\any\ref\*.*" />
    140       <WinModuleFiles Include="$(PkgMicrosoft_PowerShell_SDK)\contentFiles\any\any\runtimes\win\lib\$(DotNetVersion)\Modules\**\*.*" />
    141     </ItemGroup>
    142     <Copy SourceFiles="@(RefFiles)" DestinationFolder="$(OutputPath)\ref\" />
    143     <Copy SourceFiles="@(WinModuleFiles)" DestinationFolder="$(OutputPath)\Modules\%(RecursiveDir)\" />
    144   </Target>
    145 
    146 </Project>