The Macro Manager changed in Revit 2025, now you need to have .NET SDK 8.0 and Visual Studio Code installed on your machine to create and build the macro in C#.
I found a way to use Visual Studio 2022 (which should also work with Rider) instead of using Visual Studio Code.
You need to change the configuration in the Macro Manager and add a custom code.cmd (https://gist.github.com/ricaun/482edc40d2b680ab733e12492264fd0d).
The code.cmd file finds the .csproj in the folder and tries to open it.
This should work without Visual Studio Code installed on the machine. 😁
Congratulations on discovering this and thank you for sharing! I added it to today's blog post:
@josborneW959Y wrote:Cool! Is there any way to get the extension to enable debugging?
Sure: https://github.com/ricaun-io/RevitAddin.VisualStudioDebug
> So from Revit 2025 coding has to be in C#
No. The Revit API is based on .NET.
> there is no way to code in VB or Python ?
You can use any language that can connect appropriately to the Revit .NET API framework.
https://learn.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/tips-for-python-developers
Can't find what you're looking for? Ask the community or share your knowledge.