how to include views in asp.net 5 class library nuget package

微笑、不失礼 提交于 2019-12-19 06:38:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!