Home > front end >  The type or namespace name 'CreateBuilder' does not exist in the namespace 'WebApplic
The type or namespace name 'CreateBuilder' does not exist in the namespace 'WebApplic

Time:06-14

I'm getting this build error in my program.cs file despite the fact that my project is not named WebApplication.

CodePudding user response:

I was able to solve the problem by recreating my steps in creating the project. I used an article online that help step me through creating a ASP.NET Core project for the back end and Vue.Js for the front end. In the tutorial he uses an older version of Visual Studio and suggests using the default name WebApplication and then using VueApp later in the setup process. I'm using Visual Studio 2022 that only asks for one name and I used VueApp. The tutorial also creates a class called connection.cs, that file had a reference to namespace WebApplication, I changed that namespace to VueApp and it fixed the problem.

CodePudding user response:

This site has too many rules that make it pretty useless. I'll just continue to learn myself like I have always done. Search until I find it.

  • Related