question

RutaAbhyankar-2164 avatar image
0 Votes"
RutaAbhyankar-2164 asked Joyzhao-MSFT edited

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

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
picture1.png (33.7 KiB)
picture2.png (36.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Joyzhao-MSFT avatar image
0 Votes"
Joyzhao-MSFT answered Joyzhao-MSFT edited

Hi @RutaAbhyankar-2164 ,
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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Joyzhao-MSFT ,
Thank you for replying.

My aim is to make my build warnings free. It would be really helpful if you could tell me the importance/purpose of assembly file "Microsoft.ReportViewer.Design.dll". This will help me decide if I can go ahead and exclude it from the project references or not.

Regards,
Ruta

0 Votes 0 ·
Joyzhao-MSFT avatar image Joyzhao-MSFT RutaAbhyankar-2164 ·

It is difficult to single out the importance of assembly Microsoft.ReportViewer.Design.dll. Because even if you delete it, it will not affect the operation of the report viewer. Since the source code is not found on nuget.org or GitHub, the nuget package cannot be checked. If you really want to know the purpose of assembly file "Microsoft.ReportViewer.Design.dll", you might as well ask the product group on DC, the following is the link: https://developercommunity.visualstudio.com/report?space=61&entry=problem

1 Vote 1 ·