asp.net-mvc - 使用Nuget打包源代码

标签 asp.net-mvc nuget nuget-package

我已经成功创建了一个 Nuget 包,其中包含已编译的 DLL 和未编译的内容,例如图像、样式等。

Controller 、助手、资源和其他代码已编译。当只需要编译的 DLL 和公共(public)内容时,这个包对于分发很有用,但我也想要一个包含所有内容的完整源代码的包。

我读了command line reference但没有找到这样的选项(不过可能错过了)。

如何打包源文件(.cs)?

最佳答案

这应该可以引导其他想要使用 Nuget 重用源代码文件的人走向正确的方向:

http://blogs.clariusconsulting.net/kzu/how-to-create-lightweight-reusable-source-code-with-nuget/

关于asp.net-mvc - 使用Nuget打包源代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6841855/

相关文章:

visual-studio - 为什么更新到 VS Update 3 后 NuGet 无法在 Visual Studio 2012 中加载?

c# - [A]System.Web.WebPages.Razor.Configuration.HostSection 无法转换为... web.config 问题

c# - 在asp.net mvc 5中创建可编辑的cshtml View 页面

asp.net-mvc - ASP.Net MVC 自定义身份验证

c# - 避免for循环为网格显示带来表格相关信息

asp.net-mvc - 带有 ASP.NET 的动态 'twitter style' url

visual-studio - 从NuGet安装NUnit之后,如何强制TestDriven.Net使用NuGet引用的NUnit dll?

proxy - 在没有代理设置的情况下在 VSTS 中运行 nuget 任务

visual-studio - Visual Studio 和 Nuget : Package Manager Console commands history?

entity-framework - 如何配置 EF 的 DbMigration 不将日期时间添加为生成的迁移文件名的前缀