MvcReportViewer
MvcReportViewer copied to clipboard
Are you building on Azure Devops? I'm getting a 'MvcReportViewer.dll could not be found' error
Hey,
Using MVCReportViewer on 0.8.3, running builds on Microsoft's hosted build agents (2019 or 2017), doesn't seem to matter if I'm using the VS Build task, MS Build 15 or 12, always results in this error when building our web project
##[error]CSC(0,0): Error CS0006: Metadata file 'd:\a\1\s\Project\obj\Release\SignedAssemblies\MvcReportViewer.dll' could not be found
It is restoring okay in the Nuget Restore task
Restoring NuGet package MvcReportViewer.0.8.3.
GET https://api.nuget.org/v3-flatcontainer/mvcreportviewer/0.8.3/mvcreportviewer.0.8.3.nupkg
OK https://api.nuget.org/v3-flatcontainer/mvcreportviewer/0.8.3/mvcreportviewer.0.8.3.nupkg 5ms
Acquiring lock for the installation of MvcReportViewer 0.8.3
Acquired lock for the installation of MvcReportViewer 0.8.3
Installing MvcReportViewer 0.8.3.
PackageSignatureVerificationLog: PackageIdentity: MvcReportViewer.0.8.3 Source: https://api.nuget.org/v3/index.json PackageSignatureValidity: True
Completed installation of MvcReportViewer 0.8.3
Adding package 'MvcReportViewer.0.8.3' to folder 'd:\a\1\s\packages'
Added package 'MvcReportViewer.0.8.3' to folder 'd:\a\1\s\packages'
Added package 'MvcReportViewer.0.8.3' to folder 'd:\a\1\s\packages' from source 'https://api.nuget.org/v3/index.json
This is presumably because the 2017 build agent doesn't include the CLR types and report viewer needed as a prerequisite for this package?
https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/win/Vs2017-Server2016-Readme.md
Has anyone come across this before?
My plan is to create our own Azure VM and configure it as our build agent, using an ARM template generate by what MS provides. Then install CLR Types and Report Viewer on the VM. I am thinking this will fix up my issues?
Cheers
Update - created my own VM (Standard_B2ms, 2019 Datacenter), and installed VS2019 Community, 2012 CLR Types, Report Viewer 2012 and configured it to run as a build agent and it is happy as