Target Framework - Unable To Change

Target Framework - Unable To Change

Hugh_Compton
Advisor Advisor
1,531 Views
2 Replies
Message 1 of 3

Target Framework - Unable To Change

Hugh_Compton
Advisor
Advisor

Hello

 

When trying to follow the 'My First Plugin' tutorial using Revit 2020 and Visual Studio 2019 I am unable to change the 'Target Framework' to .net 4.7.

 

When I installed Visual Studio I used the Unity add-on which might be restricting which Frameworks I can use.....  

 

I have downloaded and installed .net Framework 4.7, 4.7.1, 4.7.2 and 4.8 but none of them show up in Visual Studio > Target Framework.  

0 Likes
Accepted solutions (1)
1,532 Views
2 Replies
Replies (2)
Message 2 of 3

recepagah12
Advocate
Advocate

Probably there is some sort of error occurred in your visual studio installation. Because of Revit needs.Net Framework for run the add-ins. But you have only.Net Standard Library. I Suggest a new clean setup of Visual Studio. Here is a photo of how your visual studio should lookNet Framework.png

 

I hope this helps,

Recep.

0 Likes
Message 3 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @Hugh_Compton ,

I think while creating the project you have chosen Class Library(.NET STANDARD) instead of Class Library(.NET FRAMEWORK).

As you see, Class Library(.NET FRAMEWORK) helps you to create .dll File which will help us to create Revit plugin.

Screenshot (105).png


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes