[How to] use wildfish for development-new solution configuration

Source: Internet
Author: User
Tags log4net
1. Create a test project

2. After the project is created, we add an externaldll directory under the solution directory to store the DLL required by the project.
Then copy all the DLL files under wildfish/bin/release.
Right-click the solution to add-Add the existing projects that add all the DLL files to the solution.

3.
Add a reference to The bll project and select fishsky. dll.
4.
Create a winform project.
Add a reference to BLL and a reference to wildfish. dll log4net. dll.
Copy log4net. config from the configurationtool project to the current directory of the winform project.
Add it to the Project
Open the winform project properties, find buildevent, and add the following under pre-build event:Code
Copy $ (projectdir) log4net. CONFIG $ (targetdir) log4net. config
Open assemblyinfo. CS
Add the following code to the last line
[Assembly: log4net. config. xmlconfigurator (configfile = "log4net. config", watch = true)]
Open program. CS
Add at using
Using log4net. config;
Using system. IO;

Add the following code at the beginning of main:
Log4net. config. xmlconfigurator. Configure (New fileinfo ("log4net. config "));

 

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.