C
C#2y ago
nein

❔ what should i do?

13 Replies
Florian Voß
Florian Voß2y ago
check what version your project targets and then check if the correct version of the .net runtime is installed using dotnet --list-runtimes
nein
neinOP2y ago
Florian Voß
Florian Voß2y ago
check what version your project targets
and then... should be in your .csproj file in a <TargetFramework>Version here</TargetFramework>
nein
neinOP2y ago
Florian Voß
Florian Voß2y ago
there you go you are targeting netcore3.1 but you dont have netcore3.1 installed so either install netcore3.1 or target one of the versions you have installed right now (6 or 7) try putting .net7.0 in there
Angius
Angius2y ago
If the project was made with an old version of the framework, the code might need some changes to work with newer versions Breaking changes aren't many, but some do exist
Florian Voß
Florian Voß2y ago
right, its safer to keep netcore3.1 for now and install the runtime for it
Angius
Angius2y ago
Especially if you're making a jump of, what, 3 versions ahead
Florian Voß
Florian Voß2y ago
or sdk rather since you seem to be a developer
nein
neinOP2y ago
changing the version to 7.0 worked
Florian Voß
Florian Voß2y ago
great btw we dropped "core" from the name, so .net7.0 is actually netcoreapp7.0 if you will its cross-platform, dont worry bout that
nein
neinOP2y ago
thanks
Accord
Accord2y 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