简体   繁体   English

调试时,托管旧版(v3.5,v3.0,v2.0)和托管旧版(v4.5,v4.0)的默认设置在哪里?

[英]Where is the default setting for Managed Legacy (v3.5, v3.0, v2.0) vs Managed Legacy (v4.5, v4.0) when debugging?

When attaching to a .exe process, using the same exact solution, one PC defaults to using Managed Legacy (v3.5, v3.0, v2.0) and another PC to Managed Legacy (v4.5, v4.0). 当使用相同的精确解决方案附加到.exe进程时,一台PC默认使用托管旧版(v3.5,v3.0,v2.0),另一台PC默认使用托管旧版(v4.5,v4.0)。 Why would the setting be different between machines? 为什么机器之间的设置会有所不同? Is there a setting somewhere I can change? 我可以更改某个地方的设置吗?

The problem is that Managed Legacy (v3.5, v3.0, v2.0) is causing breakpoints not to be hit when using .NET4. 问题在于,使用.NET4时,“受管旧版”(v3.5,v3.0,v2.0)导致无法命中断点。 I can detach and re-attach as Managed Legacy (v4.5, v4.0) manually but that's ridiculous. 我可以手动分离并重新附加为Managed Legacy(v4.5,v4.0),但这很荒谬。

Is there a way to specify one before the process starts? 有没有办法在流程开始之前指定一个?

Found the problem. 找到了问题。 There was an XML configuration file (.config) that was setting the .NET version. 有一个XML配置文件(.config)正在设置.NET版本。 The solution was to delete the file. 解决的办法是删除文件。

Here were the contents of the XML 这是XML的内容

<?xml version="1.0"?>
<configuration>
  <startup>
    <supportedRuntime version="v2.0.50727"/>
  </startup>
</configuration>

After deleting the file, Managed (v4.5, v4.0) is now the default. 删除文件后,托管(v4.5,v4.0)现在是默认设置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Framework从v3.5迁移到v4.0 - NET Framework migration from v3.5 to v4.0 如何在Windows 8中处理.Net Framework版本V4.0和V3.5 - How to deal with .Net framework versions V4.0 vs V3.5 in Windows 8 以 v4.0 为目标时对 v4.5 的模糊引用 class - Ambiguous reference to v4.5 class when targetting v4.0 从源文件编译程序时,如何将目标框架设置为v2.0或v3.5而不是4.0? - How to set the target framework to v2.0 or v3.5 instead of 4.0 when compiling a program from a source file? 无法在多个项目上更改目标框架从v4.0到V4.5或4.5.1 - Cannot change Target Framework on Several Projects From v4.0 to V4.5 or 4.5.1 将目标框架从v4.0更改为v3.5后,找不到命名空间 - Namespace cannot be found after changing target framework from v4.0 to v3.5 如何显示带有特殊字符集的枚举V1.0,V2.0和V3.0 - how to display enum with set of special charaters as V1.0, V2.0 and V3.0 我们可以有一个内置的.Net V2.0引用另一个内置的.Net V4.5吗? - Can we have a DLL built in .Net V2.0 references another built in .Net V4.5? C#项目的目标是“.NetFramework,Version = v4.5,Profile = Unity Full v3.5”,这台机器没有安装 - The C# Project is targeting “.NetFramework, Version=v4.5,Profile=Unity Full v3.5”, which is not instaled on this machine 从V3.0到V2.0的config.DataServiceBehavior.MaxProtocolVersion中的更改无法还原 - change in config.DataServiceBehavior.MaxProtocolVersion from V3.0 to V2.0 cannot revert
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM