Skip to content

Conversation

@dsplaisted
Copy link
Member

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

Transform them into targeting pack references and frameworks in runtimeconfig
based on KnownFrameworkReference items
FrameworkConstants.CommonFrameworks.NetCoreApp10,
runtime,
Constants.DefaultPlatformLibrary,
null,
Copy link
Member

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:

@dsplaisted
Copy link
Member Author

@dotnet-bot test this please

@dsplaisted
Copy link
Member Author

@dotnet-bot test Windows_NT Release

@livarcocc livarcocc added this to the 3.0.1xx milestone Aug 22, 2018
}
}

public class ReportUnknownFrameworkReferences : TaskBase
Copy link
Contributor

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)
Copy link
Contributor

@peterhuene peterhuene Aug 22, 2018

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.

Copy link
Contributor

@peterhuene peterhuene left a 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.

@dsplaisted
Copy link
Member Author

@dotnet-bot test Windows_NT Release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants