Specify a

     

Trong bài viết này

Applies to:

*
Visual Studio
*
Visual Studio for Mac
*
Visual Studio Code

The Visual Studio debugger supports debugging older versions of the vinaexpress.com.vn .NET Framework as well as the current version. If you start an application from Visual Studio, the debugger can always identify the correct version of the .NET Framework for the application you are debugging. However, if the application is already running và you start debugging by using Attach to, the debugger may not always be able khổng lồ identify an older version of the .NET Framework. If this happens, you will get an error message that says,

The debugger has made an incorrect assumption about the .NET Framework version your application is going lớn use.In the rare cases where this error appears, you can set a registry key lớn indicate lớn the debugger which version to use.

Bạn đang xem: Specify a

To specify a .NET Framework version for debugging

Look in the directory Windowsvinaexpress.com.vn.NETFramework to find the versions of the .NET Framework installed on your machine. The version numbers look something like this:

V1.1.4322

Identify the correct version number and make a lưu ý of it.

Start the Registry Editor (regedit).

In the Registry Editor, mở cửa the HKEY_LOCAL_MACHINE folder.

Navigate to: HKEY_LOCAL_MACHINESoftwarevinaexpress.com.vnVisualStudio10.0AD7MetricsEngine449EC4CC-30D2-4032-9256-EE18EB41B62B

If the key does not exist, right-click HKEY_LOCAL_MACHINESoftwarevinaexpress.com.vnVisualStudio10.0AD7MetricsEngine, & click New Key. Name the new key 449EC4CC-30D2-4032-9256-EE18EB41B62B.

After navigating lớn 449EC4CC-30D2-4032-9256-EE18EB41B62B, look in the Name column, và find the CLRVersionForDebugging key.

Xem thêm: Top Game Làm Móng Đẹp Nhất

If the key does not exist, right-click 449EC4CC-30D2-4032-9256-EE18EB41B62B, and click New String Value. Then right-click the new string value, click Rename, and type CLRVersionForDebugging.

Double-click CLRVersionForDebugging.

In the Edit String box, type the .NET Framework version number in the Value box. For example: V1.1.4322

Click OK.

Close the Registry Editor.

Xem thêm: Floyd Mayweather Là Ai ? Floyd Mayweather: Nỗi Buồn Của Một Ông Hoàng

If you still get an error message when you start khổng lồ debug, verify that you have entered the version number correctly in the registry. Also verify that you are using a version of the .NET Framework supported by Visual Studio. The debugger is compatible with the current .NET Framework version và previous versions, but may not be forward compatible with future versions.