Kje*_*ski 6 deployment build package nuget nuspec
我现在尝试了很多不同的东西,但似乎都没有达到预期效果.
我想与我的库共享一个示例配置(或图像或其他)文件,有人可以使用和派生.我试图默认只是为了这样做我试图将它包含在nuget包中的via *.nuspec和via *.csproj.这些都没有奏效.
对于这*.nuspec部分,我试过这个:
<file src="bin\$configuration$\example.mylib.config" target="lib\net45" />
<file src="bin\$configuration$\example.mylib.config" target="build" />
<file src="bin\$configuration$\example.mylib.config" target="bin" />
Run Code Online (Sandbox Code Playgroud)
我也尝试了这个,但是只将文件复制到其他项目源,这不是我想要的.我希望它只显示在构建的输出中.
<file src="bin\$configuration$\example.mylib.config" target="content" />
Run Code Online (Sandbox Code Playgroud)
对于*.csproj部分,我试图设置build action该文件的content,resource,embedded resource和None.
有办法吗?有没有办法告诉nuget,采取这个文件,并表现得像我提供的DLL需要它的一面,无论你在哪里建立?
| 归档时间: |
|
| 查看次数: |
564 次 |
| 最近记录: |