-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make pack inference more flexible and avoid repeating code
Adding support for EmbeddedResource packing (as supported by SDK pack) would have involved more copy/paste of exisitng MSBuild code, and that was becoming a red herring for maintainability. Taking inspiration from the awesome flexibility of the roslyn editor config generation from MSBuild (see https://github.com/dotnet/roslyn/blob/master/src/Compilers/Core/MSBuildTask/Microsoft.Managed.Core.targets#L122-L154), we can now make it not only straightforward to add new item types for pack inference, but do so in a simple and maintainable way. The remaining built-in content type items will be added in separate commits to showcase how that will be done moving forward, based on the items at https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#including-content-in-a-package.
- Loading branch information
Showing
6 changed files
with
225 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.