Visual Studio 2013 Solution building not in build order

前端 未结 6 1802
别那么骄傲
别那么骄傲 2020-12-30 22:36

I am having problems getting my C# Solution to build \"Fresh\". If I clean the solution and build it again it will not build (I can do it a few times and it will build). It

6条回答
  •  我在风中等你
    2020-12-30 22:52

    Solution is very simple.

    You can set your project build order by right click on 'Project Solution' and select "Select Project Build Order" option.

    enter image description here

    For Example, I have a WpfFormApplicaiton1 and two class with title "ClassLibrary1" and "ClassLibrary2". By default Visual Studio sets it as follow:

    enter image description here

    My requirement is such as "ClassLibrary2" will be used by "ClassLibrary1" & "ClassLibrary1" will be used by "WpfFormApplication1". So, in order to fulfill this requirement I have to change the default project build order.

    Go to Project Dependencies; Select the "ClassLibrary1" and set the "ClassLibrary2" as its dependency.

    enter image description here

    Similary, select the "WpfFormApplication1" and set the "ClassLibrary1" as its dependency.

    enter image description here

    Now, the desired project build order is set; confirmed by Project Build Order's options.

    enter image description here

    Solution is taken from my blog.

提交回复
热议问题