C
C#17mo ago
nein

❔ what should i do?

13 Replies
Florian Voß
Florian Voß17mo 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
nein17mo ago
Florian Voß
Florian Voß17mo ago
check what version your project targets
and then... should be in your .csproj file in a <TargetFramework>Version here</TargetFramework>
nein
nein17mo ago
Florian Voß
Florian Voß17mo 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
Angius17mo 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ß17mo ago
right, its safer to keep netcore3.1 for now and install the runtime for it
Angius
Angius17mo ago
Especially if you're making a jump of, what, 3 versions ahead
Florian Voß
Florian Voß17mo ago
or sdk rather since you seem to be a developer
nein
nein17mo ago
changing the version to 7.0 worked
Florian Voß
Florian Voß17mo 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
nein17mo ago
thanks
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
More Posts