colonel-yum-yum wrote:
Hello all,
I have written a windows service in vb.net using VS 2005. Only after completion, was I given the specification that there is a chance that it will have to work on .net framework 1.1

Is there a way of finding out which parts of my code need 2.0? I have a feeling that I won't be able to downgrade it but thought I may as well ask here before ruling it out. Any information you could provide would be greatly appreciated.
Visual Basic.NET? Ouch. The changes made to VB.NET in 2.0 were more extensive than C#s, also VB.NET doesn't have the luxury of being made a formal standard as C# has, so you're more at the mercy of MS when stuff changes. (Which is one of the reasons I recommend C# for real-world software).
Well, straight off the bat you're going to run into problems with Generics, but writing wrappers isn't hard. Tip: Define simple wrappers for existing generics (like "Public Class ItemList Inherits List(Of Item) End Class"), that way if you do have to go down to 1.1 you can just add the definitions rather than alter every appearance of the generic type in your code.
Then you have to consider the differences in behaviour for Resources and Configurations, how "Settings" and My. didn't exist, and a much uglier UI.
...but if the project isn't too complicated, it shouldn't take you more than a couple of days. But as I said, alias your use of Generics just in case, it also makes your code prettier to boot.
evildictaitor wrote:
People who can run .NET 2.0 can also run .NET 1.1, and therefore it's a least common denominator (and has more market share)
Not true - .NET 2.0 can be installed without .NET 1.1, and .NET 1.1 is incompatable with .NET 2.0 at the JIT level.
It's the other way around. But in any case, MSIL assemblies are 100% forward-compatible. An assembly created in 2001 targeting .NET1.0
will work under .NET2.0
...and simple .NET2.0 assemblies will work under 1.1
evildictaitor wrote:
.NET 2.0 is a new and fangled technology
It's been around since 22nd Jan, 2006.
It's been around before then. The launch event was back in November 2005 (I was there, wheee) and the Whidby betas and CTPs were around since late 2004.