- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would rather start building a project in the macro editor then transfer it to VS. The ide is throwing an error saying that revit exe is built in 4.5.2, but the ide only goes up to 4.5. It is also throwing errors on two lines of code.
The primary reference "..\..\..\..\..\..\RevitAPIUI.dll" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5". (MSB3274)
The type or namespace name 'Selection' does not exist in the namespace 'Autodesk.Revit.UI' (are you missing an assembly reference?) (CS0234) - C:\Users\jboone\AppData\Local\Temp\{940F3BEE-310D-4BA5-90AE-6B65E73D6E11}\Revit\DocHookups4024\299439616\MRM05\Source\MRM05\ThisDocument.cs:17,25
The type or namespace name 'Macros' does not exist in the namespace 'Autodesk.Revit.UI' (are you missing an assembly reference?) (CS0234) - C:\Users\jboone\AppData\Local\Temp\{940F3BEE-310D-4BA5-90AE-6B65E73D6E11}\Revit\DocHookups4024\299439616\MRM05\Source\MRM05\ThisDocument.Designer.cs:11,66
I suspect it is because I am not building in 4.5.2 .net framework. What to do?
Solved! Go to Solution.