Skip to content

Manual Stemcell DotNet Version Guide

Allan William Martin edited this page Aug 2, 2017 · 4 revisions

.NET Versions on Windows 2012R2 Stemcells

Running .NET applications on VMs deployed from Windows 2012R2 stemcells requires that the correct .NET framework version(s) are installed. Below is a guide to how to enable the desired .NET framework on the stemcell you build. You can also visit this link for some more detailed information.

.NET 4.7, 4.6.x, and .NET 4.5.x

The latest versions of these .NET frameworks come by default on fully updated Windows Server 2012R2, according to Microsoft's release schedule.

Run through the manual stemcell build instructions for your IaaS as outlined here for vSphere and here for OpenStack. If you install all available Windows Updates and run the provisioning command Install-CFFeatures you will enable the latest .NET 4.7, 4.6.x, and .NET 4.5.x frameworks.

You can also install .NET framework updates via MSI packages during the stemcell build process if you like, if you need subsequent versions earlier than Microsoft's incorporation of those patches into the Windows Updates.

.NET 3.5

Before you install Windows Updates, open powershell and run the following:

Install-WindowsFeature Net-Framework-Core

Installing this Windows feature will enable .NET 3.5 and doing so before installing Windows Updates will ensure you install the latest patches and security updates for the framework.

Note that if you're deploying a stemcell on Cloud Foundry and intend to use .NET 3.5, you cannot deploy a .NET application with the HWC Buildpack. You must build your project as a console application and deploy with the binary buildpack.