Got error with visual studio 2015

Dhananjay Siwach 21 Reputation points
2021-03-25T09:29:01.05+00:00

Hi,

I want use MIME lib in my project to find the file extension but when I am going to install by visual studio 2015 after install I have got following error. please help me out.

error : Invalid static method invocation syntax: "[System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux))". The type "System.Runtime.InteropServices.RuntimeInformation" is either not available for execution in an MSBuild property function or could not be found

81496-error.png

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,352 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,592 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,216 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    2021-03-25T13:53:20.263+00:00

    Hi @DhananjaySiwach-3715 ,

    Welcome to Microsoft Q&A forum.

    Looks like this issue is caused from “Mime” side, please try to contact the author of this NuGet Package.

    I suggest you try to uninstall(if you have successfully installed it) and then reinstall it again. If this issue appeared during the installation, please directly try to reinstall it again.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments