winget-cli

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

commit 990e1a64bf6dab469f6411a0fe266593f6704faa
parent ec551b2f210a0931e0c6488d1f52d24aa54494d1
Author: JohnMcPMS <johnmcp@microsoft.com>
Date:   Wed, 23 Apr 2025 14:53:42 -0700

Disable assembly info override (#5405)

## Change
Disable the assembly info override in the internal build.
Diffstat:
M.github/actions/spelling/expect.txt | 1+
Msrc/Microsoft.Management.Configuration.Projection/Microsoft.Management.Configuration.Projection.csproj | 6++++++
Msrc/Microsoft.Management.Deployment.CsWinRTProjection/Microsoft.Management.Deployment.CsWinRTProjection.csproj | 6++++++
3 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt @@ -611,6 +611,7 @@ wto wwinmain WZDNCRFJ xcopy +Xes XFile XManifest XMUGIWARAMODULE diff --git a/src/Microsoft.Management.Configuration.Projection/Microsoft.Management.Configuration.Projection.csproj b/src/Microsoft.Management.Configuration.Projection/Microsoft.Management.Configuration.Projection.csproj @@ -20,6 +20,12 @@ <CsWinRTWindowsMetadata>10.0.26100.0</CsWinRTWindowsMetadata> <!-- Ensure Support for Windows 10, Version 1809 --> <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion> + <!-- + Disables the AssemblyInfo generation override in the internal build. + Without this, values like TargetPlatformMinVersion are not placed into the assembly attributes + and .NET static analysis tools will assume that this assembly requires the OS version in our TargetFramework. + --> + <XesDisableAssemblyInfoWrite>True</XesDisableAssemblyInfoWrite> </PropertyGroup> <PropertyGroup> diff --git a/src/Microsoft.Management.Deployment.CsWinRTProjection/Microsoft.Management.Deployment.CsWinRTProjection.csproj b/src/Microsoft.Management.Deployment.CsWinRTProjection/Microsoft.Management.Deployment.CsWinRTProjection.csproj @@ -22,6 +22,12 @@ <CsWinRTWindowsMetadata>10.0.26100.0</CsWinRTWindowsMetadata> <!-- Ensure Support for Windows 10, Version 1809 --> <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion> + <!-- + Disables the AssemblyInfo generation override in the internal build. + Without this, values like TargetPlatformMinVersion are not placed into the assembly attributes + and .NET static analysis tools will assume that this assembly requires the OS version in our TargetFramework. + --> + <XesDisableAssemblyInfoWrite>True</XesDisableAssemblyInfoWrite> </PropertyGroup> <PropertyGroup>