I am using Visual Studio 2012 to create a WPF program. There is a DLL compiled from C that I use to call DllImport. Dll is added to the project and marked as
- Build Action: Content
- Copy to output directory: always copy
When the design solution is built, the dll is copied to the Debug folder with the .exe generated by Visual Studio successfully. However, when I launched it by double-clicking the generated .exe file from Explorer or "Run" in the VS debugger, the dll suddenly deleted by itself.
Why?
c # dll wpf visual-studio-2012 dllimport
palazzo train
source share