Instal dotnet 8 on visual studio 2022 for revit 2025

Instal dotnet 8 on visual studio 2022 for revit 2025

pmeigneux
Advocate Advocate
2,208 Views
3 Replies
Message 1 of 4

Instal dotnet 8 on visual studio 2022 for revit 2025

pmeigneux
Advocate
Advocate

Hello,

I have a problem with visual studio 2022. For Revit 2025, you must compile with the dotnet 8 sdk.

By default, it was not installed on my PC. I installed it but it does not appear in the .net list in visual studio. I searched the net but a priori only a version of visual studio can pose a problem but my version is higher than the minimum..

 

Screenshot_1.pngScreenshot_2.pngScreenshot_3.png

 

Philippe.

0 Likes
Accepted solutions (2)
2,209 Views
3 Replies
Replies (3)
Message 2 of 4

Moustafa_K
Collaborator
Collaborator
Accepted solution

as far as i know, you can't use .net 8 framework, with old project. you need to upgrade your project.

couple of links that may help you

  1. https://forums.autodesk.com/t5/revit-api-forum/upgrade-visualstudiorevitaddinwizard-2025-net-8/m-p/1...
  2. https://forums.autodesk.com/t5/revit-api-forum/conflicts-building-revit-2025-plugin-with-net-framewo...
  3. https://forums.autodesk.com/t5/revit-api-forum/revit-2025-plugin-with-net-framework-4-8/m-p/12727039...

see if those not helpful enough, show us what you have reached so far to help you through

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
0 Likes
Message 3 of 4

MattKincaid
Advocate
Advocate
Accepted solution

After installing dotnet 8, you need to upgrade the project.  VS 2022 has a built in tool for this.  https://devblogs.microsoft.com/dotnet/upgrade-assistant-now-in-visual-studio/

 

After updrading the project, you may also need to make some manual code updates to compile successfully.

0 Likes
Message 4 of 4

pmeigneux
Advocate
Advocate

Thank you.