When you want to create a DLL file to use in C# windows application or from other applications then you may experience the below error:
Exception: fatal error LNK1104: cannot open file 'xxx.def'
You define the definition file from Project--> Project Properties. But the project won't get the definition file in the project path.
Create or copy the definition file into the project root path.