nuget.build.tasks.pack - 需要构建错误作者
nuget.build.tasks.pack - build error author is required
因为 我尝试更改我的 Azure Devops 构建过程以使用 DotNet 而不是 Nuget
任务现在
- task: DotNetCoreCLI@2
inputs:
command: pack
packagesToPack: '**/SBD.*.csproj'
versioningScheme: byPrereleaseNumber
majorVersion: '$(Major)'
minorVersion: '$(Minor)'
patchVersion: '$(Patch)
错误是
error MSB4057: The target "pack" does not exist in the project
我找到了 但它不适用于 DevOps
答案提到我需要从 Nuget 安装 Nuget.Build.Tasks Pack 包
所以我做到了
现在登录 devops 状态
C:\Users\VssAdministrator\.nuget\packages\nuget.build.tasks.pack.6.0\build\NuGet.Build.Tasks.Pack.targets(198,5):
error : Authors is required. [D:\a\s\Common.WinForms\SBD.Common.WinForms.csproj]
失败的项目是 net472。我不应该使用 DotNetCoreCli 来打包它
因为
任务现在
- task: DotNetCoreCLI@2
inputs:
command: pack
packagesToPack: '**/SBD.*.csproj'
versioningScheme: byPrereleaseNumber
majorVersion: '$(Major)'
minorVersion: '$(Minor)'
patchVersion: '$(Patch)
错误是
error MSB4057: The target "pack" does not exist in the project
我找到了
答案提到我需要从 Nuget 安装 Nuget.Build.Tasks Pack 包
所以我做到了
现在登录 devops 状态
C:\Users\VssAdministrator\.nuget\packages\nuget.build.tasks.pack.6.0\build\NuGet.Build.Tasks.Pack.targets(198,5):
error : Authors is required. [D:\a\s\Common.WinForms\SBD.Common.WinForms.csproj]
失败的项目是 net472。我不应该使用 DotNetCoreCli 来打包它