C++ projects in VS2010 are MSBuild style projects so WiX projects will be able to reference them fine.
C++ projects in VS2008 are not MSBuild style projects and are not supported as WiX project references. Edwin G. Castro Software Developer - Staff Digital Channels Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com Please consider the environment before printing this e-mail > -----Original Message----- > From: Daniel Madill [mailto:dan.mad...@quanser.com] > Sent: Friday, November 18, 2011 1:41 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] add reference to C++ project > > I reference C/C++ projects all the time from WiX 3.5 with no problems at all. > You didn't actually name your project "myC++Project" (i.e. with '+' signs in > the > name) did you? > > Daniel Madill > > -----Original Message----- > From: RaoHuiFei [mailto:rhf...@hotmail.com] > Sent: November-18-11 4:33 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] add reference to C++ project > > > I have a VS2008 solution which contains a couple of C++ projects and C# > projects. Within this solution, a WiX3.5 setup project is created to generate > a > MSI installation package. All the outputs of my C++ projects and C# projects > need to be added into the installation package. I follow the instruction of > (http://wix.sourceforge.net/manual-wix3/votive_project_references.htm). It > works fine with C# projects. However, it does not work with C++ project: > - After I add reference to a C++ project, its "Full Path" property will show > "Object reference not set to an instance of an object" > - If I add a component as shown below, I will get "error CNDL0150: Undefined > preprocessor variable '$(var.myC++Project.TargetFileName)'" > <Component Id="myC++Project" Guid="CF8AEB23-7573-4A68-AA48- > E1BD7FF7A0F1"> > <File Id="myC++Project" Name="$(var.myC++Project.TargetFileName)" > Source="$(var.myC++Project.TargetPath)" DiskId="1" /> > </Component> > > > I googled this issue and found some 2-years-ago posts saying that referencing > C++ project with WiX was not supported at that time and will probably be > supported in the future. However, it look like it is still not supported now. > How > could I add references to C++ projects with WiX? Thanks. > > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure > contains a definitive record of customers, application performance, > security threats, fraudulent activity, and more. Splunk takes this > data and makes sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-novd2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users