Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts,

in one ever further developing project, I'm using WeifenLuo DockPanel Suite. The dll conmfortably resides on my harddisk and a reference to it is included in my project settings, so this works:
C#
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace EverDevelopingProject.GUI
{
    public class PropertyEditorContent : WeifenLuo.WinFormsUI.Docking.DockContent
    {
        // ...
    }
}
But it does only work in Release build. Switching to Debug causes the "WeifenLuo" occurances to get underlined with blue waves. And of course when trying to compile/run/build, I get the error "Type or namespace "WeifenLuo" not found. (Are you missing a using directive or assembly reference?)" (on the fly translated from German).

What could possibly have gone wrong with the Debug build setting?

Thanks for reading,


lukeer
Posted

1 solution

Solved.

Sure:
The dll was set to be copied to bin\Release directory via "Local Copy = true" (in dll settings).
Debug mode was set to be built prior to Release.

Hypothesis:
Upon "build new", the directory was empty so Debug couldn't find the dll. Release found it because dll was copied to Release directory.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900