-
Notifications
You must be signed in to change notification settings - Fork 695
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
Remove netstandard1.x dependencies in source-build #5885
Remove netstandard1.x dependencies in source-build #5885
Conversation
- Remove unnecessary netstandard1.x dependencies - Make NuGet.Build.Tasks.Pack target net and netfx - Upgrade Microsoft.CSharp version to latest 4.7.0 (to avoid bringing in netstandard1.x) Unrelated: - Mark build.sh as executable (chmod +x)
@@ -41,7 +41,7 @@ | |||
<None Include="$(BuildCommonDirectory)NOTICES.txt" Pack="true" PackagePath="\" /> | |||
</ItemGroup> | |||
|
|||
<ItemGroup Condition=" '$(TargetFramework)' != '$(NETFXTargetFramework)' "> | |||
<ItemGroup Condition=" '$(TargetFramework)' == '$(NETCoreTargetFramework)' "> |
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.
use TFI instead?
@@ -41,7 +41,7 @@ | |||
<None Include="$(BuildCommonDirectory)NOTICES.txt" Pack="true" PackagePath="\" /> | |||
</ItemGroup> | |||
|
|||
<ItemGroup Condition=" '$(TargetFramework)' != '$(NETFXTargetFramework)' "> | |||
<ItemGroup Condition=" '$(TargetFramework)' == '$(NETCoreTargetFramework)' "> | |||
<PackageReference Include="Microsoft.Build.Framework" ExcludeAssets="runtime" GeneratePathProperty="true" /> |
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.
@rainersigwald is it recommended to reference the MSBuild packages on all frameworks or just on the ones where references aren't available? Asking as in L35-L36, msbuild references are used from the .NET Framework installation when targeting netfx.
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.
The .NET Framework references are the "most compatible" option, but . . . do we really support modern Pack-in-MSBuild in Visual Studio 2010? That doesn't seem required.
I would lean toward "reference the packages at the explicit lowest-supported-version for the netfx output".
I will get back to this when I return from my leave but I would be happy if someone else wants to pick this up. cc @MichaelSimons |
Bug
Fixes: dotnet/source-build#4482
Regression? Last working version:
Description
(NuGet.Build.Tasks.Pack and build/docs.proj)
Unrelated:
PR Checklist
PR has a meaningful title
PR has a linked issue.
Described changes
Tests
Documentation