Skip to content
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

CustomErrorRegularExpression in MSBuild.Bower.targets fails build (CI) #42

Open
jocutajar opened this issue May 20, 2016 · 0 comments
Open

Comments

@jocutajar
Copy link

Hi,

On a clean checkout when bower components are installed afresh, there's some glitch that makes it fail on first run when bower reports inconsistent version. I have tried adding -F param to bower install - no help. Removing the CustomErrorRegularExpression attributes from MSBuild.Bower.targets makes it behave, but then I cannot modify the target of a package easily.

  Please note that,
      angular-ui-grid#3.1.1 depends on angular#>=1.2.16 1.4.x which resolved to angular#1.4.10
      angular-animate#1.5.5, angular-resource#1.5.5, angular-route#1.5.5 depends on angular#1.5.5 which resolved to angular#1.5.5
C:\mysolution\packages\MSBuild.Bower.0.5.1\build\MSBuild.Bower.targets(66,9): error :     ASP.NET depends on angular#^1.5.0 which resolved to angular#1.5.5 [C:\mysolution\myproj\myproj.csproj]
      angular-ui-bootstrap-bower#1.3.2 depends on angular#>=1.4.0 which resolved to angular#1.5.5
      ngclipboard#1.1.1 depends on angular#>=1.2.0 which resolved to angular#1.5.5
      angular-encode-uri#1.0.0 depends on angular#* which resolved to angular#1.5.5
  Resort to using angular#~1.5.5 which resolved to angular#1.5.5
  Code incompatibilities may occur.

Otherwise it proceeds and then:

C:\mysolution\packages\MSBuild.Bower.0.5.1\build\MSBuild.Bower.targets(66,9): error MSB3073: The command "SETLOCAL & SET PATH=C:\mysolution\myproj\.bin\;%PATH% & [C:\mysolution\myproj\myproj.csproj]
C:\mysolution\packages\MSBuild.Bower.0.5.1\build\MSBuild.Bower.targets(66,9): error MSB3073:                        SETLOCAL & SET PATH=C:\mysolution\myproj\.bin\;%PATH% & "C:\mysolution\myproj\.bin\bower.cmd" install -F" exited with code -1. [C:\mysolution\myproj\myproj.csproj]

Just running msbuild again after this works without any modification (considering the bower packages have already been resolved).

Thanks for the works, Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant