Giter Site home page Giter Site logo

Comments (7)

cwoolum avatar cwoolum commented on June 27, 2024

I'm running into the same issue except mine does it every time

from ncapsulate.

adamvoss avatar adamvoss commented on June 27, 2024

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.

david-driscoll avatar david-driscoll commented on June 27, 2024

@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.

vasco3 avatar vasco3 commented on June 27, 2024

@david-driscoll Node and Gulp are running fine.
Do you have any detailed documentation for targets?

from ncapsulate.

peterrus avatar peterrus commented on June 27, 2024

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.

chr4ss1 avatar chr4ss1 commented on June 27, 2024

Nice library, though, same issue here unfortunately. Latest build.

from ncapsulate.

buzzdan avatar buzzdan commented on June 27, 2024

still happens
any idea how to solve it?

from ncapsulate.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.