-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Generate PlatformManifest and package conflict overrides for Microsoft.AspNetCore.App #4072
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
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.
I didn't look at the implementation, but the build output looks correct.
…t.AspNetCore.App This generates additional metadata for the .NET Core SDK to resolve conflicts between Microsoft.AspNetCore.App and PackageReferences which contain the same assemblies.
17f1a48
to
61b9c29
Compare
@@ -1,7 +1,11 @@ | |||
# Don't run CI for this config | |||
trigger: none |
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.
What's this?
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.
This disables the PR validation trigger when we push to branches. PR validation only needs to run on PRs.
{ | ||
var platformManifestPath = Path.Combine(TestData.GetManifestOutputDir(), "Microsoft.AspNetCore.App.PlatformManifest.txt"); | ||
var expectedAssemblies = TestData.GetSharedFxDependencies() | ||
.Split(';', StringSplitOptions.RemoveEmptyEntries) |
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.
Is RemoveEmptyEntries
really needed? Or would it just mask potential bugs where we put blank entries in the metadata?
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.
Not in this case. I'm only using remove empty entries on TestData.GetSharedFxDependencies(), which is test data generated in the unit test csproj file. The data isn't used in the product.
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.
A few small comments/questions.
This generates additional metadata for the .NET Core SDK to resolve conflicts between Microsoft.AspNetCore.App and PackageReferences which contain the same assemblies.
Resolves #3609
Examples of the build output created:
Microsoft.AspNetCore.App.props
Microsoft.AspNetCore.App.PlatformManifest.txt