Closed lwchkg closed 7 years ago
Appears to be a missing file when using Roslyn:
An exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.CodeAnalysis.dll but was not handled in user code
Additional information: Could not find a part of the path 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6.2\Microsoft.VisualBasic.dll'. (modified program to reference inexistent .NET 4.6.2.
This could also happen if a bad reference file is to be added. So we'd better handle the exception properly. May need to handle file path searching for the DLL also.
Found the root cause: the .NET Developer Pack 4.6.1 is not installed. Without the developer pack it is impossible to compile programs under that .NET Framework, and this happens also for Visual Studio.
Here's the dump: