Problem with an external assembly, what am I doing wrong?

caderoux's Avatar

caderoux

02 Jun, 2011 02:58 AM

I pushed to Mercurial on bitbucket, and it appears to be working with appharbor, but it's not finding the AjaxControlToolkit...

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 "AjaxControlToolkit". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. Site.Master.designer.cs(40,27): error CS0400: The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace (are you missing an assembly reference?) Done building project "Sunset.csproj" -- FAILED.

  1. Support Staff 1 Posted by rune on 02 Jun, 2011 03:11 AM

    rune's Avatar

    Hi,

    You may need to set the "Copy Local" property to "true" on your reference to AjaxControlToolkit - otherwise it may not be copied to the output directory.

    This issues sometimes also occur if you have the assembly in a local "bin" folder.
    This mean that it's available when VS tries to build the solution, but not when Msbuild builds it. A solution in that case would be to put the dll in another folder apart from your source code (a /lib folder for instance) and make sure your references uses that dll.

    Let me know if this helps.

    Best,
    Rune

  2. rune closed this discussion on 02 Jun, 2011 03:11 AM.

  3. caderoux re-opened this discussion on 02 Jun, 2011 03:22 AM

  4. 2 Posted by caderoux on 02 Jun, 2011 03:22 AM

    caderoux's Avatar

    OK, I did the lib thing - and pushed the binary to Mercurial, too. Seems to get me at least a build.

  5. caderoux closed this discussion on 02 Jun, 2011 03:23 AM.

  6. rune re-opened this discussion on 02 Jun, 2011 03:31 AM

  7. Support Staff 3 Posted by rune on 02 Jun, 2011 03:31 AM

    rune's Avatar

    Great, glad you got this to work.

    Best,
    Rune

  8. rune closed this discussion on 02 Jun, 2011 03:31 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

23 Sep, 2014 11:02 PM
23 Sep, 2014 03:24 AM
22 Sep, 2014 01:31 AM
20 Sep, 2014 01:28 AM
19 Sep, 2014 01:05 AM