0

I have a simple console project with one dependency that is a library project. Both are targetting .NET 4.8.

The second project is a project reference in the console project.

enter image description here

I want to migrate both projects to .NET Core. For doing that is use the Visual Studio extension ".NET Upgrade Assistant".

I right clicked on the console project and selected "Upgrade". In the following menu, I choose "Upgrade to a newer .NET version", after that "In-place project upgrade" and then ".NET 7."

enter image description here

I was under the impression that the referenced project would also be upgraded. But that was not the case.

Is there a way to have it also upgraded?

2
  • Just wanted to point out that .NET to .NET Core would technically be a downgrade. .NET 4.8 is really .NET Framework 4.8 and .NET 7 is not .NET Core. you really mean ".NET Framework to .NET". Yes... I know the naming is confusing but it is what it is 🤷🏻 Commented Oct 11, 2023 at 8:05
  • You will have to "upgrade" the MigrationTestBackend project separately but you might be able to get away with just changing the target of that to .NET Standard 2.0 depending upon it's dependencies. Commented Oct 11, 2023 at 8:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.