HowTo: Distribute PrintForm, PrintControls and PrintAdapter Assemblies with a ClickOnce Application in VS 2008
Our products are typically installed in the GAC on a development machine, so if you publish a project using one of them using ClickOnce in Visual Studio 2008 you may receive the following error, or similar, when you try and install on a client machine:
"Unable to install or run the application. The application requires that assembly TMGDevelopment.Shared Version 18.104.22.168 be installed in the Global Assembly Cache (GAC) first."
In your project set the TMGDevelopment assembly references to Copy Local = true.
To do this:
- Right click on the project name in the Solution Explorer window in VS 2008.
- On the References tab, select each of the assemblies prefixed TMGDevelopment, and then set the Copy Local property to true in the Properties window.
- Save the solution, and re-publish the project from the Publish ... menu item on the Build menu.