Comments (7)
I'm running into the same issue except mine does it every time
from ncapsulate.
I have had it working consistently everywhere now, but I do not know if it is happenstance and ti will start failing sporadically at some point or if I actually made a correction.
The only NCapsulate task I was needing (thus far) was bower
. So my installation was to install it with NuGet which automatically pulled in the node
package as a dependency. This was the configuration I was using when I reported this.
The changes I made to have it working were to update the node
package to 0.10.28 (it had pulled 10.26 at first). Inspecting the .csproj
I noticed that it was listing the bower
task before the node
task. I manually modified it so that node came first.
The solution has not given me any issues since on my machine, the build machine, or other developers (since it was working I pushed it to our repo). YMMV
This is the relevant part of my *.csproj
Not my paths are likely not yours because we use a non-standard path for NuGet packages
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\lib\packages\Ncapsulate.Node.0.10.28\build\Ncapsulate.Node.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\lib\packages\Ncapsulate.Node.0.10.28\build\Ncapsulate.Node.targets'))" />
<Error Condition="!Exists('..\..\lib\packages\Ncapsulate.Bower.1.3.3.2\build\Ncapsulate.Bower.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\lib\packages\Ncapsulate.Bower.1.3.3.2\build\Ncapsulate.Bower.targets'))" />
</Target>
<Import Project="..\..\lib\packages\Ncapsulate.Node.0.10.28\build\Ncapsulate.Node.targets" Condition="Exists('..\..\lib\packages\Ncapsulate.Node.0.10.28\build\Ncapsulate.Node.targets')" />
<Import Project="..\..\lib\packages\Ncapsulate.Bower.1.3.3.2\build\Ncapsulate.Bower.targets" Condition="Exists('..\..\lib\packages\Ncapsulate.Bower.1.3.3.2\build\Ncapsulate.Bower.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
NB. by upgrading the Node package you need to modify bower.cmd to correct the path to point to the new version
from ncapsulate.
@vasco3 Has this issue popped back up, or are things pretty good for you now?
@cwoolum Is this still something you've run into? I'm not MSBuild master unfortunately, so it might be something isn't loading right, or maybe the path (assumption) is wrong. I'm not 100% sure.
from ncapsulate.
@david-driscoll Node and Gulp are running fine.
Do you have any detailed documentation for targets?
from ncapsulate.
experiencing the same behaviour:
Error 2 The "Ncapsulate.Bower.Tasks.BowerInstall" task could not be loaded from the assembly C:\Users\blaa\Repo\blaa\packages\Ncapsulate.Bower.1.3.12.1\build\..\lib\net45\Ncapsulate.Bower.dll. Could not load type 'Ncapsulate.Node.Tasks.NcapsulateTask' from assembly 'Ncapsulate.Node, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
from ncapsulate.
Nice library, though, same issue here unfortunately. Latest build.
from ncapsulate.
still happens
any idea how to solve it?
from ncapsulate.
Related Issues (19)
- Break repository out into separate projects per dependency HOT 1
- Ncapsulate.Grunt has an incorrect path for node command HOT 5
- Gulp package generates errors running install script HOT 7
- Visual Studio ignores grunt.targets HOT 3
- Karma checking for FAILED test run HOT 1
- Karma with Configuration HOT 1
- Typos HOT 4
- Visual Studio doesn't prints Node or Gulp output HOT 4
- Doesn't work with package restore workflow HOT 3
- How to install node_modules in a project's subfolder ? HOT 2
- Please upgrade to a newer version of NPM HOT 3
- Bower errors are not being displayed on output console HOT 1
- System.IO.Compression error HOT 1
- Configuring corporate proxy for npm
- TFS Build not installing or locating gulp. HOT 1
- Upgrade MSBuild package to TypeScript 1.5
- NCapsulate.Node Node.targets NpmJson Path Not Used
- Can't uninstall Ncapsulate.Node after removing Ncapsulate.Gulp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ncapsulate.