Skip to main content

dotnetsdk

Selects a .NET SDK

dotnetsdk "SDK"

For more information see the MSDN documentation here

Parameters

SDK is one of:

Applies To

Project configurations.

Availability

Premake 5.0 beta5 or later.

Visual studio is the only toolset currently supported.

Examples

dotnetsdk "Web"
dotnetsdk "Web/3.4.0"

A custom SDK can be specified using the following:

premake.api.addAllowed("dotnetsdk", "CustomSDK") -- add the custom SDK to allowed values for dotnetsdk
dotnetsdk "CustomSDK"

dotnetsdk "CustomSDK/3.4.0" -- Specifying a version with a custom SDK is also supported