You cannot add a reference to an unmanaged DLL.
Instead, you should make a post-build task to copy the file.
Alternatively, you can add a link to the unmanaged DLL as a file in the C# project, and set Build Action
to None
and Copy to Output Directory
to Copy If Newer
.
More Related Contents:
- index out of range exception occurred [duplicate]
- Can’t view designer when coding a form in C#
- What is the difference between Debug and Release in Visual Studio?
- How do I edit the Visual Studio templates for new C# class/interface?
- The name ‘ConfigurationManager’ does not exist in the current context
- Specified argument was out of the range of valid values. Parameter name: site
- Visual Studio debugging “quick watch” tool and lambda expressions
- How to debug a referenced dll (having pdb)
- Visual Studio build fails: unable to copy exe-file from obj\debug to bin\debug
- C# “Unmanaged Exports” [closed]
- Request.UrlReferrer null?
- Visual studio one project with several dlls as output?
- Using c++ library in c#
- Visual Studio displaying errors even if projects build
- Blue screen when using Ping
- Visual Studio 2013 doesn’t discover unit tests
- Unable to copy a file from obj\Debug to bin\Debug
- EF migration for changing data type of columns
- Xamarin project not running, assembly not found
- Is there anyway to #define CONSTANT on a solution basis?
- How can we change the background color of all other forms from one form?
- Can’t use System.Windows.Forms
- Symbol file not loading for debugging custom project in Visual Studio 2012
- Shortcut to create properties in Visual Studio?
- How to create an installer for a .net Windows Service using Visual Studio
- “Treat all warnings as errors except…” in Visual Studio
- Visual Studio 2015 diagnostics tool does not support current debugging configuration
- How to setup the starting form of a winforms project in Visual Studio 2010
- C# tutorial to write gadgets
- Missing XML comment for publicly visible type or member