winget-cli

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

commit f255b6e1f6e3022ca8521941e052e187781dd84d
parent 0de06fab8dff370d1fd12a163d6a5c862f74d0fc
Author: JohnMcPMS <johnmcp@microsoft.com>
Date:   Mon,  1 May 2023 15:38:02 -0700

Add manual platform attributes (#3203)


Diffstat:
Msrc/Microsoft.Management.Configuration.Processor/Microsoft.Management.Configuration.Processor.csproj | 3+++
Msrc/Microsoft.Management.Configuration.Processor/Properties/AssemblyInfo.cs | 6++++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/Microsoft.Management.Configuration.Processor/Microsoft.Management.Configuration.Processor.csproj b/src/Microsoft.Management.Configuration.Processor/Microsoft.Management.Configuration.Processor.csproj @@ -2,9 +2,12 @@ <PropertyGroup> <DotNetVersion>net6.0</DotNetVersion> + <!-- Keep in sync with attributes in AssemblyInfo.cs --> <TargetFramework>$(DotNetVersion)-windows10.0.19041.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> diff --git a/src/Microsoft.Management.Configuration.Processor/Properties/AssemblyInfo.cs b/src/Microsoft.Management.Configuration.Processor/Properties/AssemblyInfo.cs @@ -5,6 +5,7 @@ // ----------------------------------------------------------------------------- using System.Runtime.CompilerServices; +using System.Runtime.Versioning; // InternalsVisibleTo specifies that types that are ordinarily visible only within the current // assembly are visible to a specified assembly. This is only for types and members with internal @@ -13,3 +14,8 @@ using System.Runtime.CompilerServices; // Needed to allow us mock internal interfaces. [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] + +// Forcibly set the target and supported platforms due to the internal build setup. +// Keep in sync with project versions. +[assembly: TargetPlatform("Windows10.0.19041.0")] +[assembly: SupportedOSPlatform("Windows10.0.17763.0")]