Running C# Azure Created App on Localhost from VS Code

Oren Avni 1 Reputation point
2022-09-06T07:20:16.553+00:00

I used Azure to create a web app through Create a Resource. I cloned the app locally and want to run it on localhost to test the changes I make before additional deploys. However, when I run the command dotnet run, I get an error message: "C:\Program Files\dotnet\sdk\6.0.400\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets"
was not found.

How do I run and test my Azure created project locally before deploying it?

Thanks!

Developer technologies ASP.NET ASP.NET Core
Developer technologies Visual Studio Debugging
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
Developer technologies Visual Studio Other
Developer technologies C#
{count} votes

1 answer

Sort by: Most helpful
  1. Udaiappa Ramachandran 726 Reputation points MVP
    2022-09-06T21:12:23.227+00:00

    Install the .NET 6 SDK from https://dotnet.microsoft.com/en-us/download/dotnet/6.0 (The latest is what you need)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.