- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I can't get any of my previous macros to work with Revit 2025. I have spent practically all day installing Visual Studio Code, and the SDK on one of the Revit Macro Links.
Then I copied the macros to the 2025 Macro Folder, and I changed the targeted framework in the csproj file as listed here:
Help | Upgrade Revit Macros | Autodesk
I don't understand visual studio code at all - it doesn't seem to work at all like VS or Sharp Develop. I tried a few turorials, but I can't even tell what is going on in it, or what the error is. All in all, VS Code looks like a total piece of *#$##.
But it starts having errors on the first Autodesk.Revit.Attributes.Transaction line. and it says "Document" and "Element" cant be found. Am I missing a reference I have to add? I'm not sure how to do that in Visual Studio Code, or if it even has that feature.
Anyhow, If i open my code in Visual Studio 2019, it says "Project contains incorrect configuration mappings. Open the configuration manager to fix them." But when i click the button, nothing happens.
In Visual Studio, I also get the message "The type Enum is defined is in an assembly that is not referenced. YOu must add a reference to assembly "Systme.Runtime, Verion = 8.0.0.0, Culture = neutral, PublicKeyToken......"
How do I add that, and where do i find it?
Solved! Go to Solution.