“Unable to install or run the application. The application requires that the assembly be installed in the Global Assembly Cache (GAC) first.”
I recevied this error while compiling my first C# production application. I had to do the following in Visual Studio for the project:
- In Solution Explorer, expand the References node and click the assembly listed in the error. Ensure Copy Local in the Properties grid is set to ‘True’.
- In the properties of the project, Publish | Application Files Tab, ensure the Publish Status for the assembly listed in the error is set to ‘Include’