Nuget package 无法引用我的nuget包命名空间
Repro 我已经创建了我的第一个nuget包。包项目的目标是净标准2.0。 它由azure管道构建和发布:Nuget package 无法引用我的nuget包命名空间,nuget-package,.net-standard-2.0,nuget-spec,Nuget Package,.net Standard 2.0,Nuget Spec,Repro 我已经创建了我的第一个nuget包。包项目的目标是净标准2.0。 它由azure管道构建和发布: ... - task: VSBuild@1 ... - task: VSTest@2 ... - task: NuGetCommand@2 inputs: command: pack packDestination: '$(Build.ArtifactStagingDirectory)/Nuget/MyPackage' packagesToPack
...
- task: VSBuild@1
...
- task: VSTest@2
...
- task: NuGetCommand@2
inputs:
command: pack
packDestination: '$(Build.ArtifactStagingDirectory)/Nuget/MyPackage'
packagesToPack: '**/MyPackage.EventBus.nuspec'
- task: NuGetCommand@2
displayName: 'NuGet push'
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/Nuget/MyPackage/*.nupkg'
publishVstsFeed: 'MyFeed'
allowPackageConflicts: true
我有一个nuspec文件,其中定义了id、版本、标题、所有者、许可证等,当然还有文件:
尝试过
我已在nuget软件包资源管理器中检查了我的nuget软件包文件:
似乎没有dll文件。它是否应该包装在那里?如果需要,如何在包中包含dll文件
<file src="MyPackage.EventBus\Factory\**" target="content\Factory" />
<file src="MyPackage.EventBus\Interfaces\**" target="content\Interfaces" />
<file src="MyPackage.EventBus\Null\**" target="content\Null" />
<file src="MyPackage.EventBus\ServiceBus\**" target="content\ServiceBus" />
<file src="MyPackage.EventBus\*.cs" target="content" />
<file src="MyPackage.EventBus\MyPackage.EventBus.csproj" target="content" />
namespace MyPackage.EventBus
{
public abstract class BaseEvent