Can .Net Framework 4.8 be targeted to Revit 2019 and 2020 add-ins?

Can .Net Framework 4.8 be targeted to Revit 2019 and 2020 add-ins?

carolina.machado
Advocate Advocate
2,623 Views
1 Reply
Message 1 of 2

Can .Net Framework 4.8 be targeted to Revit 2019 and 2020 add-ins?

carolina.machado
Advocate
Advocate

Hello!

 

I'm updating my add-ins to Revit 2021 and found out that I will need to change the target framework from .NET Framework 4.7 to .NET Framework 4.8.

 

My question is: when I change the target framework will my add-in still work well for Revit 2019 and Revit 2020?

 

I've already read this post about .NET 4.7 (https://forums.autodesk.com/t5/revit-api-forum/can-i-develop-a-revit-addon-with-net-framework-4-7-2/...) in which Jeremy Tammik says "Nobody can answer this question without testing." but I want to know if anyone has already tested it for the actual version.

 

Obs: I'm already using this (https://archi-lab.net/how-to-maintain-revit-plug-ins-for-multiple-versions/) method to keep the add-in working for multiple versions.

0 Likes
2,624 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Hmm. Generally, a Revit add-in is forwards compatible, not backwards, cf. these discussions on compatibility:

 

 

An add-in for a Revit release will work in all subsequent releases, as long as it does not make any API calls whose .NET method signatures have changed.

 

All signature-changing Revit API modifications are deprecated for at least one release before being obsoleted, so every add-in compiled for a major release of Revit N will also load and function in Revit N+1.

 

I hope this helps.

 

Cheers,

 

Jeremy

 

 

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes