Vs2012 and vs2010 cannot generate DLL Assembly Solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.