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 / July 2004

Tip: Looking for answers? Try searching our database.

Command Line Compilation Failing with Managed C++ refernces

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Geoff Evans - 14 Jun 2004 19:16 GMT
We have started creating several managed c++ projects that are interdependent (meaning they reference another managed c++ project).  Since inception of these libraries we have noticed two significant problems:

1.  When performing the pre-build step (implicitly done by VS due to referenced managed c++ project), visual studio does not always copy the compiled assembly from the same build configuration as the project is being compiled with.  EG a debug build will copy a compiled release version of the assembly.  This is a significant issue because the other build configuration could be out of date.  We have to keep cleaning the "other" build configuration to get it to copy the correct assembly file for tlbexport.

2.  We are noticing that since using references (as opposed to #using, which is not build-order safe), building our solution from the command line no longer performes the aforementioned prebuild step, and all assembly dependent types cause compile errors thus killing our build process.  This process does not fail when compiled through the IDE.
Signature

Geoff Evans
Tools Programmer
Insomniac Games

Christian Benien - 08 Jul 2004 08:16 GMT
Hi Geoff,

I've got the same problem. I cannot build managed C++ projects on the
command line. Have you found a solution?

BTW: our solution for the pre-build step in Visual Studio is to avoid
switching configurations. When we go from debug to release or vice
versa, we switch the configuration and then restart Visual Studio.
This ensures that the correct references are copied.

Christian

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.