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