VS_CSHARP_<tagname> — CMake 4.3.3 Documentation

# VS_CSHARP_<tagname>

Added in version 3.8.

Visual Studio and CSharp source-file-specific configuration.

Tell the Visual Studio Generators to set the source file tag `<tagname>` to a given value in the generated Visual Studio CSharp project. Ignored on other generators and languages. This property can be used to define dependencies between source files or set any other Visual Studio specific parameters.

## Examples

Example usage:

    set_source_files_properties(<filename>
             PROPERTIES
             VS_CSHARP_DependentUpon <other file>
             VS_CSHARP_SubType "Form")

## See Also

- The `CSharpUtilities` module for configuring CSharp/.NET targets.