如何在asp.net 5类库nuget包中包含视图 [英] how to include views in asp.net 5 class library nuget package

查看:91
本文介绍了如何在asp.net 5类库nuget包中包含视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个包含一些ViewComponents的类库项目. VS 2015可以自动为我生成NuGet程序包,这是很好的选择,但是我能以任何方式使其包含ViewComponents所需的.cshtml视图文件之类的内容文件吗?

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?

以前我已经完成了使用批处理文件和nuspec文件的打包,以使其包含内容,我是否必须继续使用该方法,或者是否有办法告诉VS 2015有关要包含的内容文件?

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?

推荐答案

尚不可用.该功能将在beta7中

Not doable as yet. The feature will be in beta7

这篇关于如何在asp.net 5类库nuget包中包含视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