I'm using Upgrade Assistant to move off .net framework but it is incorrectly flagging a project as upgraded when it isn't

John Mann 41 Reputation points
2023-06-28T14:05:31.17+00:00

I'm running the command line upgrade assistant.
https://learn.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-install

I have multiple projects to upgrade from .net framework.

I run the tool against a project, it seems to work - it says no fails, some succeeded, some skipped, and mostly it is ok - I can then build the project and it builds ok and it is now pointing at .net 6.

However some projects appeared to work, but didn't - they are still on .net framework. Yet when I try to upgrade again, it just prompts to upgrade to .net 7, it seems to think it has upgraded to .net 6 but it definitely hasn't.

How can I get it to realise the project hasn't been upgraded?

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 78,006 Reputation points Volunteer Moderator
    2023-06-28T15:34:11.9833333+00:00

    revert the project file to pre-update condition, it probably targets net 6.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.