How to deploy the configuration file in unit test in C #

Source: Internet
Author: User

When you use C # To create a unit test run, the system automatically creates a directory, for example :"... \ waterwood source China Power Grid Monitoring System \ testresults \ waterwood source China 065_smyh065 2009-12-13 22_19_53 \ out "Run test cases. However, by default, the system only copies the dependencies to the out directory instead of copying some configuration files, even if it is placed under bin \ debug, it will not be copied. Therefore, you need to adjust the deployment items for the test. Under vs2008

 

 

 

When you run the test case again, the system will automatically deploy these files to the out directory. After a period of operation, the testresults directory will be large and delete the files.

Below is a description of Microsoft http://msdn.microsoft.com/zh-cn/library/ms182475 (vs.80). aspx

 

 

 

 

 

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.