13 Replies
check what version your project targets and then check if the correct version of the .net runtime is installed using
dotnet --list-runtimes
check what version your project targetsand then... should be in your .csproj file in a
<TargetFramework>Version here</TargetFramework>
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 thereIf 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
right, its safer to keep netcore3.1 for now and install the runtime for it
Especially if you're making a jump of, what, 3 versions ahead
or sdk rather since you seem to be a developer
changing the version to 7.0 worked
great
btw we dropped "core" from the name, so
.net7.0
is actually netcoreapp7.0
if you will
its cross-platform, dont worry bout thatthanks
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.