Groovy Documentation

org.gradle.ide.visualstudio
[Java] Interface VisualStudioSolution

org.gradle.language.base.BuildableModelElement
  org.gradle.ide.visualstudio.VisualStudioSolution
      org.gradle.api.Buildable
          org.gradle.api.Named
All Superinterfaces:
BuildableModelElement, Buildable, Named

@Incubating
public interface VisualStudioSolution
extends BuildableModelElement, Named

A visual studio solution, representing one or more ProjectNativeBinary instances from the same ProjectNativeComponent.

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

  apply plugin: "visual-studio"
  model {
      visualStudio {
          solutions.all {
              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")
              }
          }
      }
  }
 


Method Summary
ProjectNativeComponent getComponent()

The component that this solution represents.

Set getProjects()

The set of projects included in this solution.

TextConfigFile getSolutionFile()

Configuration for the generated solution file.

 
Methods inherited from interface BuildableModelElement
builtBy, hasBuildDependencies, setLifecycleTask
 
Methods inherited from interface Named
getName
 

Method Detail

getComponent

public ProjectNativeComponent getComponent()
The component that this solution represents.


getProjects

public Set getProjects()
The set of projects included in this solution.


getSolutionFile

public TextConfigFile getSolutionFile()
Configuration for the generated solution file.


 

Gradle API 1.12