I am trying to deploy a test application that just consists of a form that has a Crystal Report that has one text field that says "Hello World". I am using the latest version of Crystal Reports for Visual Studio. The program works perfectly in the IDE, the problem comes when I try to publish it for Click Once deployment. In the Prerequisites, I select Windows Installer 4.5 (I have tried with and without this, makes no difference), .NET Framework 4.5 and the required prerequisite for Crystal Reports. When I run Setup in the test environment, when it tries to install Crystal Reports, I get a message, "Unable to install or run the application. The application requires that assembly log4net Version 18.104.22.168 be installed in the Global Assembly Cache (GAC) first".
In my research, I have seen that there is some utility to install log4net in the GAC, but what I learn here will be applied to the application I am writing to sell, and I cannot have the users run some utility to install log4net in the GAC.
How can I have setup.exe install log4net in the GAC?