RE: VisualStudio cannot debug Add-In if .NET 2.0 runtime installed
From: Peter Huang (v-phuang_at_online.microsoft.com)
Date: 01/20/05
- Next message: David Thielen: "RE: VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- Previous message: David Thielen: "VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- In reply to: David Thielen: "VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- Next in thread: David Thielen: "RE: VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- Reply: David Thielen: "RE: VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 20 Jan 2005 09:38:10 GMT
Hi
Based on my test, the winword.exe will load the clr 2.0 as the runtime by
default, it seems that we need to use the winword.exe.config to set the
startup runtime to 1.1 so that the debugger will work or we can use the
vs.net 2005 ide to do the debugger.
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>
</configuration>
If we specifed the appconfig, the code line below will give us 1.1 or we
will get 2.0 if 2.0 is installed.
public void OnConnection(object application, Extensibility.ext_ConnectMode
connectMode, object addInInst, ref System.Array custom)
{
applicationObject = application;
addInInstance = addInInst;
System.Diagnostics.Debug.WriteLine(System.Environment.Version.ToString());
}
Best regards,
Perter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
- Next message: David Thielen: "RE: VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- Previous message: David Thielen: "VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- In reply to: David Thielen: "VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- Next in thread: David Thielen: "RE: VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- Reply: David Thielen: "RE: VisualStudio cannot debug Add-In if .NET 2.0 runtime installed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|