API 文档 | VisualStudioSolution |
---|
注意:此类处于 孵化中,可能会在 Gradle 的未来版本中更改。
一个 Visual Studio 解决方案,代表构建中的一个或多个原生二进制文件。
生成的解决方案文件的内容和位置可以通过提供的方法修改。
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") } } } }
属性 | 描述 |
buildDependencies | 返回一个依赖项,其中包含构建此 artifact 的任务。所有 |
solutionFile | 孵化中 生成的解决方案文件的配置。 |
TaskDependency
buildDependencies
(只读)
返回一个依赖项,其中包含构建此 artifact 的任务。所有 Buildable
实现必须确保返回的依赖项对象是 live 的,以便它跟踪此 buildable 的依赖项的变化。