System.Runtime.InteropServices
                              
                            
                                4.0.20
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    Requires NuGet 3.0 or higher.
dotnet add package System.Runtime.InteropServices --version 4.0.20
NuGet\Install-Package System.Runtime.InteropServices -Version 4.0.20
        
        
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
                    
    
    <PackageReference Include="System.Runtime.InteropServices" Version="4.0.20" />
        
        
For projects that support PackageReference, copy this XML node into the project file to reference the package.
                    
    
    <PackageVersion Include="System.Runtime.InteropServices" Version="4.0.20" />
<PackageReference Include="System.Runtime.InteropServices" />
        
        
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
                    
    
    paket add System.Runtime.InteropServices --version 4.0.20
        
        
 The NuGet Team does not provide support for this client. Please contact its maintainers for support.
                    
    
    #r "nuget: System.Runtime.InteropServices, 4.0.20"
        
        
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
                    
    
    #:package System.Runtime.InteropServices@4.0.20
        
        
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
                    
    
    #addin nuget:?package=System.Runtime.InteropServices&version=4.0.20
#tool nuget:?package=System.Runtime.InteropServices&version=4.0.20
        
        
 The NuGet Team does not provide support for this client. Please contact its maintainers for support.
                    
    
    Provides types that support COM interop and platform invoke services.
Commonly Used Types:
System.Runtime.InteropServices.GCHandle
System.Runtime.InteropServices.GuidAttribute
System.Runtime.InteropServices.COMException
System.DllNotFoundException
System.Runtime.InteropServices.DllImportAttribute
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. | 
| .NETPlatform | dotnet is compatible. | 
| DNXCore | dnxcore50 is compatible. | 
| MonoAndroid | monoandroid10 is compatible. | 
| MonoTouch | monotouch10 is compatible. | 
| Universal Windows Platform | netcore50 is compatible. | 
| Xamarin.iOS | xamarinios10 is compatible. | 
| Xamarin.Mac | xamarinmac20 is compatible. | 
        
        Compatible target framework(s)
    
    
        
        Included target framework(s) (in package)
    
    Learn more about Target Frameworks and .NET Standard.
- 
                                                    .NETFramework 4.6- No dependencies.
 
- 
                                                    .NETPlatform 5.0- System.Reflection (>= 4.0.0)
- System.Reflection.Primitives (>= 4.0.0)
- System.Runtime (>= 4.0.0)
- System.Runtime.Handles (>= 4.0.0)
 
- 
                                                    MonoAndroid 1.0- No dependencies.
 
- 
                                                    MonoTouch 1.0- No dependencies.
 
- 
                                                    Xamarin.iOS 1.0- No dependencies.
 
- 
                                                    Xamarin.Mac 2.0- No dependencies.
 
GitHub repositories (372)
Showing the top 20 popular GitHub repositories that depend on System.Runtime.InteropServices:
| Repository | Stars | 
|---|---|
| peass-ng/PEASS-ng 
                                                            PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)
                                                         | |
| ppy/osu 
                                                            rhythm is just a *click* away!
                                                         | |
| AutoDarkMode/Windows-Auto-Night-Mode 
                                                            Automatically switches between the dark and light theme of Windows 10 and Windows 11
                                                         | |
| JeffreySu/WeiXinMPSDK 
                                                            微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 8.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
                                                         | |
| microsoft/ailab 
                                                            Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
                                                         | |
| neuecc/UniRx 
                                                            Reactive Extensions for Unity
                                                         | |
| stride3d/stride 
                                                            Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
                                                         | |
| NancyFx/Nancy 
                                                            Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
                                                         | |
| Azure/azure-sdk-for-net 
                                                            This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net. 
                                                         | |
| MediaBrowser/Emby 
                                                            Emby Server is a personal media server with apps on just about every device.
                                                         | |
| xamarin/xamarin-forms-samples 
                                                            Sample apps built using the Xamarin.Forms framework
                                                         | |
| jitwxs/163MusicLyrics 
                                                            云音乐歌词获取处理工具【网易云、QQ音乐】
                                                         | |
| ferventdesert/Hawk 
                                                            visualized crawler & ETL IDE written with C#/WPF
                                                         | |
| dafny-lang/dafny 
                                                            Dafny is a verification-aware programming language
                                                         | |
| projectkudu/kudu 
                                                            Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. It can also run outside of Azure.
                                                         | |
| dotnet/interactive 
                                                            .NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
                                                         | |
| dotnet/sdk 
                                                            Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
                                                         | |
| netwrix/pingcastle 
                                                            PingCastle - Get Active Directory Security at 80% in 20% of the time
                                                         | |
| peachpiecompiler/peachpie 
                                                            PeachPie - the PHP compiler and runtime for .NET and .NET Core
                                                         | |
| neuecc/ZeroFormatter 
                                                            Infinitely Fast Deserializer for .NET, .NET Core and Unity.
                                                         | 
| Version | Downloads | Last Updated | 
|---|---|---|
| 4.0.20 | 61,084 | 7/20/2015 | 
| 4.0.20-beta-23019 | 20,319 | 6/29/2015 | 
| 4.0.20-beta-22816 | 36,238 | 4/24/2015 | 
| 4.0.20-beta-22605 | 15,895 | 2/13/2015 | 
| 4.0.20-beta-22416 | 7,657 | 1/16/2015 | 
| 4.0.20-beta-22231 | 71,090 | 11/11/2014 | 
| 4.0.10 | 162 | 7/20/2015 | 
| 4.0.10-beta-23019 | 521 | 6/29/2015 | 
| 4.0.0 | 32,002 | 7/20/2015 | 
| 4.0.0-beta-23019 | 52,306 | 6/29/2015 |