title: How to build Visual Studio project under Gradle?
body: <p>I'm only couple days in Gradle, so please don't be mad if I don't understand something.</p>
  
  <p>I have C++ project that I can build from VS 2015 or command line like this:</p>
  
  <pre><code>C:\Program Files (x86)\Microsoft Visual Studio 14.0&gt;devenv q:\VCPROJ\SystemAl.sln
  </code></pre>
  
  <p>or</p>
  
  <pre><code>C:\Program Files (x86)\Microsoft Visual Studio 14.0&gt;MSBuild q:\VCPROJ\SystemAl.sln
  </code></pre>
  
  <p>But I need to build this project project under Gradle.
  So, I've googled this - <a href="https://docs.gradle.org/current/dsl/org.gradle.ide.visualstudio.VisualStudioProject.html" rel="nofollow">https://docs.gradle.org/current/dsl/org.gradle.ide.visualstudio.VisualStudioProject.html</a><br>
  And I wrote build.gradle like this:</p>
  
  <pre><code>apply plugin: "visual-studio"
  model {
  visualStudio {
      projects.all {
          projectFile.location = projectFile.location =     "q:/VCPROJ/SystemAl.vcxproj"
          projectFile.withXml {
              asNode().appendNode('PropertyGroup', [Label: 'Custom'])
                      .appendNode('ProjectDetails', "Project is named SystemAl")
          }
      }
  }
  }
  </code></pre>
  
  <p>And I build it with command:</p>
  
  <pre><code>gradle build
  </code></pre>
  
  <p>But nothing happening, Gradle project is built success, but VS  projects isn't built.
  What I'm doing wrong? How can I build VS project under Gradle?</p>