I added an MSI project to check it, and it compiles ok for me. I link the projects together as:
* The wixlib project needs to pull in the custom actions from the CA project. Two ways to do that are 1. Use a build events in Visual Studio to copy the CA.dll file to the wixlib project's directory (that's what I did in the code example) 2. Add the CA project as a project reference to the wixlib project (add the project, don't add the DLL directly). Then you can use the $(var.MyCustomActionProject.TargetDir)MyCustomAction.CA.dll as the SourceFile to the Binary element in the wixlib's .wxs file. The preprocessor variable is just a convenient. You can also just use the Build events to copy the file over) --> NOTE: The CA.dll should be bound into the library. Use either the -bf flag or check the "Bind files into library file" option * The extension project needs to reference the wixlib. In the code example I used a build event to copy the compiled .wixlib file into the extension's source code directory so that it's sitting alongside the C# files. Add the wixlib to the extension project as an existing file and mark it as an embedded resource. --> Then override the GetLibarary method in the WixExtension subclass to pull in the wixlib. --> The WixExtension subclass should also be overriding the TableDefinitions property to pull in the TableDefinitions.xml file. --> In the CompilerExtension subclass, use the CreateWixSimpleReferenceRow method to link to the CustomAction table. An example of that is in the code example. * The MSI project just needs to reference the extension DLL and add the XMLNS attribute for the extension's schema. Then it should all link together. I think that covers everything. Hopefully I didn't leave anything out. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Duplicate-symbol-when-using-CompilerCore-CreateWixSimpleReferenceRow-tp7587243p7587280.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users