17

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

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

我阅读了命令行参考,但没有找到这样的选项(虽然可能错过了)。

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

4

2 回答 2

8

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/

于 2011-07-30T21:52:12.593 回答
1

在原始项目(将是包)中,将 .cs 文件重命名为 .cs.pp。

于 2016-03-14T15:15:58.523 回答