Visual Studio. NET Assembly output path configuration, studio.net

Source: Internet
Author: User

Visual Studio. NET Assembly output path configuration, studio.net

Over the past few days. NET open-source interface framework Fluent. ribbon found that the output files compiled by others are concentrated in a Build folder. In the past, the path of the final assembly generated by compilation was specified, however, the intermediate files generated by the compiler are always in the obj folder under the project folder, and the engineering attributes can be changed. At the beginning, I guess it must have been an article in The. csproj file. Since this file was originally a file based on XML standards, we can open it in text format. Compared with the. csproj file of Fluent. Ribbon, it was found that. The first <PropertyGroup>... </PropertyGroup> the tag contains an additional <BaseIntermediateOutputPath> .. \ build \ obj \ NET 4.5 </BaseIntermediateOutputPath> label. Here are the steps I tried (my development tool is VS2013 ):

 

 

============================== ======================================

 

 

1. This is the default compiling path of VS. There are two gray folders bin and obj in the Red Square on the right (click the button at the Green Arrow first for invisible kids shoes ), he does not need to talk nonsense.

 

Figure 1

Next, I use Sublime Text to open the. csproj file, as shown in figure 2.

 

Figure 2

 

In Figure 2, there are several <PropertyGroup>... </PropertyGroup> label. The <OutputPath>... </OutputPath> specifies the output path of the Assembly generated by Debug compilation and Release compilation. If the reader has modified the compilation platform, this tag may differ. But they are all the same. Next, I modified the path label of the output assembly, and in the first <PropertyGroup>... The <BaseIntermediateOutputPath> .. \ Build \ obj </BaseIntermediateOutputPath> label is added to the </PropertyGroup> label, as shown in figure 3.

 

Figure 3

Switch to the VS window. At this time, the IDE will tell us that the file has been modified by an external program. In this case, select Reload All, as shown in figure 4.

 

Figure 4

Delete the two folders (bin and obj) in the Red Square on the right, as shown in Figure 5.

 

Figure 5

Re-compile the project and open the folder where the project file is located. You will find that the compiler does not generate bin and obj file output, but outputs all the files to the Build folder under the root directory of the project solution. 6.

 

Figure 6

 

Project File: VisualStudio.Project.Output.Demo.zip

PS: either the WPF project or the WinForm project can be modified using the above methods. I have not tried any other engineering projects yet. If you are interested in it, try it. If it is convenient, let me know by the way :)

Related Article

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.