Blacklite / Ncapsulate

NuGet and MSBuild wrappers around various Node based tools.
MIT License
29 stars 9 forks source link

Visual Studio ignores grunt.targets #4

Open munkyjunky opened 10 years ago

munkyjunky commented 10 years ago

After installing Ncapsulate.Grunt, nothing in App_Build/grunt.targets seems to work.

From the command line, running grunt clean successfully runs the clean task through grunt.cmd, however the following target does not run the clean task after running clean through Visual Studio.

<Target Name="Grunt-AfterClean" AfterTargets="AfterClean">
    <Grunt Tasks="clean" />
</Target>

This is one example - none of my targets appear to work.

javierfigueroa commented 10 years ago

This is working for me. Did you try installing the package in a clean project and running a simple grunt build?

vasco3 commented 10 years ago

I have the same issue with gulp. I just want to run the default from the gulpfile.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Target Name="Gulp-AfterBuild" AfterTargets="Npm">
    <Gulp />
  </Target>
</Project>
vasco3 commented 10 years ago

Ok it seemed that Visual Studio was locking the output folder. I restarted my Computer and now it works fine.