Appveyor NUnit for google.apis

peleyal's Avatar

peleyal

22 Oct, 2015 02:44 AM

I'm trying to enable appveyor nunit tests for my projects using the following pull request
https://github.com/google/google-api-dotnet-client/pull/618

I thought that the reason it won't work is because I'm using SL version, so I even tried to change the PCL profile version to not include SL and tried even other stuff as well. Everything is in the pull request.
More details about SL configuration are available here: https://github.com/google/google-api-dotnet-client/issues/555

I've no idea, why tests work locally, you can try it yourself, BUT when using appveyor they fail...
What am I doing wrong?

Error file:
Look at line 122 in the following build: https://ci.appveyor.com/project/jtattermusch/google-api-dotnet-client/build/1.0.16

Let me know what other details I should add here...

Thanks!
Eyal

  1. Support Staff 1 Posted by Feodor Fitsner on 23 Oct, 2015 06:14 AM

    Feodor Fitsner's Avatar

    If you search the build log by Primitives you'll notice that System.Net.Http.Primitives.dll is never restored.

    Try adding nuget restore command before the build. That should do the trick.

  2. 2 Posted by peleyal on 23 Oct, 2015 01:29 PM

    peleyal's Avatar

    There isn't a NuGet package for System.Net.Http.Primitives, it's part of Microsoft.Net.Http package (take a look at: https://github.com/google/google-api-dotnet-client/blob/master/Src/GoogleApis/GoogleApis.csproj#L133).

    Am I missing something?
    Thanks for the quick response, looking forward to fix it :)

    Eyal

  3. Support Staff 3 Posted by Feodor Fitsner on 23 Oct, 2015 06:56 PM

    Feodor Fitsner's Avatar

    OK, I see.

    Try adding few dir commands to see what nuget packages/assemblies are being restored?

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac