-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate target platform assembly attributes #11499
Conversation
b210484
to
dea5143
Compare
src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets
Show resolved
Hide resolved
Blocked by dotnet/installer#7943 to have the type flowed in |
src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.GenerateAssemblyInfo.targets
Outdated
Show resolved
Hide resolved
src/Tests/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildALibraryWithOSMinimumVersion.cs
Show resolved
Hide resolved
Hello @wli3! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
dea5143
to
3020087
Compare
<ItemGroup Condition="'$(TargetPlatformIdentifier)' != '' | ||
and '$(MinimumOSPlatform)' != '' | ||
and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' | ||
and $([MSBuild]::VersionGreaterThanOrEquals($(_TargetFrameworkVersionWithoutV), '5.0'))"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dsplaisted @mhutch I added the condition on > net5.0 . We won't have the type when it is lower
Fix #11239
make sure
MinimumOSPlatform
is the property name we want derive the property directly from.MinimumOSPlatform
will default toTargetPlatformVersion
is fine.$(TargetPlatformIdentifier)$(MinimumOSPlatform)
--- "Windows10.0.1234"