Schnittstelle VisualStudioSolution

Alle Superschnittstellen:
Buildable, Describable, IdeWorkspace, Named

@Incubating public interface VisualStudioSolution extends Named, Buildable, IdeWorkspace
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'
  }

  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")
              }
          }
      }
  }
 
  • Methodendetails

    • getSolutionFile

      @Incubating TextConfigFile getSolutionFile()
      Configuration for the generated solution file.
    • getLocation

      Provider<RegularFile> getLocation()
      Returns the location of the generated solution file.
      Angegeben von:
      getLocation in Schnittstelle IdeWorkspace
    • getBuildDependencies

      @Incubating TaskDependency getBuildDependencies()
      Beschreibung aus Schnittstelle kopiert: Buildable
      Returns a dependency which contains the tasks which build this artifact. All Buildable implementations must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this buildable.
      Angegeben von:
      getBuildDependencies in Schnittstelle Buildable
      Gibt zurück:
      The dependency. Never returns null. Returns an empty dependency when this artifact is not built by any tasks.
    • getName

      String getName()
      Beschreibung aus Schnittstelle kopiert: Named
      The object's name.

      Must be constant for the life of the object.

      Angegeben von:
      getName in Schnittstelle Named
      Gibt zurück:
      The name. Never null.
    • getDisplayName

      String getDisplayName()
      Beschreibung aus Schnittstelle kopiert: Describable
      Returns the display name of this object. It is strongly encouraged to compute it lazily, and cache the value if it is expensive.
      Angegeben von:
      getDisplayName in Schnittstelle Describable
      Gibt zurück:
      the display name