One Day Sec

How do I compile the mapi_tool code for different .NET versions?

The `mapi_tool` is written in C# and can be compiled using the .NET `csc.exe` compiler. For .NET 3.5, use: `C:\Windows\Microsoft.NET\Framework64\v3.5\csc.exe mapi_tool.cs /r:Microsoft.Office.Interop.Outlook.dll`. For .NET 4.0 or higher, use the path for `v4.0.30319` instead. Ensure the referenced `Microsoft.Office.Interop.Outlook.dll` matches the installed Outlook version; sample DLLs for Office 2010 and 2013 are provided in the repository.
compilationmapi_toolcsc.exe.NET 3.5.NET 4.0Outlook DLL

Browse all Q&A →