I think I've partly resolved how to do it ...
I added ...
But the .NET version is still 2.0, when my btdfproj has it set to v4.0 ...
I added ...
<PropsFromEnvSettings Include="SsoAppUserGroup;SsoAppAdminGroup;VDIR_UserName;VDIR_UserPass" />
and the VDir is created with the required user id But the .NET version is still 2.0, when my btdfproj has it set to v4.0 ...
<VDirList Include="*">
<Vdir>TestVdir</Vdir>
<Physdir>..\TestVdir</Physdir>
<AppPool>SMC</AppPool>
<AppPoolNetVersion>v4.0</AppPoolNetVersion>
</VDirList>
and if I do the deployment by MSI, the app pool is created set to NET 4.0