❔ You must install or update .NET to run this application.

Hello there I want to update the ef database and I got the following message : " Build started... Build succeeded. You must install or update .NET to run this application. App: C:\Users\user.dotnet\tools.store\dotnet-ef\7.0.8\dotnet-ef\7.0.8\tools\net6.0\any\tools\netcoreapp2.0\any\ef.dll Architecture: x64 Framework: 'Microsoft.AspNetCore.App', version '6.0.0' (x64) .NET location: C:\Program Files\dotnet\ The following frameworks were found: 7.0.8 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] " I don't know how to install the new dotnet version on the app route. Can you help me? Also I need to create an environment variable but I'm not sure about the size that I should set when I create it
32 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
Hi ok I wrote dotnet --info and got this SDK DE .NET: Version: 7.0.305 Commit: 98e1b6c381 Entorno de tiempo de ejecución: OS Name: Windows OS Version: 10.0.22621 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\7.0.305\ Host: Version: 7.0.8 Architecture: x64 Commit: 4b0550942d .NET SDKs installed: 7.0.305 [C:\Program Files\dotnet\sdk] .NET runtimes installed: Microsoft.AspNetCore.App 7.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 7.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Other architectures found: None Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/download C:\Users\user\Desktop\Alexis\pyme-click-serverless-web-api\src\PymeClick.Domain>
dotnet command - .NET CLI
Learn about the dotnet command (the generic driver for the .NET CLI) and its usage.
Microsoft
.NET Downloads (Linux, macOS, and Windows)
Official .NET downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
Mariana Lopez
Mariana LopezOP2y ago
Hi I tried that dotnet --info but I don't get it 😦 when I went to dotnet.microsoft.com I download sdk dotnet lastest version, is that ok?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
If I do that I get this: C:\Users\user\Desktop\Alexis\pyme-click-serverless-web-api\src\PymeClick.Domain>dotnet --version 7.0.305
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
I was thinking that I have two roots one in user and the other in c/program files/dotnet should those have the same root?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
sorry I mean folders
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
C:\Users\user\Desktop\Alexis\pyme-click-serverless-web-api\src\PymeClick.Domain>dotnet ef database update Build started... Build succeeded. You must install or update .NET to run this application. App: C:\Users\user.dotnet\tools.store\dotnet-ef\7.0.8\dotnet-ef\7.0.8\tools\net6.0\any\tools\netcoreapp2.0\any\ef.dll Architecture: x64 Framework: 'Microsoft.AspNetCore.App', version '6.0.0' (x64) .NET location: C:\Program Files\dotnet\ The following frameworks were found: 7.0.8 at [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
app is on users and my framework on program files :c
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
but I don't know how to proceed -I'm a complete begginer hmm
MODiX
MODiX2y ago
TeBeCo
is your repo on github ?
React with ❌ to remove this embed.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
It's a repo at bitbucket but I don't know if I can shared it :v
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
It a work repo, but the main developer is not available and I'm suppose to learn how to use the whole harold an api and this are the requirements Requirements dotnet version 5.0 (latest) docker
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana LopezOP2y ago
sorry this is the one that im referring to
Mariana Lopez
Mariana LopezOP2y ago
Angius
Angius2y ago
That's a JS project file
Mariana Lopez
Mariana LopezOP2y ago
the developer of the project told me this: [7:13 PM, 7/9/2023] Carlos Martínez Australia: It works with any version of NET Core greater or equal than 6 [7:14 PM, 7/9/2023] Carlos Martínez Australia: in the folder "src" if you run "dotnet build" you should get something like the screenshot... (did you manage to run the program in the Mac?)
Mariana Lopez
Mariana LopezOP2y ago
Mariana Lopez
Mariana LopezOP2y ago
and I got the same result as him but I cant proceed with the next steps 😦 Then run the migration plan dotnet ef database update The database script will create an empty database with some seed data. Then you have to create the app_user in the database with the following script: create user app_user with password '123456'; grant select, insert, update, delete on all tables in schema public to app_user; grant usage on all sequences in schema public to app_user;
Angius
Angius2y ago
Aight, what happens when you do proceed with the next steps? What happens when you try to run the migrations?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server