Search code examples
.netvb.netvisual-studio-2017

Visual Basic .NET VS 2017 Build Directives - build tab missing. VS Custom Constraints


In Visual Basic Visual Studio 2017 I can not find the build directives. The build tab is missing.

Example directive

#If Not STEAMCLIENT Then
    'code here
#End If

Docs from Microsoft: Here is the Microsoft docs on this: https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/directives/if-then-else-directives

I tried to set it in the advanced compiler settings based on this doc: https://learn.microsoft.com/en-us/dotnet/visual-basic/reference/command-line-compiler/define but I could not find the setting: enter image description here

Settings from the project:

enter image description here

enter image description here


Solution

  • Thanks. They can be defined as Custom constants (below the define debug and define trace options). Example: Win32=True enter image description here