-
-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Can't run C# pushbutton #2375
Comments
Revit 2025 use .NET 8.0, so any DLLs/dependencies must be built using .NET 8.0 as well. This Dev extension has not been updated for 2025. Its using .Netframework 4.8 which covers at least 2020-2024 and probably even earlier versions as well. |
I tried in Revit version 2022 (pyrevit version 5.0.0) but got the same error as version 2025, should I wait for the bug to be fixed? |
did you use latest WIP? Looks like they were already discussing this issue in this merged pull request. |
Sorry, I missed the information. I uninstalled the old WIP version and reinstalled the WIP version "pyRevit_5.0.0.24236_admin_signed", my C# code worked, but now I have 2 errors.
|
Thanks for the report, I should have expected incompatibilities with previous versions 😅 The first error stems from this line:
It the assembly is not found, a refs = (_get_reference_file(ref_name) for ref_name in ref_list)
return [r for r in refs if r] Can you please have a try with this code? For the Console problem: Lastly, a little ask: please don't use screenshots when you can copy paste the code; it will help us help you more quickly to have a copy-paste-able minimum reproducible example to test with (that's why I wrote you what it could be done to fix this issue, I'm to lazy to test things myself 🤣 ) |
✈ Pre-Flight checks
🐞 Describe the bug
I can't run the code test C# of "Test C# Script.pushbutton"
Although I got it running on pyrevit version 4.8.16.24121
⌨ Error/Debug Message
♻️ To Reproduce
No response
⏲️ Expected behavior
。
🖥️ Hardware and Software Setup (please complete the following information)
Additional context
。
The text was updated successfully, but these errors were encountered: