Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / October 2004

Tip: Looking for answers? Try searching our database.

Problem with C# project dependencies in VS.NET ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Yannick Létourneau - 07 Oct 2004 16:21 GMT
Very simple problem.

I have a solution with 3 projects :

Project A is a plain C++ DLL project
Project B is a managed C++ wrapper DLL for project A (it has A as a Reference)
Project C is a C# project usign the managed C++ wrapper (it has B as a
Reference)

Thus, project C depends indirectly from A, but the dependency checker of
VS.NET seems to overlook that because A is a plain C++ DLL.

The result is that project A's DLL is not copied into the output directory
of project C, preventing project C to run properly.  If I copy the DLL
manually it works.

Is this a bug of VS.NET ?  Is there something I can do to make this work ?  

Thanks,
Yannick L.
Ken Varn - 07 Oct 2004 20:20 GMT
I think that only referenced assemblies are copied locally.  In order to
copy the unmanaged C++ DLL, you have to copy it manually.  I usually do this
by putting in a post build command in the project settings.  The post build
command can just copy the required DLL to the location where you need it.
Note that this is not available for ASP.NET apps.

- Right click on the C# project and select properties.
- Select Build Events under Common Properties
- Type the desired Windows command line copy statement into the Post Build
Command Line entry area to copy the DLL over.

Signature

-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
"Yannick L?tourneau" <YannickLtourneau@discussions.microsoft.com> wrote in
message news:F39F4D65-A377-439B-A0A9-855703807994@microsoft.com...

> Very simple problem.
>
[quoted text clipped - 16 lines]
> Thanks,
> Yannick L.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.