Packing source code with Nuget

2020-06-08 06:41发布

I've successfully created a Nuget package which contains the compiled DLL and uncompiled content such as images, styles, etc.

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).

How can I package source files (.cs)?

2条回答
The star\"
2楼-- · 2020-06-08 07:26

In the original project (which will be the package) rename the .cs files to .cs.pp.

查看更多
家丑人穷心不美
3楼-- · 2020-06-08 07:39

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/

查看更多
登录 后发表回答