Announcements
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.NET version

.NET version

Dear Revit developers,

 

Could you use .NET 6 for Revit 2023, that would greatly improve the quality of the tools I develop. The use of .NET 6 would also improve Revit's performance as it is faster and more efficient than .NET framework. Also, with a .NET version greater than .NET 5 comes C# 9, which offers newer and more functionality for developing with the Revit API. Furthermore, with the latest version of .NET comes the latest version of WPF, which offers better looks and overall improvements.

Thanks in advance!

 

Kind regards,

 

Jeroen van Halderen

14 Comments

Next to the advantages I listed last time, I also believe that by using .NET 6 you could make a Revit for Linux and Mac as well, which could be beneficial.

jeremy_tammik
Autodesk

You do know that Revit does not use any .NET internally. It is only an API layer connecting the Revit internals to the outside world. The version of .NET used by the Revit API will not affect the Revit internals or its performance at all, afaik. Can't you make use of .NET 6 for your own tools and still connect them to the Revit API via a lower version of .NET? I thought that was one of the main features of .NET, its strong interoperability?

@jeremy_tammik no, I didn't know that, my apologies for my incorrect assumption about Revit using .NET then. I don't know if you can use .NET 6 for tools and connect them to the Revit API via a lower version of .NET, but I will definitely try that.

However, even with this workaround to use a more modern version of .NET I think it would still be better if Revit API switched to .NET 6, to make things easier for everyone.

Oh, by the way, I also linked to this post on the Revit API forum, as this is more of an API issue as you say.

jeremy_tammik
Autodesk

Thank you. 

 

Here is another related discussion in the forum:

 

https://forums.autodesk.com/t5/revit-api-forum/does-revit-target-net-standard/m-p/9792894

 

I added a summary of this thread to The Building Coder to make it easier to find and read:

 

https://thebuildingcoder.typepad.com/blog/2021/01/face-triangulation-lod-net-5-and-core.html#2

 

Thiago Almeida added a very helpful additional clarification to that:

 

https://thebuildingcoder.typepad.com/blog/2021/01/face-triangulation-lod-net-5-and-core.html#2.1

  

@jeremy_tammik thank you for the helpful information! I understand that you can use .NET 5, and also .NET 6 I assume, with Revit API but there's no guarantee that everything will work the way it normally would.

Anyway, I think I'll wait for visual studio 2022 for full support for .NET 6 and all the new features that come with it.

@jeremy_tammik Have you heard anything back from the factory regarding the transition of the API to .NET 5 (and eventually .NET 6) yet by any chance?

jeremy_tammik
Autodesk

@jeroen.van.halderen   Only what is already mentioned in the discussion forum. Please let us talk there, not here.

Ok, I'll communicate via the discussion forum in the future

chuongmep
Participant

As everyone knows microsoft stopped at .NET Framework  4.8 and pursue .NET 6 in future, so I hope team can consider upgrading revit to support .NET Core in Revit 2024 or earlier.This brings a lot of good to developers, helping to increase performance and use new features.

Tags (1)
nice3point
Advocate

Yes please, we want a new .Net

hamati_rami2004
Explorer

While you "can" reference .NET Framework assemblies in .NET 6, this is not guaranteed and not even recomended. .NET6 is not a newer version of .NET Framework, it's a different kind of framework and not compatible with it. 

 

I have some addins written for Revit using .NET Framework4.8 and there is no way I can start a .NET 6 app from the .NET Framework adding starter assembly. And I can't create a WPF application using .NET Standard. 

 

.NET Framework is such a pain, especially with package management, not sure why Autodesk wouldn't add support for it. I am not a C++ programmer so I am stuck with .NET

 

Capture.PNG

 

Also see this compatibility issue over .net versions
https://learn.microsoft.com/en-us/answers/questions/716127/how-to-use-existing-net-framework-48-clas...

 

 

kimberly.fuhrman
Autodesk
Status changed to: Accepted

Congrats! We think this is a great idea, so we've decided to add it to our roadmap. Thanks for the suggestion!

 

To follow the progress of features in development, please see the Revit Public Roadmap and join the Revit Preview Release to participate in feature testing. (Note that Accepted Ideas may not be immediately available.)

 

The Factory

kimberly.fuhrman
Autodesk
Status changed to: Implemented

Implemented

We are pleased to say that this has been implemented in Revit 2025! (.NET8) Thank you for your contribution to improving Revit!

 

Help | .NET 8 Upgrade | Autodesk

 

 -The Factory

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report