.NET 4.5

698 views
Skip to first unread message

Krzysztof Koźmic

unread,
Jun 15, 2012, 12:24:43 AM6/15/12
to Castle Project Devel
Hi guys.

it might be time to start doing .NET 4.5 builds.

Can someone set up a .NET 4.5 build agent please?

@K

hammett

unread,
Jun 15, 2012, 12:49:59 AM6/15/12
to castle-pro...@googlegroups.com
Is it rtm yet?
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Development List" group.
> To post to this group, send email to castle-pro...@googlegroups.com.
> To unsubscribe from this group, send email to
> castle-project-d...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/castle-project-devel?hl=en.
>



--
Cheers,
hammett
http://hammett.castleproject.org/

Krzysztof Koźmic

unread,
Jun 15, 2012, 12:50:37 AM6/15/12
to castle-pro...@googlegroups.com
I don't think it did but we should start looking into supporting it
ahead of time

hammett

unread,
Jun 15, 2012, 12:54:03 AM6/15/12
to castle-pro...@googlegroups.com
Sure. I'd be reluctant to install it on our server, though.. If
someone wants to create a TC agent for it, be my guest :-)

On Thu, Jun 14, 2012 at 9:50 PM, Krzysztof Koźmic

Krzysztof Koźmic

unread,
Jun 15, 2012, 12:55:05 AM6/15/12
to castle-pro...@googlegroups.com
absolutely, I woudn't put it on a server. Do we have a separate spare
machine we can use as build agent?

Can anyone contribute one?

@K

Shawn Hinsey

unread,
Jun 15, 2012, 12:56:18 AM6/15/12
to castle-pro...@googlegroups.com
You can get Server 2012 RC VMs on Azure's new VM service. No idea if it helps but that might be a good way to get ahold of a runtime for the agent.

On Fri, Jun 15, 2012 at 12:50 AM, Krzysztof Koźmic <krzyszto...@gmail.com> wrote:
I don't think it did but we should start looking into supporting it ahead of time


On 15/06/2012 2:49 PM, hammett wrote:
Is it rtm yet?

On Thu, Jun 14, 2012 at 9:24 PM, Krzysztof Koźmic
<krzyszto...@gmail.com>  wrote:
Hi guys.

it might be time to start doing .NET 4.5 builds.

Can someone set up a .NET 4.5 build agent please?

@K

--
You received this message because you are subscribed to the Google Groups
"Castle Project Development List" group.
To post to this group, send email to castle-project-devel@googlegroups.com.

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/castle-project-devel?hl=en.

--
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To post to this group, send email to castle-project-devel@googlegroups.com.
To unsubscribe from this group, send email to castle-project-devel+unsub...@googlegroups.com.

Krzysztof Koźmic

unread,
Jun 15, 2012, 1:08:15 AM6/15/12
to castle-pro...@googlegroups.com
Happy to do it if TC can talk to it, and someone steps forward to cover the costs

@K


On 15/06/2012 2:56 PM, Shawn Hinsey wrote:
You can get Server 2012 RC VMs on Azure's new VM service. No idea if it helps but that might be a good way to get ahold of a runtime for the agent.

On Fri, Jun 15, 2012 at 12:50 AM, Krzysztof Koźmic <krzyszto...@gmail.com> wrote:
I don't think it did but we should start looking into supporting it ahead of time


On 15/06/2012 2:49 PM, hammett wrote:
Is it rtm yet?

On Thu, Jun 14, 2012 at 9:24 PM, Krzysztof Koźmic
<krzyszto...@gmail.com>  wrote:
Hi guys.

it might be time to start doing .NET 4.5 builds.

Can someone set up a .NET 4.5 build agent please?

@K

--
You received this message because you are subscribed to the Google Groups
"Castle Project Development List" group.
To post to this group, send email to castle-pro...@googlegroups.com.

To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/castle-project-devel?hl=en.


--
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-d...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en.


--
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-d...@googlegroups.com.

Krzysztof Koźmic

unread,
Jul 11, 2012, 5:12:24 PM7/11/12
to castle-pro...@googlegroups.com
Just bumping the thread. Is anyone interested/capable of providing a .NET 4.5 build agent?
We're going to release Windsor 3.1 with no official .NET 4.5 build but I think we should follow with 3.1.1 or 3.2 soon after.

