Skip to content

Commit

Permalink
Update common.props (#3078)
Browse files Browse the repository at this point in the history
* Update common.props

Suppress warning:
##[warning]C:\Users\ContainerAdministrator\.nuget\packages\microsoft.bcl.memory\9.0.0\buildTransitive\netcoreapp2.0\Microsoft.Bcl.Memory.targets(4,5): Warning : Microsoft.Bcl.Memory 9.0.0 doesn't support net6.0 and has not been tested with it. Consider upgrading your TargetFramework to net8.0 or later. You may also set <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk.

https://identitydivision.visualstudio.com/IDDP/_build/results?buildId=1410786&view=logs&j=15dfcb1a-0989-5cf6-3160-3e181e44de87&t=32ee994e-3d32-5011-f0cb-438d28090217

* Add net6.0 specific property group
  • Loading branch information
ciaozhang authored Jan 7, 2025
1 parent c0eb23c commit d2e7b8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net6.0'">
<!-- Suprpess the "Microsoft.Bcl.Memory 9.0.0 doesn't support net6.0 and has not been tested with it" warning -->
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>

<PropertyGroup>
<EnablePackageValidation>false</EnablePackageValidation>
Expand Down

0 comments on commit d2e7b8c

Please sign in to comment.