AspNetCore.Docs
AspNetCore.Docs copied to clipboard
Migration/Testing Issues
Description
When following the instuctions, i run dotnet ef migrations add InitialCreate within the Integrated Terminal for my .csproj and get the following error. I have tried to change things, but cannot. May be user error...
You must install or update .NET to run this application.
App: C:\Users\brjones.dotnet\tools\dotnet-ef.exe Architecture: x64 Framework: 'Microsoft.NETCore.App', version '8.0.1' (x64) .NET location: C:\Program Files\dotnet\
6.0.25 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 7.0.14 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 8.0.0 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Learn more: https://aka.ms/dotnet/app-launch-failed
To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.1&arch=x64&rid=win-x64&os=win10
Page URL
https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/model?view=aspnetcore-8.0&tabs=visual-studio
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/tutorials/razor-pages/model.md
Document ID
7096fdb3-612e-9e00-bd0b-8ea4886a09ce
Article author
@wadepickett
@branden-jones, thanks for taking the time to relate your experience with this doc. I will retest the series!
A couple of questions:
- Were you following the Visual Studio instruction or the VS Code instruction (you can select a tab in the doc for either). I assume Visual Studio since the doc link is for that but asking just in case.
- For this 8.0 version Visual Studio 2022 is needed. What version are you using?