@K

G. Richard Bellamy

unread,
Jul 25, 2012, 7:32:31 PM7/25/12
to castle-pro...@googlegroups.com
I'll set this up... I've got a dedicated EC2 instance I can put this on. Does 4.5 require VS.NET 2012? I haven't looked into the dependencies at all...

-rb

--
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.

Krzysztof Koźmic

unread,
Jul 25, 2012, 7:40:23 PM7/25/12
to castle-pro...@googlegroups.com

Developing for 4.5 requires vs2012

Rory Plaire

unread,
Jul 25, 2012, 7:42:36 PM7/25/12
to castle-pro...@googlegroups.com
A .Net 4.5 build should not require VS 2012, just the .Net 4.5 SDK.

G. Richard Bellamy

unread,
Jul 25, 2012, 7:50:47 PM7/25/12
to castle-pro...@googlegroups.com
Okay. So my guess is that you're both right.

I'll look into it more and have an update here tomorrow.

-rb

Rory Plaire

unread,
Jul 25, 2012, 8:05:45 PM7/25/12
to castle-pro...@googlegroups.com
Technically, .Net 4.5 development doesn't require VS 2012, since all the needed tools to do it are in the SDK (and thus this is all a build server needs). I think Krzysztof's point is you can't use VS 2010 to do it.
 
-r

James Curran

