Interface VisualStudioProject

All Superinterfaces:
Buildable, Named

@Incubating public interface VisualStudioProject extends Named, Buildable
A visual studio project, created from one or more native binaries.

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

 apply plugin: "cpp"
 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 Details

    • getProjectFile

      XmlConfigFile getProjectFile()
      Configuration for the generated project file.
    • getFiltersFile

      XmlConfigFile getFiltersFile()
      Configuration for the generated filters file.