.Net 4.0 Builds because (NuGet) Reference is fetched as .Net 4.5

Jörg B.'s Avatar

Jörg B.

20 Jul, 2014 02:22 PM

Hello there,

I have an Appveyor project set up at https://ci.appveyor.com/project/jbattermann/geojson-net and it targets/should build my GitHub project at https://github.com/jbattermann/GeoJSON.Net but unfortunately the builds seem to fail because for some reason the Json.net reference gets pulled in in its .Net 4.5 representation, not (as specified in the packages.config / project) net40. The GeoJSON project itself still targets .Net 4.0, though.

Is there any way to make this works (it builds just fine locally).

Cheers & Thanks,

  1. 1 Posted by Jörg B. on 20 Jul, 2014 02:44 PM

    Jörg B.'s Avatar

    Found out the solution myself (after digging around a little): http://help.appveyor.com/discussions/problems/537-nuget-restore-not-working

    'nuget restore <path_to_sln_file>.sln' helped

  2. Jörg B. closed this discussion on 20 Jul, 2014 02:44 PM.

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

Keyboard shortcuts


? 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