unread,
Jul 27, 2012, 12:11:50 PM7/27/12
to castle-pro...@googlegroups.com
The most recent is the Windows SDK for Windows 8 Release Preview (http://msdn.microsoft.com/en-US/windows/desktop/hh852363

Note that Win8 SDK is "Preview" while the included .NET v4.5 SDK is "RC"

Also note (from that page):

"The Windows SDK no longer ships with a complete command-line build environment. You must install a compiler and build environment separately. If you require a complete development environment that includes compilers and a build environment, you can download Visual Studio 2012 RC, which includes the necessary components of the Windows SDK."

Truth,
    James

G. Richard Bellamy

unread,
Jul 27, 2012, 2:28:45 PM7/27/12
to castle-pro...@googlegroups.com

I’ve downloaded the RC of VS 2012, but am having some issues installing it.

 

I’ll keep you guys posted.

 

-rb

Rory Plaire

unread,
Jul 27, 2012, 3:23:21 PM7/27/12
to castle-pro...@googlegroups.com
I believe the .Net 4.5 SDK still ships with msbuild.exe and csc.exe, even if the C++ and other windows build tools are missing, as James indicates. I'm downloading just the SDK now to find out.
 
In general, I've found it's best to not have VS on a build machine.
 
-r

G. Richard Bellamy

unread,
Jul 28, 2012, 3:13:23 PM7/28/12
to castle-pro...@googlegroups.com

Hence my question… the idea that an IDE is _required_ strikes me as basically crazy.

 

Did you ever figure it out? I’ve started over with a fresh instance…

 

-rb

G. Richard Bellamy

unread,
Jul 28, 2012, 8:29:58 PM7/28/12
to castle-pro...@googlegroups.com

From Installing the .NET Framework 4.5 RC: “The .NET Framework 4.5 RC replaces the .NET Framework 4. When you install the .NET Framework 4.5 RC on a system that has the .NET Framework 4 installed, the assemblies are replaced.”

 

Also, there is no new entry in HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP (which is gonna play havoc with automated version detection scripts that RELY on these entries being consistent).

 

Therefore, you would think the file in \Framework64\v4.0.30319\msbuild.exe would report itself as 4.5. It does not:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>MSBuild /version

Microsoft (R) Build Engine version 4.0.30319.17626

[Microsoft .NET Framework, version 4.0.30319.17626]

Copyright (C) Microsoft Corporation. All rights reserved.

 

The versions of the file did change as a result of the upgrade – going from 4.0.30319.1 to 4.0.30319.17626.

 

When reading MSBuild Tool Set (ToolsVersion), it appears that the changes are mostly about tool sets and targets.

 

However, then in Configuring Targets and Tasks it says “To build a .NET Framework 4.5 application, you must also have the .NET Framework 4.5 reference assemblies. These are included in Visual Studio 2012 RC.”

 

Also, per this, the TeamCity agent for will not support .NET 4.5 except at the EAP of 7.1.

 

Currently we’re at 6.5, and 7.0.4 is the stable release.

 

I’ve spent some considerable time with this, and I’ve moved forward, but still don’t have a viable build agent for 4.5 on TeamCity. Also, I did try to get msbuild to work in the “4.5” manner without installing VS 2012 RC, and it barked at me stating that it didn’t understand the ToolsVersion:

 

D:\Development\Castle.Core\Core>C:\Windows\microsoft.net\framework\v4.0.30319\msbuild.exe /m "D:\Development\Castle.Core\Core\buildscripts\Build.proj"

/p:Platform="Any CPU" /p:BuildConfigKey=NET45 /p:TargetFrameworkVersion=v4.5 /ToolsVersion:4.5  /property:Configuration=NET45-Release /t:RunAllTests

 

Microsoft (R) Build Engine version 4.0.30319.17626

[Microsoft .NET Framework, version 4.0.30319.17626]

Copyright (C) Microsoft Corporation. All rights reserved.

 

MSBUILD : error MSB1040: ToolsVersion is not valid. The tools version "4.5" is unrecognized. Available tools versions are "2.0", "3.5", "4.0".

Switch: 4.5

 

Bottom line: The .NET 4.5 build platform is awaiting a VS 2012 RC installation to see if msbuild will then understand the /tv:4.5 switch. After that it’ll be a matter of making the TeamCity BuildAgent understand how to execute the build… I’m thinking I may just be able to re-use the 4.0 Build Runner, since the executable is located in the same place between 4.0 and 4.5.

 

-rb

hammett

unread,
Jul 28, 2012, 8:58:07 PM7/28/12
to castle-pro...@googlegroups.com
There are standalone and in-places releases. 4.5 is a in-place
release, so it installs over the existing 4.0.

It should be 100% backward compatible, though..

On Sat, Jul 28, 2012 at 5:29 PM, G. Richard Bellamy
Cheers,
hammett
http://hammett.castleproject.org/

G. Richard Bellamy

unread,
Jul 28, 2012, 9:59:33 PM7/28/12
to castle-pro...@googlegroups.com

Okay, some of the documentation is just plain wrong.

 

http://msdn.microsoft.com/en-us/library/bb397428(v=vs.110).aspx

 

There is no Framework\v4.5.00000, and therefore, there is no ToolsVersion=4.5, instead it appears that everything is looking for a VisualStudioVersion=11.0

 

http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/0f6aef3d-9778-47fe-a70d-4c9c6bd106e3/

Cristian Prieto

unread,
Jul 29, 2012, 9:41:14 PM7/29/12
to castle-pro...@googlegroups.com
Richard,

Basically you need the 'new' framework if you are using the new libs included with it or developing libs that support the damn Metro profile. In "practice" there is no such thing as Framework 4.5, the current 4.5 version is 4.0.30319.17626 (yes, from the point of view of just versioning the new framework is just a 'minor revision' of the previous one).

When you install 4.5 the tools (like msbuild) will be in the same directory than 4.0 but msbuild (for example) would be using the new version... check msbuild after installing the 4.5 and you will see that msbuild engine version is 4.0.30319.17626 (so, it's running 4.5)

You can make your app run in 4.0 even when you have 4.5 installed, it will be matter of specify that explicitly in the app.config file.

I know, that sucks.

Hope this help,

Cristian Prieto

G. Richard Bellamy

unread,
Jul 30, 2012, 11:22:00 AM7/30/12
to castle-pro...@googlegroups.com
Cristian,

Most of my posts have been me (maybe over-)sharing my discovery process getting the TeamCity BuildAgent going... Things are much more clear <sic> now.

My comments about the registry keys (HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP) is that this is usually where one looks, if you're not doing a WMI query, to find out which version of the framework a machine has installed. And since presumably you can't run a 4.5 app on a 4.0-only machine, this _will_ matter.

-rb

G. Richard Bellamy

unread,
Jul 30, 2012, 11:33:56 AM7/30/12
to castle-pro...@googlegroups.com
I realized I was a bit misleading here... you _can_ still determine which version of the Framework is installed via the registry. It's the same kind of story as the file system/versions - you now must look inside the framework, and then profile subkeys.

HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\(Client|Full)
.NET 4.0
TargetVersion : 4.0.0
Version : 4.0.30319
.NET 4.5
TargetVersion : 4.0.0
Version : 4.5.50501

-rb

James Curran

unread,
Jul 30, 2012, 1:35:59 PM7/30/12
to castle-pro...@googlegroups.com
I've been monitoring this thread since I run one of the build servers.   Considering the work needed, I figured I wait for the GA release of v4.5.

Is there any particular need for my server being running on 4.5 sooner?


Truth,
    James


G. Richard Bellamy

unread,
Jul 30, 2012, 3:26:50 PM7/30/12
to castle-pro...@googlegroups.com

No… I’ve got Core compiling on 4.5.

 

NUnit doesn’t currently have a 4.5 runner and barks at me when trying to run tests…. That’s my next task.

 

-rb

 

From: castle-pro...@googlegroups.com [mailto:castle-pro...@googlegroups.com] On Behalf Of James Curran
Sent: Monday, July 30, 2012 10:36 AM
To: castle-pro...@googlegroups.com
Subject: Re: .NET 4.5

 

I've been monitoring this thread since I run one of the build servers.   Considering the work needed, I figured I wait for the GA release of v4.5.

Cristian Prieto

unread,
Jul 30, 2012, 9:18:13 PM7/30/12
to castle-pro...@googlegroups.com
Richard, I have Core and Windsor compiling in 4.5 with test running, let me place the stuff in Github...

(Doing the same for the netfx_core has been a nightmare, still in the middle of making that stuff works)...


Cristian Prieto

G. Richard Bellamy

unread,
Jul 30, 2012, 11:28:58 PM7/30/12
to castle-pro...@googlegroups.com

That would be brilliant… when you have things up let me know and I’ll take a look…

 

Is this something clean enough to send a pull request?

 

-rb

Cristian Prieto

unread,
Jul 30, 2012, 11:58:23 PM7/30/12
to castle-pro...@googlegroups.com
Let me push to my github stuff tonight and you will see if that's clear enough...

;)

Cristian Prieto

Krzysztof Kozmic

unread,
Jul 31, 2012, 12:00:26 AM7/31/12
to castle-pro...@googlegroups.com
I'm happy to help you guys review these changes.

To be clear, this is not going into v3.1. We'll have a v3.2 release to bring support for .NET 4.5 in few months.

@L

-- 
Krzysztof Kozmic

Cristian Prieto

unread,
Jul 31, 2012, 12:10:10 AM7/31/12
to castle-pro...@googlegroups.com
No problem with me, anyway the Metro profile support would take more time than expected... I've been working in that but need some help from a smart guy like xtoff.. ;)

No pressure!


Cristian Prieto

Krzysztof Kozmic

unread,
Jul 31, 2012, 12:18:15 AM7/31/12
to castle-pro...@googlegroups.com
no worries ;)

