FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

SolutionFile.Parse requires System.Runtime.InteropServices.RuntimeInformation · Issue #3282 · dotnet/msbuild · GitHub

/ msbuild Public

SolutionFile.Parse requires System.Runtime.InteropServices.RuntimeInformation #3282

Description

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL