winget-cli

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

Microsoft.WinGet.Client.Engine.csproj (6644B)


      1 <Project Sdk="Microsoft.NET.Sdk">
      2 
      3   <PropertyGroup>
      4     <!-- If these target frameworks are updated, make sure to also update the .psd1 and .nuspec files.-->
      5     <!-- Keep in sync with attributes in AssemblyInfo.cs -->
      6     <TargetWindowsVersion>10.0.26100.0</TargetWindowsVersion>
      7     <CoreFramework>net8.0-windows$(TargetWindowsVersion)</CoreFramework>
      8     <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
      9     <DesktopFramework>net48</DesktopFramework>
     10     <Configurations>Debug;Release;ReleaseStatic</Configurations>
     11     <CsWinRTCcwLookupTableGeneratorEnabled>false</CsWinRTCcwLookupTableGeneratorEnabled>
     12   </PropertyGroup>
     13 
     14   <PropertyGroup>
     15     <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
     16     <BuildOutputDirectory>$(SolutionDir)$(Platform)\$(Configuration)\</BuildOutputDirectory>
     17     <OutputPath>$(BuildOutputDirectory)$(MSBuildProjectName)</OutputPath>
     18     <TargetFrameworks>$(CoreFramework);$(DesktopFramework)</TargetFrameworks>
     19     <DocumentationFile>$(OutputPath)\Microsoft.WinGet.Client.Engine.xml</DocumentationFile>
     20     <SupportedOSPlatformVersion>10.0.18362.0</SupportedOSPlatformVersion>
     21     <Nullable>enable</Nullable>
     22   </PropertyGroup>
     23 
     24   <PropertyGroup Condition="'$(UseProdCLSIDs)' == 'true'">
     25     <DefineConstants>$(DefineConstants);USE_PROD_CLSIDS</DefineConstants>
     26   </PropertyGroup>
     27 
     28   <ItemGroup>
     29     <AdditionalFiles Include="..\..\stylecop.json" Link="stylecop.json" />
     30   </ItemGroup>
     31 
     32   <PropertyGroup>
     33     <ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
     34   </PropertyGroup>
     35 
     36   <ItemGroup>
     37     <Compile Include="..\CommonFiles\PowerShellCmdlet.cs" Link="PowerShellCmdlet.cs" />
     38     <Compile Include="..\CommonFiles\StreamType.cs" Link="StreamType.cs" />
     39   </ItemGroup>
     40 
     41   <ItemGroup>
     42     <PackageReference Include="Octokit" />
     43     <PackageReference Include="PowerShellStandard.Library" PrivateAssets="all" />
     44     <PackageReference Include="Semver" />
     45     <PackageReference Include="StyleCop.Analyzers">
     46       <PrivateAssets>all</PrivateAssets>
     47       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
     48     </PackageReference>
     49     <PackageReference Include="System.Security.Principal.Windows" />
     50     <PackageReference Include="Newtonsoft.Json" />
     51     <PackageReference Include="Microsoft.CSharp" Condition="'$(TargetFramework)' == '$(DesktopFramework)'" />
     52     <PackageReference Include="Microsoft.Windows.CsWinRT" Condition="'$(TargetFramework)' == '$(CoreFramework)'" />
     53     <PackageReference Include="Microsoft.Windows.SDK.Contracts" PrivateAssets="all" Condition="'$(TargetFramework)' == '$(DesktopFramework)'" />
     54     <PackageReference Include="System.Net.Http" Condition="'$(TargetFramework)' == '$(DesktopFramework)'" />
     55   </ItemGroup>
     56 
     57   <ItemGroup>
     58     <ProjectReference Include="..\..\Microsoft.Management.Deployment\Microsoft.Management.Deployment.vcxproj">
     59       <OutputItemType>Content</OutputItemType>
     60       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     61     </ProjectReference>
     62     <ProjectReference Include="..\..\Xlang\UndockedRegFreeWinRT\src\UndockedRegFreeWinRT\UndockedRegFreeWinRT\UndockedRegFreeWinRT.vcxproj">
     63       <OutputItemType>Content</OutputItemType>
     64       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     65     </ProjectReference>
     66     <ProjectReference Include="..\..\Microsoft.Management.Deployment.InProc\Microsoft.Management.Deployment.InProc.vcxproj">
     67       <OutputItemType>Content</OutputItemType>
     68       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     69     </ProjectReference>
     70     <ProjectReference Include="..\..\WindowsPackageManager\WindowsPackageManager.vcxproj">
     71       <OutputItemType>Content</OutputItemType>
     72       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     73     </ProjectReference>
     74     <ProjectReference Include="..\Microsoft.WinGet.SharedLib\Microsoft.WinGet.SharedLib.csproj" />
     75   </ItemGroup>
     76 
     77   <PropertyGroup>
     78     <!-- Disable warning for CS1591 because auto generated Microsoft.Management.Deployment -->
     79     <!-- For our code, we still have stylecops acting on it. -->
     80     <NoWarn>1591</NoWarn>
     81   </PropertyGroup>
     82 
     83   <PropertyGroup Condition="'$(Configuration)'=='Release'">
     84     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
     85   </PropertyGroup>
     86 
     87   <PropertyGroup Condition="'$(Configuration)'=='ReleaseStatic'">
     88     <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
     89   </PropertyGroup>
     90 
     91   <PropertyGroup Condition="'$(TargetFramework)' == '$(CoreFramework)'">
     92     <RuntimeIdentifier>win</RuntimeIdentifier>
     93   </PropertyGroup>
     94 
     95   <PropertyGroup Condition="'$(TargetFramework)' == '$(DesktopFramework)'">
     96     <LangVersion>10</LangVersion>
     97     <DefineConstants>$(DefineConstants);POWERSHELL_WINDOWS</DefineConstants>
     98   </PropertyGroup>
     99 
    100   <ItemGroup>
    101     <Compile Update="Properties\Resources.Designer.cs">
    102       <DesignTime>True</DesignTime>
    103       <AutoGen>True</AutoGen>
    104       <DependentUpon>Resources.resx</DependentUpon>
    105     </Compile>
    106   </ItemGroup>
    107 
    108   <ItemGroup>
    109     <EmbeddedResource Update="Properties\Resources.resx">
    110       <Generator>ResXFileCodeGenerator</Generator>
    111       <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    112       <CustomToolNamespace>Microsoft.WinGet.Resources</CustomToolNamespace>
    113     </EmbeddedResource>
    114   </ItemGroup>
    115 
    116   <Import Project="..\..\targets\EmbeddedCsWinRT.targets" Condition="'$(TargetFramework)' == '$(CoreFramework)'" />
    117 
    118   <PropertyGroup Condition="'$(TargetFramework)' == '$(CoreFramework)'">
    119     <CsWinRTIncludes>
    120       Microsoft.Management.Deployment;
    121       Windows.Data.Text.TextSegmen;
    122       Windows.Devices.Geolocation;
    123       Windows.Foundation;
    124       Windows.Globalization.DayOfWee;
    125       Windows.Networking.Connectivity;
    126       Windows.Networking.DomainNameTyp;
    127       Windows.Networking.EndpointPai;
    128       Windows.Networking.IEndpointPai;
    129       Windows.Networking.HostNam;
    130       Windows.Networking.IHostNam;
    131       Windows.Security.Cryptography.Certificates;
    132       Windows.Storage;
    133       Windows.Storage.Provider.FileUpdateStatu;
    134       Windows.System.ProcessorArchitectur;
    135       Windows.System.Use;
    136       Windows.System.IUse;
    137     </CsWinRTIncludes>
    138     <CsWinRTExcludes>
    139       Windows.Foundation.PropertyType;
    140       Windows.Storage.Provider;
    141     </CsWinRTExcludes>
    142     <CsWinRTWindowsMetadata>$(TargetWindowsVersion)</CsWinRTWindowsMetadata>
    143     <!-- Ensure Support for Windows 10, Version 1809 -->
    144     <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
    145   </PropertyGroup>
    146 
    147 </Project>