happy to help on that, perhaps over weekend via Skype or if you want to hop on a plane that could also be fun :)

@K

-- 
Krzysztof Kozmic

Cristian Prieto

unread,
Jul 31, 2012, 2:50:11 AM7/31/12
to castle-pro...@googlegroups.com
Actually I like the plane idea ;)

Cristian Prieto

G. Richard Bellamy

unread,
Jul 31, 2012, 10:29:31 AM7/31/12
to castle-pro...@googlegroups.com

Um, skype for me… J

G. Richard Bellamy

unread,
Aug 1, 2012, 12:48:03 PM8/1/12
to castle-pro...@googlegroups.com

Cristian,

 

What did you do to get NUnit to run with 4.5? Build it yourself?

rbellamy

unread,
Aug 20, 2012, 1:49:37 AM8/20/12
to castle-pro...@googlegroups.com
In typical fashion, I over-thunked this one.

It's really rather simple to get things going in 4.5 from 4.0. I had a chance to revisit this, and now everything is building and all tests are passing. Now I just need to make things work with the TeamCity Agent.

-rb

Krzysztof Kozmic

unread,
Aug 20, 2012, 2:03:35 AM8/20/12
to castle-pro...@googlegroups.com
awesome :)


-- 
Krzysztof Kozmic

--
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.

Krzysztof Kozmic

unread,
Aug 20, 2012, 10:12:19 AM8/20/12
to castle-pro...@googlegroups.com
I integrated Christian's changes (with some amendments) and pushed to Github

-- 
Krzysztof Kozmic

Reply all
Reply to author
Forward
0 new messages