How to deploy ClickOnce .Net 3.5 application on 3.0 machine
- by Buthrakaur
I have .Net 3.5 SP1 WPF application which I'm successfully deploying to client computers using ClickOnce. Now I got new requirement - one of our clients need to run the application on machines equipped just with .Net 3.0 and it's entirely impossible to upgrade or install anything on the machines. I already tried to run the 3.5 application with some of the 3.5FW DLLs copied to the application directory and it worked without any problems. The only problem at the moment is ClickOnce. I already made it to include the 3.5FW System.*.dll files in list of application files, but it always aborts installation on 3.0 machine with this error message:
Unable to install or run the
application. The application requires
that assembly System.Core Version
3.5.0.0 be installed in the Global Assembly Cache (GAC) first. Please
contact your system administrator.
I already tried to tweak prerequisites on Publish tab of my project, but no combination solved the issue.
What part of ClickOnce is responsible for checking prerequisites? I already tried to deploy using mageui.exe, but the 3.5FW error is still present. What should I do to fore ClickOnce to stop checking any prerequisites at all?
The project is created using VS2010.