问题描述
根据 MSDocs here,有一项任务是发布带有参数的 .NET Core。
dotnet publish --output $(Build.ArtifactStagingDirectory)
但我有一个 .NET Framework 应用程序,而不是 .NET Core,这意味着我使用 MSBuild 任务而不是 dotnetcore 任务来构建 .NET。所以我查看了 .NET Framework page 并且实际上没有关于发布 .NET Framework 应用程序的信息......
这是否意味着相同的 dotnetcore 任务适用/可以用于 .NET Framework 应用程序??
steps:
- task: DotNetCoreCLI@2
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: True
# this code takes all the files in $(Build.ArtifactStagingDirectory) and uploads them as an artifact of your build.
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'myWebsiteName'
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)