question

DhananjaySiwach avatar image
0 Votes"
DhananjaySiwach asked TianyuSun-MSFT edited

Got error with visual studio 2015

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


dotnet-csharpvs-generaldotnet-package-management
error.png (58.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.