question

EmersonMedeiros-5593 avatar image
0 Votes"
EmersonMedeiros-5593 asked EmersonMedeiros-5593 answered

Error installing Report Viewer in Visual Studio 2019, my project structure is incompatible.

When installing Report Viewer in Visual Studio 2019, it gives the following error:

"The package 'Microsoft.ReportingServices.ReportViewerControl.Winforms 150.1449.0' was restored using
'.NETFramework, Versão = v4.6.1, .NETFramework, Versão = v4.6.2, .NETFramework, Versão = v4.7, .NETFramework, Versão = v4.7.1, .NETFramework, Version = v4.7.2, .NETFramework, Version = v4.8 ' instead of the target structure of the project ' net5.0-windows7.0 '. This package may not be fully compatible with your project. "

I have already researched a lot and did not get the solution.

Can you help me can you help me?

I understood that the structure of my project is
net5.0-windows7.0 it's the Report Viewer is for up .NETFramework, Version = v4.8.
But in the Visual Studio 2019 gives no option to
.NETFramework, Versão = v4.8, only .net 5.0, core 3.1 and core 3.0.

sql-server-reporting-servicesdotnet-visual-basic
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.

karenpayneoregon avatar image
2 Votes"
karenpayneoregon answered EmersonMedeiros-5593 commented
· 1
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.


Good morning Karen!
I will be performing the suggested procedures.
Thank you so much for your response.

0 Votes 0 ·
LukasYu-msft avatar image
0 Votes"
LukasYu-msft answered karenpayneoregon commented

Hi,

Karen has give you proper solution. I think it should work for your environment.

I am curious why you can't create .Net Framwork project? What kind project are you trying?

You could in your visual studio installer find and check the .Net Framework developing tools as :
85627-image.png



image.png (125.7 KiB)
· 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.

Good Morning
I'm actually a super newbie in this area. I have always worked with VBA in Excel.
Now I decided to try to pass some things that I did in Excel to VB.net.
You asked me why I didn't choose to create a .Net Framwork project. In Visual Studio, at least what I have installed on my PC, it didn't give me the option to choose, making it available only for .net 5.0, core 3.1 and core 3.0. Already install all the options that appear .Net Framwork, but not resolvable.
Perhaps, of course, because of my total lack of knowledge in the field.
I appreciate your response.

0 Votes 0 ·

For a standard install as per @LukasYu-msft you should have the following to select from for creating a new project. Usually it's the reverse where a coder needs to download .NET Core rather than .NET classic Framework.

85892-figure1.png

85716-figure2.png


0 Votes 0 ·
figure1.png (47.4 KiB)
figure2.png (24.8 KiB)
EmersonMedeiros-5593 avatar image
0 Votes"
EmersonMedeiros-5593 answered

Excellent Karen!
I started my project by choosing the wrong option.
I'll redo it from the beginning but it will be worth it.
Thank you very much!

I chose this option:
85887-captura-de-tela-2021-04-08-140941.png


Where should I have chosen this:

85820-captura-de-tela-2021-04-08-140600.png



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.