The System.Windows.Interactivity namespace vanishes when I swap from DEBUG build to RELEASE build. My project fails to build (naturally), and gives the error and warning visible in the images below. The namespace simply disappears from the Object Browser as soon as I switch build modes, even though the reference is still present in the Solution Explorer.
What's going on here?! And how do I fix it?
The reason can be you have linked to the dll that is placed inside Debug folder. If link shows relative path like ../my.dll when this dll will be not accessible from Release folder. You can replace relative link by full. But better solution will be moving dll above Debug and Release folder in folders hierarchy:
Take a look to your build configurations; you can open the .csproj file with some good editor (Vim, Sublime, Notepad++) and take a search the reference you're missing. It is possible to reference different libraries depending on the build configuration, so maybe the reference of this library is not included in the "Build | Release" mode, or it is defined specifically in the "Build | Debug" configuration section instead of the common one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With