# VisualStudioSolution

@Incubating
interface VisualStudioSolution : Named, Buildable, IdeWorkspace(source)

A visual studio solution, representing one or more native binaries in a build.

The content and location of the generate solution file can be modified by the supplied methods:

     plugins {
         id 'visual-studio'
     }

     visualStudio {
         solution {
             solutionFile.location = "vs/${name}.sln"
             solutionFile.withContent { TextProvider content ->
                 content.asBuilder().insert(0, "# GENERATED FILE: DO NOT EDIT\\n")
                 content.text = content.text.replaceAll("HideSolutionNode = FALSE", "HideSolutionNode = TRUE")
             }
         }
     }

Content copied to clipboard

## Functions

getBuildDependencies
Link copied to clipboard
@Incubating
abstract fun getBuildDependencies(): TaskDependency
Returns a dependency which contains the tasks which build this artifact.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
Returns the display name of this object.
getLocation
Link copied to clipboard
abstract fun getLocation(): Provider<RegularFile>
Returns the location of the generated solution file.
getName
Link copied to clipboard
abstract fun getName(): String
The object's name.
getSolutionFile
Link copied to clipboard
@Incubating
abstract fun getSolutionFile(): TextConfigFile
Configuration for the generated solution file.