Release Compling & References

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

    #1

    Release Compling & References

    I have a ADO.Net Library project (adonet.dll) in my VS solution

    Recently, when I Debug comple I don't get any errrors. When I Release
    compile to my local share network drive the compiler says it can't find the
    library project namespace (I build he library first)

    When I add the project reference, where do I add it from?
    What's the correct path should my library be set to?
    or why the error?

    Steve
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Release Compling & References

    Steve,

    You should add a project reference from a location where the same dll
    will be in the search path of your application. In other words, it doesn't
    matter where you set the reference to, as long as that same DLL is copied
    along with your application to where it will excecute from.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Steve B." <SteveB@discuss ions.microsoft. com> wrote in message
    news:E7D63C2C-3102-43D7-BE9D-C57010FEFAA6@mi crosoft.com...[color=blue]
    >I have a ADO.Net Library project (adonet.dll) in my VS solution
    >
    > Recently, when I Debug comple I don't get any errrors. When I Release
    > compile to my local share network drive the compiler says it can't find
    > the
    > library project namespace (I build he library first)
    >
    > When I add the project reference, where do I add it from?
    > What's the correct path should my library be set to?
    > or why the error?
    >
    > Steve[/color]


    Comment

    • Steve B.

      #3
      Re: Release Compling &amp; References

      Thank You Nicholas. Yes it did help

      Steve

      "Nicholas Paldino [.NET/C# MVP]" wrote:
      [color=blue]
      > Steve,
      >
      > You should add a project reference from a location where the same dll
      > will be in the search path of your application. In other words, it doesn't
      > matter where you set the reference to, as long as that same DLL is copied
      > along with your application to where it will excecute from.
      >
      > Hope this helps.
      >
      >
      > --
      > - Nicholas Paldino [.NET/C# MVP]
      > - mvp@spam.guard. caspershouse.co m
      >
      > "Steve B." <SteveB@discuss ions.microsoft. com> wrote in message
      > news:E7D63C2C-3102-43D7-BE9D-C57010FEFAA6@mi crosoft.com...[color=green]
      > >I have a ADO.Net Library project (adonet.dll) in my VS solution
      > >
      > > Recently, when I Debug comple I don't get any errrors. When I Release
      > > compile to my local share network drive the compiler says it can't find
      > > the
      > > library project namespace (I build he library first)
      > >
      > > When I add the project reference, where do I add it from?
      > > What's the correct path should my library be set to?
      > > or why the error?
      > >
      > > Steve[/color]
      >
      >
      >[/color]

      Comment

      Working...