-
Notifications
You must be signed in to change notification settings - Fork 53
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
Newly compiled code cannot be loaded into revit #47
Comments
Hi @hbbliyong, many thanks for your reported, can give me provide some example to can create problem ? |
I decompiled the dll from the temp directory, it's new, but it didn't work. My solution contains two projects, command and business logic code. i alse test the test project ,i modified the test code and complied it, it can work well. |
i found the reason. I have three dlls, the Command.dll,A.dll,B.dll. |
Thank for provide more information and explaination , I know that problem, Revit Addin Manager at the moment just apply for command change with one assembly, all library dependent change can't update, this also is limit of addinmanager at this time, maybe I will consider find another way to allow dependent assembly work with like same namespace so far :
|
@chuongmep thank you for replying. Is there any possibility for us to solve this problem by AppDomain? |
@hbbliyong at the moment, addin manager also working by resolve with App Domain because .Net Framework still is 4.8, I will think find another way when I have time, thanks for your ideas. |
@chuongmep Do you mean that it cannot be solved under .Net Framework4.8? |
@hbbliyong I recommend you try to look this project https://github.com/dotnetcore/Natasha, if I have time, I also try to hack something |
@chuongmep i have another question,why it works well in reivt2018? |
@hbbliyong , I'm not sure about that, just look about 24 and fix for that . |
Thank you @kelilife , I will take a look to that when I have time. I'm happy if any people have some pull request to clearly for it. |
@kelilife thank you for good catch. It is useful with any develop are looking to this project and continue to explore all detail of that. Appreciated ! |
I used the latest version 1.44, the first load ran without problems, modified the code and re-run, the newly compiled code did not load into revit. Asked other colleagues, colleagues second run will prompt whether to copy the dll, mine did not. I need to close revit and re-open it to get the new code to load into revit. My environment is Windows 10, Revit 2021.
Origin :
我使用了最新1.44版本,第一次加载运行没有问题,修改代码后重新运行,新编译的代码并没有加载到revit。询问别的同事,同事二次运行会提示是否拷贝dll,我的没有。
这时候,我需要将revit关闭后重新打开,新的代码才会加载到revit。我用的环境是win10+revit2021
The text was updated successfully, but these errors were encountered: