CopyLocal = true, compiler errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Claire

    CopyLocal = true, compiler errors

    I have a project that uses TChart assembly. I don't think that the
    assembly's the problem though.
    If I compile in debug mode with CopyLocal set to true, the solution builds
    perfectly.
    In Release mode however, with CopyLocal property set to true, every mention
    of the TeeChart components gives me the error "The type or namespace name
    "xxx" could not be found (are you missing a using directive or an assembly
    reference?)"
    Ive tried restarting visual studio, deleted all the object and bin
    directories but it doesn't cure the problem. Ive added the path to the
    tchart assembly to my project path references. The TeeChart assembly is also
    within the project references.

    Any ideas please?


  • Kevin Yu [MSFT]

    #2
    RE: CopyLocal = true, compiler errors

    Hi Claire,

    First of all, I would like to confirm my understanding of your issue. From
    your description, I understand that when you're trying to build in release
    mode, the building process failed. If there is any misunderstandin g, please
    feel free to let me know.

    From the error message, I assume that you are building into one output
    directory. This might be the cause of the problem. You can try the
    following for resolution.

    1. Copy solution project folder to another location on your harddisk for
    testing.
    2. Open the project in IDE. Remove the reference to TChart.
    3. Delete local copy of TChart.
    4. Add the reference again from the main location of TChart file (released
    version) and make sure copylocal is true.
    5. Try to rebuild the project. Change it to Realease build and try building
    it again.

    HTH.

    Kevin Yu
    =======
    "This posting is provided "AS IS" with no warranties, and confers no
    rights."

    Comment

    Working...