Reputation: 31
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:
.
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
Reputation: 623
This issue has been resolved by the following step.
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
Delete dotnet folder from C:\Program Files
Restart the machine.Verify in ctrlpanel>progmsnfeatures there is no .dotnet core [runtime/sdk]installations
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.
Open a new .net core project. Now you will be able see the projects under the solution.
Upvotes: 0
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
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
Reputation: 1120
I have been experienced the same issue.
=> new .net web app ends up in empty solution
FIX: Install .NET Core SDK 2.2.1n
Upvotes: 0
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
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
Reputation: 4014
You have to install dotnet core sdk
https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-2.1
Here is how you can create the project from CLI
Upvotes: 0