This code doesn’t work for me, if start of this before using Dynamo in current session of Revit. According messages, Revit can’t resolve references. I tried to put this to both paths: C:\Program Files\Dynamo\Dynamo Core\2, and C:\Program Files\Dynamo\Dynamo Revit\2\Revit_2019, and copy all files from these both paths to third path. If start Dynomo at lease one time and close, the code works. Is possible using the code without starting Dynamo?
Hey can you share .sln file for visual studio. ( or anyone other who did it)
Im not able to debug and build solution. I guess I’m taking wrong template file.
yea do what @Brendan_Cassidy said, but with that being said. You can right click the red underlined error and see if there is possible solutions that VS can solve for you automatically.
@Brendan_Cassidy@stillgotme Thank you again
I done a clean solution and then build solution. Got this error -
CS0115 'Service1.Dispose(bool)': no suitable method found to override
I had googled for this error. one of them said to match namespace with project name ( which is correct in my case) and another said to change CPU platform from configuration manager. I tried both x64 and x86.
I got 2 warnings in x86. So kept CPU platform on x64.
yes, to tell you the exact error from your code, there is an override method (something like this public override void Dispose())in your service1.cs that is causing this error. Most likely is your reference to class (something like this public class app : IExternalApplication) from that class is broken.