Skip to main content

vsprops

Add any property to your visual studio project This allows you to set properties that premake does not support without extending it

Values set at one time are sorted alphabetically If you want to output groups of values in any order, set multiple times.

	vsprops {
Name1 = "value1",
Name2 = "value2",
}
vsprops {
Name3 = "value3",
}

Nested values are also supported.

	vsprops {
Name1 = "value1",
Name2 = {
Name3 = "value3"
}
}

Parameters

Name and value are strings

Availability

Premake 5.0-beta3 or later.

Applies To

The config scope.

Examples

	language "C#"
vsprops {
-- https://devblogs.microsoft.com/visualstudio/vs-toolbox-accelerate-your-builds-of-sdk-style-net-projects/
AccelerateBuildsInVisualStudio = "true",
-- https://learn.microsoft.com/en-us/visualstudio/ide/how-to-change-the-build-output-directory?view=vs-2022
AppendTargetFrameworkToOutputPath = "false",
-- https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/nullable-reference-types
Nullable = "enable",
}
	language "C++"
nuget {
"Microsoft.Direct3D.D3D12:1.608.2"
}
vsprops {
-- https://devblogs.microsoft.com/directx/gettingstarted-dx12agility/#2-set-agility-sdk-parameters
Microsoft_Direct3D_D3D12_D3D12SDKPath = "custom_path",
}