Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Problem with C# project dependencies in VS.NET ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yannick Létourneau  
View profile  
 More options Oct 7 2004, 11:21 am
Newsgroups: microsoft.public.vsnet.general
From: "Yannick Létourneau" <YannickLtourn...@discussions.microsoft.com>
Date: Thu, 7 Oct 2004 08:21:07 -0700
Local: Thurs, Oct 7 2004 11:21 am
Subject: Problem with C# project dependencies in VS.NET ?
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.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken Varn  
View profile  
 More options Oct 7 2004, 3:20 pm
Newsgroups: microsoft.public.vsnet.general
From: "Ken Varn" <nospam>
Date: Thu, 7 Oct 2004 15:20:23 -0400
Local: Thurs, Oct 7 2004 3:20 pm
Subject: Re: Problem with C# project dependencies in VS.NET ?
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.

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

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google