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.

Cameron Walker 21 Reputation points
2021-05-09T10:27:50.497+00:00

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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,459 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
694 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
705 questions
No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 11,296 Reputation points
    2021-05-10T03:47:18.943+00:00

    Hi @Cameron Walker ,

    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.

0 additional answers

Sort by: Most helpful