Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Bundling source- lost project references
 

Bundling source- lost project references

Hi, I'm bundling some sample project source code in my deployment project. The sample project contains references to assemblies that are install prerequisites on the deployment machine. The reference paths are defined statically, pointing to where they should exist on the deployment machine. However, when I deploy the installer, the references fail to resolve and any reference paths I defined in the sample project properties are lost. Do I need to bundle any additional files with the source to ensure that the reference paths aren't lost?

thanks,
R
Rob Sim -- Braintech  Thursday, August 23, 2007 6:30 PM

Hi Sim,

I don’t think the Installer will strip the relative path. You can have a look at the .csproj file. The path of assemblies referencedidn’t get changed. A possible way to solve your problem is create the same folders in your deployment project and add these assemblies into them.

Hope this helps.
Best regards.

Rong-Chun Zhang  Thursday, August 30, 2007 3:38 AM

Hi Sim,

Did you add the source files to the deployment project via File System View -> Application Folder -> Add -> Add Project Output Group -> Source Files? If so, you need to add these assemblies to your deployment project manually, because the Source Files only contains the source files.

Hope this helps.

Best regards.

Rong-Chun Zhang  Tuesday, August 28, 2007 9:05 AM
Yes, this is how I added the source.

The referenced assemblies are prerequisites for the install, so they are not bundled. They are referenced using a relative path in the source project, but the relative paths seem to be stripped by the installer.

thks,
R
Rob Sim -- Braintech  Tuesday, August 28, 2007 3:33 PM

Hi Sim,

I don’t think the Installer will strip the relative path. You can have a look at the .csproj file. The path of assemblies referencedidn’t get changed. A possible way to solve your problem is create the same folders in your deployment project and add these assemblies into them.

Hope this helps.
Best regards.

Rong-Chun Zhang  Thursday, August 30, 2007 3:38 AM

You can use google to search for other answers

Custom Search

More Threads

• VDProj BannerText
• Creating a batch file to install/uninstall application
• How to pass arugments to a deployed ClickOne app?
• publish.htm and web not created by PublishOnly target in Microsoft.Common.targets
• Error: Setup has detected that the file has changed since it was initially published.
• Devenv.com error with command line build for a VS setup project
• problem with single instance clickonce app
• How to set all user installation?
• prerequisites error
• Launching installed application after installation is completed.