Posted May 19, 2012

adambiser
fascimania.com
Registered: Dec 2009
From United States

PhilD
uh-huh, sure.
Registered: Mar 2011
From United States
Posted May 19, 2012
Cool. I want to thank everyone for the help.
Does anyone know how much hard disk space I can
expect this to eat up?
Does anyone know how much hard disk space I can
expect this to eat up?

Elenarie
@tweetelenarie
Registered: Sep 2008
From Sweden

wpegg
Optimus Pegg
Registered: Nov 2009
From United Kingdom
Posted May 20, 2012

As for the different runtimes. With the exception of some very specific and unusual edge cases, if you have compiled an application for 2.0, you can be sure it will run on 3.0 and 3.5. The reason being that 3.0 and 3.5 didn't actually change the underlying runtime, they just provided enhancements to the IDE to allow simpler ways of achieving certain results (take a look at how .NET 3 implements a closure by inspecting the compiled code, it generates a lot of .NET 2 code on your behalf). The other thing 3 and 3.5 provided were additional libraries and tools to use. However the final dlls that were compiled looked as though they were .NET 2.
At some point you need new underlying features in your runtime. .NET 2 runtime was getting on in age, and so they released .NET 4 with a new underlying runtime. Once again I don't know of any specific breaking changes by upgrading, the problem is that it can get complicated unless all of your dependencies have also upgraded. I think code will port across to .NET 4 very easily, however because the runtime is interpretting the compiled code differently, it does require re-compilation to actually use the new framework.
At work at the moment, we have some .NET 4 projects calling into .NET 3.5 libraries, and apart from a customer requirement to be able to run without .NET 4, the only thing required for a total upgrade of most of the projects is changing the value of a drop down list in visual studio.
So as you might have guessed, I totally disagree with your statement. .NET 4 migration is relatively painless, and is a necessary evil in order for the language to advance. When Java finally introduce a new language level feature (Java 8 in 2013), it will probably require similar compromises. Right now Java is only appearing easy to use because Oracle have smothered the runtime and stalled releasing new language features.
Hard to tell for sure, as I have developer features installed, but it looks like 200 - 300MB.
Post edited May 20, 2012 by wpegg

Wishbone
Red herring
Registered: Oct 2008
From Denmark
Posted May 20, 2012

Version 1.1 is version 1.1
Version 2.0 through 3.5 is version 2.0
Version 4.0 is version 4.0
Thus, if you have something that requires .NET 2.0, you need to install version 3.5. Blame Microsoft.

wpegg
Optimus Pegg
Registered: Nov 2009
From United Kingdom
Posted May 20, 2012
No, if you have something that requires .NET 2.0, you can install anything between .NET 2.0 and .NET 3.5, and it will work. It's true you cannot install .NET 4 to get it working, but windows update should install these both independently.
Post edited May 20, 2012 by wpegg

orcishgamer
Mad and Green
Registered: Jun 2010
From United States
Posted May 20, 2012

You're mistaking the difference between needing an upgraded runtime to support newer byte code and the lack of backwards compatibility. It's the latter case where MS has fallen down. No one thinks there's some sort of magic voodoo to get new features to work on an old runtime.
And finally, you seem to be looking at this from a developer's perspective, in which case I have one term for you: Maven. There is absolutely no superior way to manage projects and unfortunately the efforts to port this to .NET have gone poorly so far (I don't know why, I'd actually think the entire .NET world would be demanding this by now).
So yes, MS' .NET runtimes are more fragmented, you can take the newest JRE and still run code compiled a very long time ago, if you somehow must.
Post edited May 20, 2012 by orcishgamer

adambiser
fascimania.com
Registered: Dec 2009
From United States
Posted May 20, 2012

But yes, I agree that .NET 4.0 should be automatically handling all previous versions of the framework.
Post edited May 20, 2012 by adambiser

orcishgamer
Mad and Green
Registered: Jun 2010
From United States
Posted May 20, 2012


But yes, I agree that .NET 4.0 should be automatically handling all previous versions of the framework.
The point being that there is almost no backwards compat for even the simplest programs in the .NET runtime. Possibly there is a very good reason for this (though I'm not aware of it if there is), however the end result doesn't end up sucking any less. You can employ a library produced in 2005 or so in your Java app on a new JRE, you cannot do that with .NET, and I'm not sure you shouldn't be able to.
Post edited May 20, 2012 by orcishgamer

adambiser
fascimania.com
Registered: Dec 2009
From United States
Posted May 20, 2012


wpegg
Optimus Pegg
Registered: Nov 2009
From United Kingdom
Posted May 20, 2012

EDIT: It's all about the entry point. If the app that starts is .NET 4, then all the other stuff is fine. It's only if your app is compiled to target .NET 3.5 that you need it installed separately.
Post edited May 20, 2012 by wpegg

orcishgamer
Mad and Green
Registered: Jun 2010
From United States
Posted May 20, 2012


EDIT: It's all about the entry point. If the app that starts is .NET 4, then all the other stuff is fine. It's only if your app is compiled to target .NET 3.5 that you need it installed separately.

wpegg
Optimus Pegg
Registered: Nov 2009
From United Kingdom
Posted May 20, 2012

EDIT: It's all about the entry point. If the app that starts is .NET 4, then all the other stuff is fine. It's only if your app is compiled to target .NET 3.5 that you need it installed separately.

So the restriction comes because of what's hosting the libraries, rather than the libraries themselves.
EDIT: To use a more concrete example. The GOG downloader is compiled to target .NET 3.5. They would only need to change a setting in the project, and it would use .NET 4 instead. At this point you wouldn't need 3.5 installed. However you would instead need 4 installed. There can be some compatibility issues, though they are few.
Post edited May 20, 2012 by wpegg

Wishbone
Red herring
Registered: Oct 2008
From Denmark
Posted May 20, 2012



Also, it has been my experience that Visual Studio is quite moronic about changing the target of an existing project. You will still need to manually change the targets of all references included in the project, as they will still be pointing to the 3.5 versions of the DLLs. At least, that's what I experienced last week when I tried to do exactly that.
Post edited May 20, 2012 by Wishbone

orcishgamer
Mad and Green
Registered: Jun 2010
From United States