During project creation, we always encounter various problems caused by the failure to generate DLL assembly.
Usually, we clean up the project and generate it again, or delete all the DLL files in the bin directory and generate the files again.
Sometimes some DLL files are not generated. At this time, you need to think about the problem.
When I was working on a webapi project, I encountered such a problem. system. Web. MVC the Assembly is not generated in the bin, leading to release failure.
Finally, the problem is found. The original class of Assembly belongs to the system framework-level assembly. You can specify whether to copy the assembly to the local device.
That is to say, this type of assembly can run normally even if it is not generated in the bin. This is why the program running error occurs during the release, but it is good in the development stage.
Solution:
Click reference to find the DLL to be generated. The property has a copy local option. Select true.
Vs2012 and vs2010 cannot generate DLL Assembly Solution