question

CameronWalker-6076 avatar image
0 Votes"
CameronWalker-6076 asked CameronWalker-6076 commented

Recently upgrades VS 2019 to ver 16.9.4, going through tutorials, can't compile basic tutorial code, get Error BC30002 Type 'Global.System.Configuration.ApplicationSettingsBase' is not defined.

I thought I'd do the VS 2019 Tutorials to get started with VS 2019. Got up to the 3rd tutorial.
94975-vs2019-tutorial.png


went to compile the project and got the following errors.

94945-error-list.png


My code is as exactly as it appears in the tutorial of the MS VS web site. So I don't think it is the code. It is the way VS is set up on my computer. This tutorial and code requires Net 5.0. But when I look at the menu item Help> About>
I see that the version of Net Framework installed is not 5.0?

95053-about-vs.png

I've read though the various blogs on this compile error and have not found a solution. Any thoughts please on what I may have done wrong?

Thanks Cam

vs-generalvs-debuggingvs-setup
vs2019-tutorial.png (33.5 KiB)
error-list.png (29.1 KiB)
about-vs.png (32.7 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

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered CameronWalker-6076 commented

Hi @CameronWalker-6076 ,

Welcome to Microsoft Q&A!

I followed this tutorial to create a .NET class library and couldn’t reproduce your error. Please ensure that the tutorial prerequisites are met.

You can check the your project target framework by right-clicking on the library project > Properties.

In addition, please enter the following command at the command prompt and check the installed .NET SDK versions:
dotnet --list-sdks

Sincerely,
Anna


If the answer is helpful, please click "Accept Answer" and upvote it.
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.




· 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.