Build targetting .NET 3.5

0 views
Skip to first unread message

Andre Loker

unread,
May 9, 2008, 1:50:55 AM5/9/08
to Castle Developer Group
Hi group,

I could not find much information on this, so I hope it's not a duplicate.

When building the Castle trunk, how do I force the build to target the
3.5 framework? I know that Castle targets the 2.0 framework, but e.g.
Newtonsoft.Json.dll is available as a 3.5 version (v2.0) in the trunk,
so I assume there must be a way to let Monorail reference it instead of
v1.3.2. It seems that the build file pick the framework version based
on the current CLR version. This won't work to target 3.5, as there is
no 3.5 CLR AFAIK.

Any switch or so that I have to change?

It is not that I actually need it, it's more out of curiosity.

Regards,
Andre

Ayende Rahien

unread,
May 9, 2008, 1:56:33 AM5/9/08
to castle-pro...@googlegroups.com
nant -t:net-3.5

Andre Loker

unread,
May 9, 2008, 2:10:40 AM5/9/08
to castle-pro...@googlegroups.com
Oh, nevermind, my bad. I had an old version of nant in my PATH. So I got confused because when I tried -t:net-3.5 earlier, it gave me an error stating "Invalid framework 'net-3.5' specified."

Shame on me. The funny thing is that I do use nant for my own automatic builds, so I should have known that.

Thanks anyway!

Ayende Rahien schrieb:
Reply all
Reply to author
Forward
0 new messages