It might be a dumb question: I've created a project with Visual Studio using the ASP.NET framework, but I don't have Visual Studio on my work machine, so I'm using Visual Studio Code.
How can I run that project? Or even, create a new one using the structure of ASP.NET framework without the Visual Studio templates? I used to build and run using Visual Studio.
I've downloaded .NET Core SDK and .NET Framework dev pack.
I tried running a new build with console commands like dotnet build
, but since it's part of the .NET Core SDK, I was already expecting it to fail with an error that says
Error MSB4019: the imported project "C:\Program Files\dotnet\sdk\7.0.306\Microsoft\VisualStudio\v17.0\We bApplications\Microsoft.WebApplication.targets" could not be located. confirm the expression in the import declaration "C:\Program Files\dotnet\sdk\7.0.306\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets" is correct.
Maybe this error is showing because I'm using VS Code to run something from Visual Studio? If so, I still don't know how to create a project running on the .NET framework without using Visual Studio templates, or run it.