Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Framework version question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Murray jack - 18 Jul 2006 11:58 GMT
Apollogies if this is in the wrong group

I am looking for a way to compile an assembly in VS2005 under framework 2
and then force it to run under framework 1.1 - is this possible?

I have created a simple console application which returns me the framework
version using the following code
Console.WriteLine("Framework Version: " & Environment.Version.ToString)

when i run this normally i get 2.0.502727 which is all cool and dandy, now
if i edit the config file for this exe and add the following lines

 <startup>
   <supportedRuntime version="v1.1.4322"/>
 </startup>

and run the app, i was hoping it would run under this version, but i get a
system.BadImageFormatException: the format of the file ... is invalid

Thanks for any help you can give me

Murray
Kevin Spencer - 18 Jul 2006 16:12 GMT
> I am looking for a way to compile an assembly in VS2005 under framework 2
> and then force it to run under framework 1.1 - is this possible?

No, it's not possible. Framework 2 is a newer version. In order for an
assembly compiled with Framework 1 to support it, Microsoft would have had
to know the programming model of Framework 2 years before it was even built.
Now, Bill Gates is a visionary, but I don't think he's clairvoyant!

Signature

HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.

> Apollogies if this is in the wrong group
>
[quoted text clipped - 18 lines]
>
> Murray

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.