Reputation: 1359
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?
Upvotes: 0
Views: 227
Reputation: 62101
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.
Upvotes: 1
Reputation: 120947
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.
Upvotes: 4
Reputation: 88074
You can't. If there is a dependency on .net 4 then the framework must be installed as well.
Your only options are:
Upvotes: 11