Visual Studio Extension


Insert Platform Invoke (PInvoke) signatures from easily.

(13) Review
Visual Studio
2015, 2013, 2012, 2010
Download (39,304)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (13)
Q and A (2)
Sign in to write a review
Sort by:

by Uitumen | June 23 2016

It really saves time!

by tldzyx | June 16 2016

maybe it can support linux api on mono/.net core

by Sean Liming | August 23 2015

Nice tool!

by Andre.Ziegler | July 27 2015

by chriga | May 22 2014

Works just for Windows DLLs. But not for custom ones.

by gordines | May 19 2014

works in 2010 VS :)

by PowerCat | November 04 2013

Any way to add VS Express support?

by Track77 | October 27 2013

Excelent tool.

by Chris1255 | October 17 2012

It seems to be working pretty well. As someone previously suggested, it would be nice if it formatted properly into where you insert it. Other than that, it would be nice if it added the necessary references to use the types it provides.

by lostmsu | September 22 2012

Works in VS 2012.

- suggests only the first snippet in language (at least I've not found how to insert 2nd and others)
- inserts text always at line start; should insert at cursor position, and reformat it right after inserting

by Ben Emmett | September 13 2012

Works perfectly in VS2012 :-)

by sdbenique | June 22 2012

Only works in outdated and crappy versions of VS. I'd give it zero stars but it wont let me.

by AndrewTJ | July 08 2011

It doesn't work in Visual Studio 2010 (as indicated in "Supports" above.) When will it be available for VS2010 please?

Thank you.

Sign in to start a discussion

  • Visual Studio 2015
    5 Posts | Last post July 27, 2015
    • Unpack vsix file.
      		<VisualStudio Version="14.0">
      Pack files to zip archive, change extension to vsix.
    • Thanks. We've added support to the extension itself now, so it should just install straight in to VS2015.
    • Hallo Ben, I can't install the Extension in VS2015 RTM. Highest supported product is Version 12 which is 2013. VS2015 = VS14.
    • Apologies, Andre! We've reuploaded and it should be working now with VS 2015.
    • Thanks Jessica. The new version works fine :)
  • Is VS 2010 supported?
    4 Posts | Last post September 13, 2012
    • Are you planning to support?
    • First, locate the PInvokeDotNetAddIn.Addin file located in %programfiles%\red gate\PInvoke.NET, open it with a text editor such as notepad.exe, and make the following changes:
      After the text:
      <Name>Microsoft Visual Studio Macros</Name>
      <Name>Microsoft Visual Studio</Name>
      <Name>Microsoft Visual Studio Macros</Name>
      <Name>Microsoft Visual Studio</Name>
      and save the file.
      It may also be necessary to add the path to the PInvoke add-in to the list of folders where Visual Studio will look for add-ins. From Visual Studio 2010's Tools menu, select Options, then Add-in/Macros security. If the path to the PInvoke.NET installation folder (c:\program files\red gate\PInvoke.NET) is not listed in the collection of add-in file paths, click the add button and select the installation folder.
      After restarting Visual Studio 2010, the add-in will function as it does in previous versions of Visual Studio.
    • Beautiful - worked like a charm.
      Couple of things...
      1) I edited it using VS but you need to have VS "Run as Adiministrator" in order to save the file.
      2) Like you said I had to add the path to the add-in under Options->Add-in/Macro Security
    • PInvoke is now available as a vsix package, supporting Visual Studio 2010 and 2012 :-).