After I have changed my dll containing my custom control I am getting warnings from the build
1>—— Rebuild All started: Project: Easy Labels, Configuration: Debug Win32 ——
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly “ResizeLabel, Version=1.0.4056.28976, Culture=neutral, PublicKeyToken=null”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly “ResizeLabel, Version=1.0.4056.28118, Culture=neutral, PublicKeyToken=null”. Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1360,9): warning MSB3243: No way to resolve conflict between “ResizeLabel, Version=1.0.4056.28976, Culture=neutral, PublicKeyToken=null” and “ResizeLabel, Version=1.0.4056.28118, Culture=neutral, PublicKeyToken=null”. Choosing “ResizeLabel, Version=1.0.4056.28976, Culture=neutral, PublicKeyToken=null” arbitrarily.
1> stdafx.cpp
1> AssemblyInfo.cpp
1> Easy Labels.cpp
1> Generating Code…
1> .NETFramework,Version=v4.0.AssemblyAttributes.cpp
1> Easy Labels.vcxproj -> C:\Users\bobinski\Documents\Visual Studio 2010\Projects\Easy Labels\Debug\Easy Labels.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
There seems to be references to the earlier version as well as the new version.
I reset the toolbox, removed the new controls from the code, which surely should leave no reference to the dll, but the designer exception still occurs.
I’m obviously doing something basically wrong, but I’ve no idea what it might be.
I’m wondering if I should be using the GAC, but really advice on changing a dll safely is probably what I need.
If there is a toolbox item which is an old version, deleting it, closing and re-opening the solution sorts it out.