Re: Compiling VS2005 project for .NET framework 1.0 or 1.1
- From: jetan@xxxxxxxxxxxxxxxxxxxx ("Jeffrey Tan[MSFT]")
- Date: Thu, 22 Jun 2006 03:22:38 GMT
Hi Dave,
Yes, I have tried to use app.config with <supportedRuntime> element to
redirect the assembly compiled with VS2005 to use .Net CLR1.1:
<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>
I got a "Strong name validation failed" BadImageFormatException dialog
while running this VS2005 exe. I also tried to adding <assemblyBinding> and
<bindingRedirect> elements to the app.config file to redirect the
referenced assembly binding version, but the BadImageFormatException dialog
keeps generating.
I have tried to contact our Dev team regarding this issue. Below is their
feedback:
"You cannot run V2.0 Framework apps on V1.1. There were non-forward
compatible changes. This is the intended behavior, v1.1 Framework will run
on v2.0 but not vice versa."
So it seems that CLR2.0 does not support redirecting the runtime to
Net1.0/1.1 with app.config file.
If you have .Net Framework1.1 installed and your C# source code file is
compatible with .Net1.1, you may use csc.exe in .Net Framework1.1 to
compile your project. This should be the simplest workaround.
Hope the information helps!
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Compiling VS2005 project for .NET framework 1.0 or 1.1
- From: Michael Nemtsev
- Re: Compiling VS2005 project for .NET framework 1.0 or 1.1
- References:
- Re: Compiling VS2005 project for .NET framework 1.0 or 1.1
- From: Michael Nemtsev
- Re: Compiling VS2005 project for .NET framework 1.0 or 1.1
- Prev by Date: How do I wait until all threads have completed
- Next by Date: Listing of classes (similar to Java API)
- Previous by thread: Re: Compiling VS2005 project for .NET framework 1.0 or 1.1
- Next by thread: Re: Compiling VS2005 project for .NET framework 1.0 or 1.1
- Index(es):
Relevant Pages
|