Arinba
Arinba

Reputation: 31

Empty ASP .NET Core Web Application project in Visual studio 2017

I created an .NET Core Web Application Project with the latest Visual Studio Professional 2017 Version 15.9.2. The .NET Framework is 4.6.01586. I have installed the ASP.NET and web development modul on Visual Studio and I can select a .NET Core Application when creating a new project. Visual Studio creates an empty Solution:

empty solution.

It doesn't matter which type of ASP .NET Core Web Application I select the project is always empty.

Creating an ASP .NET Web Application works fine.

I use Visual Studio Professional 2017 in a Oracle VM VirtualBox. On my local machine everything works fine.

Can anyone help me?

Upvotes: 3

Views: 3977

Answers (7)

EduardoUstarez
EduardoUstarez

Reputation: 623

This issue has been resolved by the following step.

  1. Uninstalled all the versions of .dotnet sdk and runtime installations from pgms and features
  2. Also run the following power shell script to double check the instillation process. https://www.hanselman.com/blog/ScriptsToRemoveOldNETCoreSDKs.aspx

    $app = Get-WmiObject -Class Win32_Product | Where-Object { $.Name -match "Microsoft .NET Core SDK" } Write-Host $app.Name Write-Host $app.IdentifyingNumber pushd $env:SYSTEMROOT\System32 $app.identifyingnumber |% { Start-Process msiexec -wait -ArgumentList "/x $" } popd

  3. Delete dotnet folder from C:\Program Files

  4. Restart the machine.Verify in ctrlpanel>progmsnfeatures there is no .dotnet core [runtime/sdk]installations

  5. From ctrlpanel>progmsnfeatures >open visual studio 2017 for modification ,uncheck the .net core and click Modify and then again check it and click Modify.Restart machine.

  6. Open a new .net core project. Now you will be able see the projects under the solution.

Upvotes: 0

Rakeshkumar Das
Rakeshkumar Das

Reputation: 135

I was using using Visual studio 2017 enterprise(15.7.x) after updating it to latest version(15.9.16) it worked for me.

Upvotes: 0

remonsam
remonsam

Reputation: 19

I faced the same issue, updating visual studio 2017 from vs version 15.8 to 15.9 solve my problem I hope this could help others

Upvotes: 0

Vojta
Vojta

Reputation: 1120

I have been experienced the same issue.

  • visual studio 2017
  • .NET Core SDK 2.2.401

=> new .net web app ends up in empty solution

FIX: Install .NET Core SDK 2.2.1n

Upvotes: 0

Arinba
Arinba

Reputation: 31

The path variable was corrupt. I figured out with Rapid Environment Editor that one of my environment variables contained a character which could not be interpreted. The corrupt environment variable was listed before the dotnet variable.

Upvotes: 0

markorial
markorial

Reputation: 445

have you tried creating an application from the cmd?

navigate to the folder you want the app in than type the following

dotnet new mvc

for example and see what it will give you. It should create a asp.net core app with mvc in mind. If it still gives you problems after that it might be you are missing some installed component by chance.

Upvotes: 1

Related Questions