简体   繁体   中英

How can I deploy .NET v4.0 application on target environment without .NET v4.0?

How can I deploy .NET v4.0 application to some target servers where installing .NET v4.0 is not an option? Recompiling to v3.5 is not feasible too because I have been using Task Parallel Library. Should I use NGen.exe? Does anyone have the experience?

You can't. If there is a dependency on .net 4 then the framework must be installed as well.

Your only options are:

  1. Convincing the server owners to install .net 4
  2. Remove usage of any 4.0 framework dependencies and retargetting your application.
  3. Deploying to different servers that do have .net 4 installed.

You cannot. An application compiled for framework 4.0 will require framework 4.0 to run. Alternatively you can expose the functionality written for framework 4.0 through webservices and consume them through a 3.5 client.

How can I deploy .NET v4.0 application to some target servers where installing .NET v4.0 is not an option?

You do not. Point. They also can not run Linux or MAc software.

Does anyone have the experience?

Yes. I dont deploy it. If it is a customer - no way. If it was my job to make the software for them to run, I get fired, as I should for not asking first.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM