用Nuget打包源代码 [英] Packing source code with Nuget
问题描述
我已经成功创建了一个Nuget程序包,其中包含已编译的DLL和未编译的内容,例如图像,样式等.
I've successfully created a Nuget package which contains the compiled DLL and uncompiled content such as images, styles, etc.
控制器,助手,资源和其他代码已被编译.当只需要编译的DLL和公共内容,但我还想拥有一个包含所有内容的完整包时,此包对分发很有用.
Controllers, helpers, resources and other code has been compiled. This package is useful for distribution when only the compiled DLL and public stuff is required but I also want to have a package that would contain a whole source of everything.
我阅读了命令行参考,但是没有找到这样的选项(可能错过了但是).
I read the command line reference but did not find such an option (might have missed it though).
如何打包源文件(.cs)?
How can I package source files (.cs)?
推荐答案
这应该指导其他发现自己想要使用Nuget来重用源代码文件的人:
This should guide anyone else who finds himself wanting to use Nuget to reuse the source code files into the right direction:
http://blogs .clariusconsulting.net/kzu/how-to-create-lightweight-reusable-source-code-with-nuget/
这篇关于用Nuget打包源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!