Groovy Documentation

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

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

@Incubating
public interface VisualStudioProject
extends BuildableModelElement, Named

A visual studio project, created from one or more NativeBinary instances.

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

  apply plugin: "visual-studio"
  model {
      visualStudio {
          projects.all {
              projectFile.location = "vs/${name}.vcxproj"
              projectFile.withXml {
                  asNode().appendNode('PropertyGroup', [Label: 'Custom'])
                          .appendNode('ProjectDetails', "Project is named ${project.name}")
              }
          }
      }
  }
 


Method Summary
ProjectNativeComponent getComponent()

The component that this project represents.

XmlConfigFile getFiltersFile()

Configuration for the generated filters file.

XmlConfigFile getProjectFile()

Configuration for the generated project file.

 
Methods inherited from interface Named
getName
 
Methods inherited from interface BuildableModelElement
builtBy, setLifecycleTask
 
Methods inherited from interface Buildable
getBuildDependencies
 

Method Detail

getComponent

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


getFiltersFile

public XmlConfigFile getFiltersFile()
Configuration for the generated filters file.


getProjectFile

public XmlConfigFile getProjectFile()
Configuration for the generated project file.


 

Gradle API 1.11