问题
I'm creating a class library project that will contain some ViewComponents. It is nice that VS 2015 can automatically produce the NuGet package for me, but is there any way that I can make it include content files like .cshtml view files that my ViewComponents will need?
Previously I've done packaging with batch files and nuspec files to make it include content, will I have to continue that approach or is there a way to tell VS 2015 about content files to include?
回答1:
Not doable as yet. The feature will be in beta7
来源:https://stackoverflow.com/questions/31412210/how-to-include-views-in-asp-net-5-class-library-nuget-package