Visual Studio ????? ?? ????????? ?? ??? ????? ??? .NET Framework ?? ??????? ??????? ?? ??? ????? ?? ??? ???? ????

???? ?????? ???? ??????
???? ID: 315291 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

?????

?? ??? ?? ??? ???? ????? ???? ?? ?? ?????????? ??????? ?? ???????? ?? ??? ??????? ???????? ?? ??????? ?? ?? .NET Framework ??????? ?? ?????? ???? ?? ??? Microsoft Visual Studio .NET IDE ?? ????? ???? ?????

???:?? ???? ???? ?????? ?? ???? ????????? ??? ??? ???????? ????????? .NET Framework ?? ??? ????? ?? ??? ???? ????? ???????? ?? ?? ?? ???? ??? ????? ??, ???? ?? ?? ?????? ??????? ???????? ?? ??????? ?? ?? .NET Framework ??????? ?? ??????? ??? ?? ???? ?? ????????? ???????? ??? ?? ???? ?? ???? ?????? ?? ?? ??? .NET Framework ???? ?????? ??? ??????? ?? ?? ??? ????? ?? ??? ???? ?????

???? ???????

?????? ???????

?? ???? ????? ?? ?? ?? ????? ???? ?? ?????? ???:

????? Studio .NET ??????? ?? ????? ?????????

??????? ??????? ??????? ?? ??? ?????

????? ?? ??? ????? ?? ?????? ??? ????????? ????????? .NET Framework ??????? ????????? ????? ?? ???, ????? ????? ?? ???? ????:
  1. ??? ??? Visual Studio ????? ????????? ????? ?? ????????? ????????? ?????? ?? ??? ???
  2. ?????? Explorer ??????? ????, ?? ?? ??????????? ?????? ????? ?????? ?????? Explorer ??????
  3. ????????? ?????? ????? ????, ????-????? ??????? ?????? ???????, ?? ???? ?????? ?? ????????? ??? ??????.
  4. ????, ??? ?? ??? ?? ??????? ??? ???? ???? "??? CLR ???????."
  5. ?? ??? ????? ????, ?? ???? ??? ????? ?? ??? F4 ????????? ??? ??? ????? ????. ???????? ??? ??, ????? ???? ?? ????? ??????????? ????-????? ????, ?? ???? ?????? ?????.
  6. ??? ????RegKey????? ????? ??? ?? ?? ?? ??? ???:
    .NET Framework 1.0: ?? ???
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.0

    .NET Framework 1.1: ?? ???
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.1

    .NET Framework 2.0: ?? ???
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v2.0
  7. ??? ????Value:??? follows ?? ??? ???:
    • .NET Framework 1.0 ?? ???: "3705"
    • .NET Framework 1.1 ?? ???: "4322"
    • .NET Framework 2.0 ?? ???: "50727"
  8. ??????????? ????? ??????? ?? ???, ?? ??? ????? ???? ??????? ??? ???? ?? ???, ??? ?? ????-????? ????, ?? ???? ??? ????? ???????? ?? ????? ??? ??????. Give this condition an appropriate name, such as "CLR condition."
  9. Click the new condition, and then set the????????? follows ?? ??? ???:
    • For the .NET Framework 1.0:
      REGISTRYVALUE = "3321-3705"
    • For the .NET Framework 1.1:
      REGISTRYVALUE="3706-4322"
    • For the .NET Framework 2.0:
      REGISTRYVALUE="50727-50727"
  10. ??? ?????????property to an output message, such as "The .NET Framework 1.0 is not installed.", "The .NET Framework 1.1 is not installed.", or "The .NET Framework 2.0 is not installed."
  11. Build and test the deployment project.
???:For testing purposes on the computer that you use for development you may modify the registry as follows. For all of the examples the placeholderXXXis the version of the .NET Framework that you are testing.

Locate the following key for the .NET Framework 1.0:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.0
Rename the previous key to the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\XXXv1.0
Locate the following key for the .NET Framework 1.1:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v1.1
Rename the previous key to the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\XXXv1.1
Locate the following key for the .NET Framework 2.0:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\v2.0
Rename the previous key to the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\policy\XXXv2.0

Do not forget to rename the key after you complete your test.

??????

For additional information, visit the following Microsoft Developer Network (MSDN) Web sites:
Creating or adding deployment projects
http://msdn.microsoft.com/en-us/library/aa291133.aspx

Adding items to a deployment project
http://msdn.microsoft.com/en-us/library/aa291131.aspx

Properties for the Launch Conditions Editor
http://msdn.microsoft.com/en-us/library/aa291900.aspx

Adding a launch condition in the Launch Conditions Editor
http://msdn.microsoft.com/en-us/library/aa301646.aspx

???

???? ID: 315291 - ????? ???????: 03 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft .NET Framework 1.0
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 2.0
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Academic Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft Visual Studio .NET 2003 Enterprise Architect
  • Microsoft Visual Studio .NET 2003 Enterprise Developer
  • Microsoft Visual Studio .NET 2003 Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
??????: 
kbhowtomaster kbmt KB315291 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:315291

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com