-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistently, Task could not be loaded from the assembly #7
Comments
I'm running into the same issue except mine does it every time |
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 The changes I made to have it working were to update the 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 <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 |
@david-driscoll Node and Gulp are running fine. |
experiencing the same behaviour:
|
Nice library, though, same issue here unfortunately. Latest build. |
still happens |
This is such a great and useful project! Thank you for making it available to all of us!
I am having a heck of a time consistently recreating this issue, so am posting anyway hoping you might be able to give guidance on how I further can help in getting this resolved as it is preventing me from using the MSBuild steps.
I am getting errors such as the following:
I have confirmed the file exists. I am using the stock
*.targets
added by the NuGet package. The above error is from the build server when I have never had it work; but I have had it both succeed and fail locally without making any changes on my part.The best work around I have locally is to close Visual Studio and it often times works when I re-open it.
Yesterday it was consistently working when I hit 'Build', unless it was after I did a 'Clean' in which case it would give the failure and succeed on the second build. 'Rebuild' would consistently fail. Today I have seen it consistently succeed, then I re-open Visual Studio and it consistently fails; and other such oddities.
I have Visual Studio 2013.3 locally on Windows 8.1. I have Visual Studio 2013 (Update 0, I believe) on Server 2012 for the build machine.
The text was updated successfully, but these errors were encountered: