Cannot evaluate the property expression "$([MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\V140\'))" found at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuil
2017-08-16 20:37
1016 查看
Cannot evaluate the property expression "$([MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\V140\'))" found at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0@VCTargetsPath". Invalid static method invocation syntax: "[MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(MSBuildExtensionsPath32)\Microsoft.Cpp\v4.0\V140\')". Method '[MSBuild]::ValueOrDefault' not found. Static method invocation should be of the form: $([FullTypeName]::Method()), e.g. $([System.IO.Path]::Combine(`a`, `b`)).
原因是之前安装了VS2015,而注册表没清理干净。
I had the same issue when I had previously installed VS2013 and then uninstalled. This happens because VS2013 uninstaller forgets one of its registry keys, which causes this error when you start to work with VS2010 again.
Delete if there is a key with 12.0 in this location.
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions
Hopefully VS2010 will work again.
https://stackoverflow.com/questions/26978418/visual-studio-cannot-open-or-make-project
原因是之前安装了VS2015,而注册表没清理干净。
I had the same issue when I had previously installed VS2013 and then uninstalled. This happens because VS2013 uninstaller forgets one of its registry keys, which causes this error when you start to work with VS2010 again.
Delete if there is a key with 12.0 in this location.
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions
Hopefully VS2010 will work again.
https://stackoverflow.com/questions/26978418/visual-studio-cannot-open-or-make-project
相关文章推荐
- The useful App Paths registry key : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
- vs2008 HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSBuild \ ToolsVersions \ 14.0
- 错误:Property or field 'default' cannot be found on object of type 'com.netflix.appinfo.InstanceInfo'
- HOW TO: FIX ERROR - "the 'microsoft.ace.oledb.12.0' provider is not registered on the local machine"
- Debug error:"One or more breakpoints cannot be set and have been disabled.Execution will stop at the beginning of the program."
- [Outlook 2007]The error message: "Either there is no default mail client or the current mail client cannot fulfill the messaging
- Home not found. Define system property "openfireHome" or create and add the openfire_init.xml file to the classpath
- eclipse提示“the default workspace "D:/*****"is in use or cannot be created.Please choose a different”
- npm install报错--error MSB4019: The imported project "E:\Microsoft.Cpp.Default.props" was not found
- Error code: 0x80004005 "The Microsoft Access database engine cannot open or write to the file ''
- Oops, 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine error
- A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/local/eclipse/
- 报错"the microsoft.jet.oledb.4.0 provider is not registered on the local machine"解决方案
- Error code: 0x80004005 "The Microsoft Access database engine cannot open or write to the file &
- Error 1406. Setup cannot write the value DisableExceptionChainValidation to the registry key \SOFTWARE\Microsoft\Windows NT\Curr
- Error 1406. Setup cannot write the value DisableExceptionChainValidation to the registry key \SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File
- VS2010打开工程.csproj文件报错:无法计算“...”处的属性表达式“$([MSBuild]::ValueOrDefault('$(VCTargetsPath)','$(MSBuildExte
- 注册表项HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components的作用
- 注册表项HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components的作用
- Debug error:"One or more breakpoints cannot be set and have been disabled.Execution will stop at the