I am creating a program using WPF by mvvm method and I use Revit API classes on some methods and properties. The first time I reference RevitAPI and RevitAPIUI dlls does not seem to create a problem with the WPF window, but when I use a view model (which contains properties declared with Revit classes) to be the datacontext of my WPF window, an error is generated (btw, the error is some sort of "Cannot find RevitAPI Version=2015.0.0.0 Culture=neutral, PublicKeyToken=null or one of its dependencies").
Although the programs work normally at runtime, the regeneration of WPF window does not work properly especially after compiling, and so I cannot edit or modify them properly too unless I reload it on my own.
Is there any workaround to avoid this WPF window regeneration problem involving Revit API dlls? Or is there something that I missed?
Solved! Go to Solution.