Multi-targeting Revit 2019 + 2020 using MSBuild

Multi-targeting Revit 2019 + 2020 using MSBuild

JOfford_13
Advocate Advocate
730 Views
3 Replies
Message 1 of 4

Multi-targeting Revit 2019 + 2020 using MSBuild

JOfford_13
Advocate
Advocate

Hi,

 

I'm trying to use msbuild to create a multi-target project per the example below however I can't seem to get it to work with Revit 2019 and 2020 because they share the same .NET framework (4.7).  Does anyone have a quick fix to handle these two versions of Revit?  I haven't seen any articles that use msbuild to build multiple versions of the same framework.  Are there any big problems if I target 4.7.2 for Revit 2020? 

 

https://thebuildingcoder.typepad.com/blog/2018/06/multi-targeting-revit-versions-cad-terms-texture-m...

0 Likes
731 Views
3 Replies
Replies (3)
Message 2 of 4

kraftwerk15
Advocate
Advocate

kraftwerk15_0-1597265963184.png

I build against multiple frameworks without issues.

 

kraftwerk15_1-1597266010367.png

 

0 Likes
Message 3 of 4

JOfford_13
Advocate
Advocate

Agreed setting 2020 to build against 4.7.1 or 4.7.2 works but wanted to confirm this is best course of action.  I always thought the Revit API wanted the .NET frameworks to match explicitly.

0 Likes
Message 4 of 4

joshua.lumley
Advocate
Advocate

I'v'e been using 4.7.2 since it was released and never had an issue. 

0 Likes