Support for .net framework or .net core for building Revit plugin / ribbion.

Support for .net framework or .net core for building Revit plugin / ribbion.

Anonymous
Not applicable
6,583 Views
7 Replies
Message 1 of 8

Support for .net framework or .net core for building Revit plugin / ribbion.

Anonymous
Not applicable

Hi,

 

I am building a Revit plugin / ribbon and would like to know which version of .net framework or .net core can I use with different Revit versions. I am using Revit 2017, 2018, 2019.

 

Can I use .net core or only .net framework can be used.

 

Could someone please provide complete list of compatibility between various Revit versions and .net framework or core versions.

 

Thanks,
Amit Sethi

0 Likes
6,584 Views
7 Replies
Replies (7)
Message 2 of 8

jlpgy
Advocate
Advocate

2016: net45

2017: net452

2018: net46

2019: net47

2020: net47

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com
Message 3 of 8

john_dalessandro
Contributor
Contributor

If you want core compatibility, you can also target .NET Standard 

Message 4 of 8

Anonymous
Not applicable

Thanks for providing the solution. Is dot net core supported for writing Revit plugins. Versions of Revit still remain the same as asked in the question.

 

Thanks,

Amit

0 Likes
Message 5 of 8

Anonymous
Not applicable

Hi,

 

Thanks for providing the solution. Could you please provide more details about it. Which version of Revit support dot net standard libraries. More details are mentioned in the question.

0 Likes
Message 6 of 8

jlpgy
Advocate
Advocate

Hi :

.NET implementation support

The following table lists the minimum platform versions that support each .NET Standard version. That means that later versions of a listed platform also support the corresponding .NET Standard version. For example, .NET Core 2.2 supports .NET Standard 2.0 and earlier.

.NET Standard           1.0    1.1      1.2     1.3     1.4      1.5         1.6       2.0         2.1
.NET Core1.01.01.01.01.01.01.02.03.0
.NET Framework 14.54.54.5.14.64.6.14.6.1 24.6.1 24.6.1 2N/A3

 

I think the target .NET Standard version should be:

2016: 1.0, 1.1

2017: 1.3

2018: 1.3

2019: 2.1 or later? (I'm not sure about this version, Cuz Miscrosoft has not yet determined it)

2020: 2.1 or later?

 

Besides:

If you want to build a Revit addin into .NET Standard, as well as to include some WPF solution, things will get much more complicated.

In our solution, we manually edited our .props file, which describes the solution and project. It's a new way that Microsoft supplies, for their new .NET Core & .NET Standard VS solutions.

You might need to read lots of MSBuild documents if you want to manually edit the .props files.

https://docs.microsoft.com/zh-cn/visualstudio/msbuild/msbuild?view=vs-2017 

 

Considering that you were asking about .NET Core questions, so I suppose that you must have known well about the new <Project> .props file 🙂

 

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com
0 Likes
Message 7 of 8

kadallimanjunath
Community Visitor
Community Visitor

Which net framework should be used for Revit 2018.3?

0 Likes
Message 8 of 8

lukaskohout
Advocate
Advocate

Same as for Revit 2018, ergo 46.


Hitting Accepted Answer is a Community Contribution from me as well as from you.
======================================================================
0 Likes