See NuGet/Home#6918.
Steps to reproduce
Use the MSBuild API to call SolutionFile.Parse after having special-case loaded Microsoft.Build.dll from the VS installation but when you do not have System.Runtime.InteropServices.RuntimeInformation.dll in your application, or a sufficiently new (4.7.1+) .NET installed.
Expected behavior
Works.
Actual behavior
Error parsing solution file at C:\folder\somefile.sln: Exception has been thrown by the target of an invocation. The project file could not be loaded. Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\folder\somefile.sln
NuGet.CommandLine.CommandLineException: Error parsing solution file at C:\folder\somefile.sln: Exception has been thrown by the target of an invocation. The project file could not be loaded. Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\folder\somefile.sln
at NuGet.CommandLine.MsBuildUtility.GetAllProjectFileNamesWithMsBuild(String solutionFile, String msbuildPath)
Reactions are currently unavailable
See NuGet/Home#6918.
Steps to reproduce
Use the MSBuild API to call SolutionFile.Parse after having special-case loaded Microsoft.Build.dll from the VS installation but when you do not have System.Runtime.InteropServices.RuntimeInformation.dll in your application, or a sufficiently new (4.7.1+) .NET installed.
Expected behavior
Works.
Actual behavior