question

81968990 avatar image
0 Votes"
81968990 asked 81968990 commented

How to solve this problem?

101768-%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE-2021-06-02-233857.png


dotnet-aspnet-webforms
· 4
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.

You have not provided any useful information here. A screenshot is not sufficient. Provide information on what you were trying to do, any relevant code, the steps you used to replicate, the expectations, etc.

1 Vote 1 ·

I just want to create an asp.net web application based on C #, but this error will pop up when I select an empty project template

0 Votes 0 ·

Hi @81968990 ,
I'm not sure what you did to the solution/project so that it can't find the package reference. I assume that Nuget has some problems, it may be that the version is too low, or the package source (nuget.org ) is missing. Try to add Package source: nuget-add package source
Or update the nuget version via: nuget.exe update -self
If you can provide more detailed information, it will help you better find relevant solutions.


1 Vote 1 ·

Emm.I think my nuget package source should be updated to the latest version, but this problem has not been solved

0 Votes 0 ·

1 Answer

cooldadtx avatar image
0 Votes"
cooldadtx answered 81968990 commented

If you want to create an ASP.NET app then a couple of questions.

  1. Are you wanting to build a .NET Framework or .NET Core/5 web app?

  2. When you installed Visual Studio did you select the Web Development workload and, if building .NET Core, the corresponding workload for it?

When you create a new project try using one of the more complex templates. In the filters at the top select C#, All Platforms and Web. Under the templates select ASP.NET Web Application (.NET Framework) for .NET Framework or ASP.NET Core Web App (Model-View-Controller) for .NET Core/5. Can you get past this step?

If you get past this step then you'll set options like using HTTPS, using MVC, no authentication and no container support. Then VS should create the project. Can you get past this step?

If you make it this far then you're ready to try compiling the code.


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

On the first question, I am going to build a .NET Framework
And the second question,I think I have installed all the components required by. NET Framework, because I have successfully created the project before, but this error occurred after the update, and after the error, only the .sln file was not generated, and other files have been successfully created in the project.And today I found that if I choose the Create without any action I can write my code successfully.So thank you very much,I don't want to worry about it anymore.

0 Votes 0 ·