无法构建 SSRS 项目
Unable to build SSRS Project
我正在尝试在 Azure DevOPS 中设置构建管道以构建 SSRS 项目。我有一个像这样的 VSBuild 任务设置
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:OutDir="bin\Debug" /p:OutputPath="bin\Debug" /verbosity:diagnostic'
configuration: '$(configuration)'
我收到以下错误
C:\Program Files (x86)\Microsoft Visual Studio19\Enterprise\MSBuild\Reporting
Services\Microsoft.ReportingServices.MSBuilder.targets(30,5): Error
MSB4018: The "ReportBuilderTask" task failed unexpectedly
System.ArgumentException: The OutputPath property cannot be blank. It
must provide a relative path that is a child folder under the path of
the report server project. at
Microsoft.ReportingServices.BuildProcess.ReportProjectOptions.GetOutputDirectory()
at
Microsoft.ReportingServices.BuildProcess.ReportProjectOptions.GetOutputFile(String
fileName) at
Microsoft.ReportingServices.BuildProcess.Builder.BuildReport(ReportReportNode
node, ReportProjectOptions options, IMessageHandler messageHandler,
ICheckPublish checkPublish) at
Microsoft.ReportingServices.BuildProcess.Builder.BuildItems(ICollection
collection, ReportProjectOptions options, IMessageHandler
messageHandler, ICheckPublish checkPublish) at
Microsoft.ReportingServices.BuildProcess.ReportBuilderTask.Execute()
at
Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
我检查了我的配置的 PropertyGroup,我确实看到了 OutputPath,我还额外提供它作为 MSBuild 参数,但它似乎没有被拾取。
我错过了什么?我正在使用托管代理。
如错误消息中所述,路径不能是完整路径。 azure devops 变量带有完整的绝对路径。我已经更改了 OutputPath 属性 以携带相对路径,现在似乎可以正常工作了。
我正在尝试在 Azure DevOPS 中设置构建管道以构建 SSRS 项目。我有一个像这样的 VSBuild 任务设置
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:OutDir="bin\Debug" /p:OutputPath="bin\Debug" /verbosity:diagnostic'
configuration: '$(configuration)'
我收到以下错误
C:\Program Files (x86)\Microsoft Visual Studio19\Enterprise\MSBuild\Reporting Services\Microsoft.ReportingServices.MSBuilder.targets(30,5): Error MSB4018: The "ReportBuilderTask" task failed unexpectedly System.ArgumentException: The OutputPath property cannot be blank. It must provide a relative path that is a child folder under the path of the report server project. at Microsoft.ReportingServices.BuildProcess.ReportProjectOptions.GetOutputDirectory() at Microsoft.ReportingServices.BuildProcess.ReportProjectOptions.GetOutputFile(String fileName) at Microsoft.ReportingServices.BuildProcess.Builder.BuildReport(ReportReportNode node, ReportProjectOptions options, IMessageHandler messageHandler, ICheckPublish checkPublish) at Microsoft.ReportingServices.BuildProcess.Builder.BuildItems(ICollection collection, ReportProjectOptions options, IMessageHandler messageHandler, ICheckPublish checkPublish) at Microsoft.ReportingServices.BuildProcess.ReportBuilderTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
我检查了我的配置的 PropertyGroup,我确实看到了 OutputPath,我还额外提供它作为 MSBuild 参数,但它似乎没有被拾取。
我错过了什么?我正在使用托管代理。
如错误消息中所述,路径不能是完整路径。 azure devops 变量带有完整的绝对路径。我已经更改了 OutputPath 属性 以携带相对路径,现在似乎可以正常工作了。