C
C#13mo ago
Mariana Lopez

❔ 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 User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo 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 Lopez13mo 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 User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo 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 User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo 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 User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo ago
sorry I mean folders
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo 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 User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo ago
app is on users and my framework on program files :c
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo ago
but I don't know how to proceed -I'm a complete begginer hmm
MODiX
MODiX13mo ago
TeBeCo
is your repo on github ?
React with ❌ to remove this embed.
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo ago
It's a repo at bitbucket but I don't know if I can shared it :v
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo 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 User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo ago
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Mariana Lopez
Mariana Lopez13mo ago
sorry this is the one that im referring to
Mariana Lopez
Mariana Lopez13mo ago
Angius
Angius13mo ago
That's a JS project file
Mariana Lopez
Mariana Lopez13mo 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 Lopez13mo ago
Mariana Lopez
Mariana Lopez13mo 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
Angius13mo ago
Aight, what happens when you do proceed with the next steps? What happens when you try to run the migrations?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord13mo 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.