1
我正在創建類庫中的nuget包。我有明確包括文件的工作正常,但我的DLL沒有被包括在包中。我的印象是,默認情況下nuget包會將自己包含在我可能被誤解的包中。我nuspec文件看起來像這樣:Nuget包不包括自我作爲依賴關係
<?xml version="1.0"?>
<package >
<metadata>
<id>DTOCodeGenerator</id>
<version>1.0.0.1</version>
<title>DTO Code Generator</title>
<authors>Short Circuit</authors>
<owners>J5</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>DTO Code Generator Includes the needed include tt files to generate interface backed DTO's with adapter generation</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2017</copyright>
<tags>DTOGenerator T4</tags>
<dependencies>
<dependency id="EntireOne.Shared.T4" version="2.0.10.24" />
</dependencies>
</metadata>
<files>
<file src="T4Generators\AutoMapperExtensions.ttinclude" target="content\T4Generators\AutoMapperExtensions.ttinclude"/>
<file src="T4Generators\ConstGenerator.ttinclude" target="content\T4Generators\ConstGenerator.ttinclude"/>
<file src="T4Generators\DTOGenerator.ttinclude" target="content\T4Generators\DTOGenerator.ttinclude"/>
<file src="T4Generators\EnumGenerator.ttinclude" target="content\T4Generators\EnumGenerator.ttinclude"/>
</files>
</package>
我怎麼可以加我當前的dll到NuGet包
https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference#excluding-development-dependencies-when-creating-packages – Reddy