Groovy Documentation

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

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

@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 BuildableModelElement
builtBy, hasBuildDependencies, setLifecycleTask
 
Methods inherited from interface Named
getName
 

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.12