Click here to Skip to main content
15,898,134 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionRe: Running Managed Code Pin
TJoe29-Oct-07 5:30
TJoe29-Oct-07 5:30 
AnswerRe: Running Managed Code Pin
CodeWolf)29-Oct-07 5:34
CodeWolf)29-Oct-07 5:34 
QuestionRe: Running Managed Code Pin
TJoe29-Oct-07 6:24
TJoe29-Oct-07 6:24 
GeneralRe: Running Managed Code Pin
Mike Dimmick29-Oct-07 12:51
Mike Dimmick29-Oct-07 12:51 
GeneralRe: Running Managed Code Pin
CodeWolf)30-Oct-07 3:46
CodeWolf)30-Oct-07 3:46 
GeneralRe: Running Managed Code Pin
CodeWolf)30-Oct-07 3:56
CodeWolf)30-Oct-07 3:56 
QuestionBuild .NET 1.1 project as .NET 2.0 project without converting Pin
__DanC__29-Oct-07 2:04
__DanC__29-Oct-07 2:04 
AnswerRe: Build .NET 1.1 project as .NET 2.0 project without converting Pin
Mike Dimmick29-Oct-07 3:14
Mike Dimmick29-Oct-07 3:14 
You don't need to 'build as .NET 2.0' as you put it. If you're confident that it's compatible, you can use a .config file as follows:
<configuration>
    <startup>
        <supportedRuntime version="v2.0.50727" />
        <supportedRuntime version="v1.1.4322" />        
    </startup>
</configuration>
The file must be named the same as your program but with a .config extension, so if your program is MyApp.exe, name the config file MyApp.exe.config. If you already have an .exe.config file, add the <startup> section to the existing configuration file.

The documentation here[^] claims that the version that the software was built for will be used if it's installed, but my experiment indicates that this is incorrect: if a configuration file is present and specifies the runtime version to use, the first version specified which is installed is used. So if you want it to run on .NET 1.1 if available, or 2.0 if only that is available, specify v1.1.4322 first. The above file will use 2.0 if available falling back to 1.1 if 2.0 is not installed.

A Visual Studio 2005 .csproj file is an MSBuild input file, a 2003 .csproj file is not. MSBee[^] allows MSBuild to target .NET 1.1; however, you will need to (presumably) import your code into VS2005.

A word on debugging: if your application will load into .NET 1.1 you must use VS2003 to debug; if it will load into .NET 2.0 you must use VS2005. Neither version can debug the other's code. You won't get any warning, it will just stop debugging immediately after it starts.

Those are the rules for EXEs. For DLLs the EXE will control the version of the framework that's loaded, and you have to use that version - only one version of the framework can be loaded into a process. If the EXE is not itself a .NET application and you're producing a class for COM Interop, and the .NET Framework is not already loaded by the process, the latest version of .NET is loaded (not the version marked in the registry for the object). You can again control this with an .exe.config file (yes, even for native code programs that were not written with .NET in mind).


DoEvents: Generating unexpected recursion since 1991

QuestionUsing nero sdk for burning DVD Pin
jack_200928-Oct-07 21:48
jack_200928-Oct-07 21:48 
AnswerRe: Using nero sdk for burning DVD Pin
AliAmjad29-Oct-07 5:08
AliAmjad29-Oct-07 5:08 
QuestionUsing SqlCeEngine class in Windows application Pin
Ferudun Atakan28-Oct-07 8:01
Ferudun Atakan28-Oct-07 8:01 
AnswerRe: Using SqlCeEngine class in Windows application Pin
Scott Dorman28-Oct-07 8:53
professionalScott Dorman28-Oct-07 8:53 
QuestionTAPI and VOIP Pin
fateme_developer26-Oct-07 22:13
fateme_developer26-Oct-07 22:13 
AnswerRe: TAPI and VOIP Pin
TJoe28-Oct-07 12:12
TJoe28-Oct-07 12:12 
QuestionWeb service reference problem Pin
sabby200626-Oct-07 20:15
sabby200626-Oct-07 20:15 
QuestionDetecting piped input and/or output Pin
PIEBALDconsult26-Oct-07 7:47
mvePIEBALDconsult26-Oct-07 7:47 
AnswerRe: Detecting piped input and/or output Pin
Mike Dimmick29-Oct-07 3:48
Mike Dimmick29-Oct-07 3:48 
GeneralRe: Detecting piped input and/or output Pin
PIEBALDconsult29-Oct-07 8:17
mvePIEBALDconsult29-Oct-07 8:17 
Questionhoe to convert a windows application to web activeX Pin
samy10026-Oct-07 4:57
samy10026-Oct-07 4:57 
AnswerRe: hoe to convert a windows application to web activeX Pin
Dave Kreskowiak26-Oct-07 6:37
mveDave Kreskowiak26-Oct-07 6:37 
GeneralRe: hoe to convert a windows application to web activeX Pin
samy10026-Oct-07 7:58
samy10026-Oct-07 7:58 
GeneralRe: hoe to convert a windows application to web activeX Pin
Dave Kreskowiak26-Oct-07 9:55
mveDave Kreskowiak26-Oct-07 9:55 
QuestionKeep Data Persistent [modified] Pin
DotNetWWW26-Oct-07 2:22
DotNetWWW26-Oct-07 2:22 
AnswerRe: Kepp Data Persistent Pin
Pete O'Hanlon26-Oct-07 9:16
mvePete O'Hanlon26-Oct-07 9:16 
GeneralRe: Kepp Data Persistent Pin
DotNetWWW27-Oct-07 7:47
DotNetWWW27-Oct-07 7:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.