Set AppPool to "No Managed Code" when empty string used in config value: IIS-App-Pool-Dot-Net-Version
When attempting to set the runtime version to "No Managed Code" by setting the "IIS-App-Pool-Dot-Net-Version" in the iis-config.json to an empty string, the original code defaulted to setting the .NET CLR Version to "v4.0", but this change (which looks like it shouldn't behave any differently !) will set it to "No Managed Code".
Sorry Hendy for taking so long to get back to you. Just to confirm, you saying when you set the IIS-App-Pool-Dot-Net-Version to an empty string it just defaults to v4.0?
I cannot replicate this on Windows 10 Home or Windows 10 Pro. When I set the following json:
{
"IIS-Site-Name": "test-site-hendy",
"App-Pool-Name": "test-site-hendy",
"IIS-App-Pool-Dot-Net-Version": "",
"bindings": ["test-site-hendy.localtest.me"]
}
It sets the .NET version correctly:

Then again your changes are not changing much and I was able to setup my IIS site with your PR.