This was more of a background question so we know how it works if/when a customer asks us how to deploy an app that needs the 2.0 CLR. My understanding is that you need to set the app pool to run using either the 2.0 or 4.0 CLR, and then inside the CLR you can target a specific version (2.0 CLR runs 2.0, 3.0, and 3.5 and the 4.0 CLR runs 4.0, 4.5, 4.5.1, 4.5.1). The Iron Foundry code (iishost.exe) which kicks off an app has a command line option to start with an app pool running either 2.0 or 4.0 CLR (
https://github.com/cloudfoundry-incubator/if_warden/blob/master/IronFoundry.Warden.IISHost/Program.cs), but we can't see any way to pass that option from CF to the running instance.
For example, I could imagine that if we set a RUNTIME_VERSION environment variable via CF and then pushed the app, that would get picked up and then iishost.exe would be kicked off with the "-v 2.0" option. At present there is a ps1 file written inside each container that has the start command for iishost.exe, but I can't find the code that creates that ps1 file.
It may be that iishost.exe has the ability to set the version even though that's not possible to configure via an application push, which is what I want to confirm. So either it's possible and I just want to document how to configure it for future reference, or if it's not currently possible then I'd request that feature be added. :-) This would be a low priority as we haven't even been asked about it yet, but it would definitely fall under the "cool to have" category.
Aaron Huber
Intel Corporation