@Incubating public interface VisualStudioSolution extends Named, Buildable
The content and location of the generate solution file can be modified by the supplied methods:
apply plugin: "visual-studio" model { 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") } } } }
Named.Namer
Modifier and Type | Method and Description |
---|---|
TextConfigFile |
getSolutionFile()
Configuration for the generated solution file.
|
getBuildDependencies
TextConfigFile getSolutionFile()