What is the use of "Microsoft.ReportViewer.Design.dll" in report viewer package?

Ruta Abhyankar 1 Reputation point
2022-04-26T11:13:46.603+00:00

Project details: C# WinForms Project, Visual Studio 2019
We have installed the "Microsoft.ReportingServices.ReportViewerControl.Winforms" packages from NuGet Solution for adding report viewing to the application

196591-picture1.png

After installing the above packages, following files automatically gets added to the selected project references.

196563-picture2.png

While building the code following warnings are reported:

WARNING: Unable to find dependency 'MICROSOFT.VISUALSTUDIO.SHELL.DESIGN' (Signature='B03F5F7F11D50A3A' Version='14.0.0.0') of assembly 'Microsoft.ReportViewer.Design.dll'
WARNING: Unable to find dependency 'MICROSOFT.VISUALSTUDIO.SHELL.14.0' (Signature='B03F5F7F11D50A3A' Version='14.0.0.0') of assembly 'Microsoft.ReportViewer.Design.dll'
WARNING: Unable to find dependency 'MICROSOFT.VSDESIGNER' (Signature='B03F5F7F11D50A3A' Version='14.0.0.0') of assembly 'Microsoft.ReportViewer.Design.dll'

Looks like 'Microsoft.ReportViewer.Design.dll' has internal dependency on other .dll files. To resolve this issue, we end up adding many more .dll files which are not used by the project . If we remove the "Microsoft.ReportViewer.Design" from project references the warnings disappears, and the project works fine.

Wanted to understand the purpose of "Microsoft.ReportViewer.Design.dll" in the package? Can we exclude it from project references if there is no dependency?

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,065 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Joyzhao-MSFT 15,636 Reputation points
    2022-04-27T03:05:07.13+00:00

    Hi @Ruta Abhyankar ,
    According to your situation, I installed Package Microsoft.ReportingServices.ReportViewerControl.Winforms -Version 150.1484.0 locally, but your issue is not reproduced.

    This is not an issue with this NuGet package. The assembly Microsoft.ReportViewer.Design.dll has a dependency on these three assemblies:

    'MICROSOFT.VISUALSTUDIO.SHELL.14.0' (Signature='B03F5F7F11D50A3A' Version='14.0.0.0')
    'MICROSOFT.VISUALSTUDIO.SHELL.DESIGN' (Signature='B03F5F7F11D50A3A' Version='14.0.0.0')
    'MICROSOFT.VSDESIGNER' (Signature='B03F5F7F11D50A3A' Version='14.0.0.0')

    But they’re not included in the package, resulting in the warning.

    You could Ignore these since they’re warnings and not errors. This is assuming these files aren’t actually needed at runtime.

    Best Regards,
    Joy


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.