>I'd like to use Visual Studio 2005 to compile my assembly (C# class
>library), but I want to to tell VS that I want my compiled assembly to work
>with the original 1.0 framework, and then have it produce an assembly that
>will run in that environment ok, and warn me if at any time I use a class or
>other function that is not available under my target framework. Is this
>possible?
Officially no, but have a look at
http://weblogs.asp.net/rmclaws/archive/2005/06/04/410360.aspx
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Steve Franks - 01 Aug 2005 13:05 GMT
Thank you. I was hoping there was a way to create a 2.0 framework assembly,
but have it automatically still run within earlier versions of the framework
if 2.0 was not available. Seems feasable if one stays away from 2.0
specific functionality when coding, but I guess not.
Steve
>>I'd like to use Visual Studio 2005 to compile my assembly (C# class
>>library), but I want to to tell VS that I want my compiled assembly to
[quoted text clipped - 9 lines]
>
> Mattias
Mattias Sjögren - 01 Aug 2005 15:05 GMT
>Thank you. I was hoping there was a way to create a 2.0 framework assembly,
>but have it automatically still run within earlier versions of the framework
>if 2.0 was not available. Seems feasable if one stays away from 2.0
>specific functionality when coding, but I guess not.
Unfortunately not, all the v2 compilers produce metadata that the
older runtimes don't understand.
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.