Skip to content
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

Build Test project and having Revit running #17

Open
michastei opened this issue Jan 17, 2022 · 2 comments
Open

Build Test project and having Revit running #17

michastei opened this issue Jan 17, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@michastei
Copy link

Hi Tobias,
I would like to develop test cases, build and run them using revit. Therefore I open Revit and start the TestRunner without having a Revit Project open.
If I run the tests and rebuild the test project, there is the Error:

Severity Code Description Project File Line Suppression State
Error Could not copy "obj\DEVELOPMENT\Test.dll" to "bin\DEVELOPMENT\Test.dll". Exceeded retry count of 10. Failed. The file is locked by: "Autodesk Revit (12124)" Test

By closing Revit, the Test.dll is not locked any more and the rebuild is possible. But it is time consuming to close and reopen Revit for each build process. Do you have a worklfow to avoid this behaviour?
Thanks
Michael

@tobiasfloescher-geberit
Copy link
Member

Hi, this is a good point. I will take this in the backlog.

@tobiasfloescher-geberit tobiasfloescher-geberit added the enhancement New feature or request label Mar 9, 2022
@Jo-Meer
Copy link
Contributor

Jo-Meer commented Mar 25, 2022

You can try to use .Net Hot reload.

I configured my IDE(Rider) to launch revit with the debugger attached. I am not sure if Visual Studio can do the same. But you can start revit manually and then attach the VS debugger.

For small code changes this works, but more invasive things like changing method signatures are not supported. But this definitely reduces the amount of revit restarts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants