Re: Nuget packages for .net 4.0 seem to require 4.5

2016-11-08 Thread Jonathon Rossi
Hi, your error message is completely different to the one reported in this 3 year old thread. The compiler will usually give you that error when the referenced assembly is actually marked as being compiled with a newer framework via the TargetFrameworkAttribute. I'd make sure you've got the

Re: Nuget packages for .net 4.0 seem to require 4.5

2016-11-08 Thread Ilya Petuhov
I've got the same kind of a problem, but with Casle.Core. Yet my solution doesn't compiles at all when calling (re)build solution, but still can be compiled one-by-one project. Here's the VS build output: > 1>C:\Program Files >

Re: Nuget packages for .net 4.0 seem to require 4.5

2013-10-05 Thread Krzysztof Kozmic
Obviously, Jono is right. While I verified that compiling in .net 4 mode emits different code than .net 4.5 mode (thus ruling out any mistake on our part) WIndsor 3.2.1 for .net 4 does indeed do the right thing, therefore rendering my suspicion that something in our build configuration might

Re: Nuget packages for .net 4.0 seem to require 4.5

2013-09-28 Thread Jonathon Rossi
Krzysztof I took your word for it the other day that the .NET 4.0 binaries were compiled wrong, but after decompiling them with dotPeek I can't reproduce what you saw. Both the binaries in castle.windsor.3.2.1.nupkg and both the binaries in a local compile are as I expected. Miles and Krzysztof

Re: Nuget packages for .net 4.0 seem to require 4.5

2013-09-26 Thread Jonathon Rossi
Unfortunately I didn't have much luck getting much more time to look deeper into it on Tuesday. However, I've got it starred to look into it on the weekend. On Thu, Sep 26, 2013 at 2:33 PM, Krzysztof Koźmic krzysztof.koz...@gmail.com wrote: Any luck with that? On 24/09/2013 5:08 PM, Jonathon

Re: Nuget packages for .net 4.0 seem to require 4.5

2013-09-25 Thread Krzysztof Koźmic
Any luck with that? On 24/09/2013 5:08 PM, Jonathon Rossi j...@jonorossi.com wrote: Sorry for the delayed reply, I've been on leave. That is strange. Looking at the build logs for the last master build of the 4.0 and 4.5 build configurations it is picking the right mscorlib when calling csc,

Re: Nuget packages for .net 4.0 seem to require 4.5

2013-09-24 Thread Jonathon Rossi
Sorry for the delayed reply, I've been on leave. That is strange. Looking at the build logs for the last master build of the 4.0 and 4.5 build configurations it is picking the right mscorlib when calling csc, so I'd have expected the 4.0 one to fail compilation, unless that bit isn't actually

Re: Nuget packages for .net 4.0 seem to require 4.5

2013-09-23 Thread Miles Waller
Thanks Krzysztof, I'll downgrade for the moment. Cheers, On Saturday, 21 September 2013 00:05:29 UTC+1, Krzysztof Koźmic wrote: Hey Miles, very interesting. It would appear you're correct. The call to Environment.CurrentManagedThreadId is part of the compiler-generated state machine

Nuget packages for .net 4.0 seem to require 4.5

2013-09-20 Thread Miles Waller
Hi, I upgraded a .net 4.0 project that was working fine to the latest packages I could get from nuget: package id=Castle.Core version=3.2.0 targetFramework=net40 / package id=Castle.Windsor version=3.2.1 targetFramework=net40 / The project builds and runs fine from the command line. I

Re: Nuget packages for .net 4.0 seem to require 4.5

2013-09-20 Thread Krzysztof Kozmic
Hey Miles, very interesting. It would appear you're correct. The call to Environment.CurrentManagedThreadId is part of the compiler-generated state machine (notice yield return in the method). If you install Windsor 3.2 (instead of 3.2.1 that you're currently using) it works fine, so that may