I have a followup question on this.
Context:
I'm a SQL Server contract developer who is trying to learn C# and .Net while
I am between projects. I have two machines I can configure for training.
Since I don't know who I'm going to contract for next, I want to learn both
..Net 1.1 and 2.0. I currently have Visual Studio 2003 but can get a copy of
2005.
How many of the following statements (if any) are true?
1. Any machine can execute programs built under either .Net 1.1 or 2.0 as
long as the appropriate frameworks are installed.
2. Visual Studio 2003 will only recognize .Net 1.1.
3. With Visual Studio 2005 you can code against either 1.1 or 2.0 but you
will have to use the command line compiler to get the right version.
4. If you have both 1.1 and 2.0 SDKs installed, Visual Studio 2005 will only
show Intellisense prompting for 2.0.
If all of the above are true, I can configure one machine with VS 2003 and
1.1, and the other machine with VS 2005, 1.1 and 2.0. Then everything I
develop will execute on the second machine, and I can still get
version-correct Intellisense prompting by using the different development
environments.
[quoted text, click to view] "Jonathan Boivin" wrote:
> Otherwise, you could use the command line compiler which is coming with each
> version of .NET. Though, you have to make sure that when you code in VS.NET
> 2005 that all your references to System are suppported by the version you
> want to compile to.
>
> The compilers are availaible in the folder :
> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 (which here the version number
> depends on the one you want to compile to)
>
> For VB.NET it is vbc.exe and for C# it's csc.exe.
>
> Have good luck,
[quoted text, click to view] > 1. Any machine can execute programs built under either .Net 1.1 or 2.0 as
> long as the appropriate frameworks are installed.
Any Windows machine.
[quoted text, click to view] >
> 2. Visual Studio 2003 will only recognize .Net 1.1.
Well, sort of. You can build 1.0 applications with VS .NET 2003, but 1.1 is
the standard.
[quoted text, click to view] > 3. With Visual Studio 2005 you can code against either 1.1 or 2.0 but you
> will have to use the command line compiler to get the right version.
I don't think so, I think you can compile for the version you want via a
project setting (just as you can choose 1.0 or 1.1 in VS.NET 2003).
[quoted text, click to view] >
> 4. If you have both 1.1 and 2.0 SDKs installed, Visual Studio 2005 will
> only
> show Intellisense prompting for 2.0.
SDK has nothing to do with it. VS.NET only shows what the 2.0 Framework
has.
[quoted text, click to view] >
> If all of the above are true, I can configure one machine with VS 2003 and
> 1.1, and the other machine with VS 2005, 1.1 and 2.0. Then everything I
> develop will execute on the second machine, and I can still get
> version-correct Intellisense prompting by using the different development
> environments.
You can install everything on one machine without problems. The different
frameworks sit side-by-side as do the different VS.NET versions.
[quoted text, click to view] >
> "Jonathan Boivin" wrote:
>
>> Otherwise, you could use the command line compiler which is coming with
>> each
>> version of .NET. Though, you have to make sure that when you code in
>> VS.NET
>> 2005 that all your references to System are suppported by the version you
>> want to compile to.
>>
>> The compilers are availaible in the folder :
>> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 (which here the version
>> number
>> depends on the one you want to compile to)
>>
>> For VB.NET it is vbc.exe and for C# it's csc.exe.
>>
>> Have good luck,
>> Jonathan Boivin