Sign in to follow this  
vegi

[.net] .net Framework 3.5

Recommended Posts

Hi, anyone knows if the .net 3.5 framework is automatically broadcasted by the windows update? I ask because i would like to know if a project with .net 3.5 code can be used on every windows xp and vista machine.

Share this post


Link to post
Share on other sites
Quote:
Original post by vegi
Hi,

anyone knows if the .net 3.5 framework is automatically broadcasted by the windows update?

I ask because i would like to know if a project with .net 3.5 code can be used on every windows xp and vista machine.


It cannot, but you can create an installer package that will automatically download .Net 3.5 for you.

Alternatively, you can deploy your application using the Mono framework. I've been told you can simply copy the necessary dlls along with your application for stuff like Linq (System.Core and the like). However, Mono does not support WPF at all - in this case you'll be forced to install the whole .Net package.

Share this post


Link to post
Share on other sites
There is no need to convert the code if you use implemented features. They have a tool that checks your code and tells you where non supoorted featured are (so you have a fast way to define your mono compatibility).
Be warned, though, that while Mono is so good that it was able to handle a Client/Server Remoting application without changing code, it had a few problems with Windows Forms (related to a special layout setup) that we were unable to solve, so we couln't use Mono.

That was a year ago, things might be better now.

Share this post


Link to post
Share on other sites
Quote:
Original post by vegi
Thanks.

Is there a Converter to bring my .net code to mono ?


As signox1 said, there is a high probability that your code will run without modification. Install the latest version of Mono and run the Mono Migration Analyzer tool (MoMA). This will tell you if you are relying on any unimplemented features.

Depending on what 3.5 features you are using, you might be able to run your application on the vanilla .Net 2.0 framework simply by distributing a few Mono dlls with your application (like System.Core). You will have to test this before deploying in a production environment, however.

Share this post


Link to post
Share on other sites
Quote:
Original post by vegi
Seems like mono can´t handle a datagridview : /

-> no alternative for me


Are you sure about that? I knew there were many issues, but IIRC it is implemented, just not working 100%. And (always IIRC) their implementation became better at each release...

Share this post


Link to post
Share on other sites
There are some parts that are still flaky, but DataGridView is mostly working in Mono 2.4.2+. You can test it and see what the results look like (just install mono 2.4 and launch your compiled application from the mono commandline).

Share this post


Link to post
Share on other sites
I already tryed it. I tested the code with Moma and it says everything is alright but the mono exe shows no datagrids in my program.

Maybe because it is inside a tabControl.

Share this post


Link to post
Share on other sites
Because Microsoft dropped the ball on Vista, if you are targetting casual consumers it will be safest to target .Net 2.0 for the next year or two. Which is sad since .NET didnt get good till v3.0.

But its a chicken egg, the more people who target it anyways the better...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this