-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support FrameworkReference items #2486
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
Conversation
Transform them into targeting pack references and frameworks in runtimeconfig based on KnownFrameworkReference items
@@ -51,6 +51,7 @@ public class GivenADependencyContextBuilder | |||
FrameworkConstants.CommonFrameworks.NetCoreApp10, | |||
runtime, | |||
Constants.DefaultPlatformLibrary, | |||
null, |
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.
Nit: suggest using a named param for the literal as for isSelfContained:
@dotnet-bot test this please |
@dotnet-bot test Windows_NT Release |
} | ||
} | ||
|
||
public class ReportUnknownFrameworkReferences : TaskBase |
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.
Why not put this in its own file?
if (platformLibrary != null) | ||
runtimeOptions.tfm = TargetFramework; | ||
|
||
if (projectContext.RuntimeFrameworks == null) |
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.
Can the array be zero-length? I forget what MSBuild does with empty items.
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.
👍 Just the one question regarding handling of non-null, zero-length RuntimeFrameworks
array in GenerateRuntimeConfigurationFiles
.
@dotnet-bot test Windows_NT Release |
Add target which transforms
FrameworkReference
items into implicit NuGet package references (for the corresponding targeting packs) as well as entries in the runtimeconfig.json.Multiple shared frameworks are supported per the design for .NET Core 3.0 specified here.
@livarcocc @peterhuene @steveharter for review