MSBuild Error MSB4140
MSB4140: Default ToolsVersion is specified in neither the registry nor configuration file.
The project does not specify a default ToolsVersion value. Therefore, MSBuild does not know which value to use.
To correct this error
- Make sure that a DefaultToolsVersion value is specified either in the registry where Toolsets are defined, or in a configuration file (such as msbuild.exe.config).
See Also
Reference
Resources for Troubleshooting MSBuild Errors