的Visual Studio 2013的解决方案的建筑不是构建顺序 [英] Visual Studio 2013 Solution building not in build order

查看:353
本文介绍了的Visual Studio 2013的解决方案的建筑不是构建顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有让我的C#解决方案打造新鲜的问题。如果我清洁解决方案,并再次构建它,它不会建(我可以做了几次,它会建立)。它有大约蔚蓝的项目越来越工人和web项目,它是依赖于之前建立一个错误。还包括如何在大多数解决方案中的项目正在寻找

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 has an error about the azure project getting build before the worker and web projects that it is dependent on. Also about how most of the projects in the solution are looking for

WAT070 : The referenced assembly {...}/Worker.dll was not found. 
Please make sure to build the role project that produces this assembly before building this Windows Azure Cloud Service Project.
{...}\VisualStudio\v12.0\Windows Azure Tools\2.2\Microsoft.WindowsAzure.targets 1252    5   AzureProjectName

现在,如果我建项目,在项目依赖所列的顺序 - >构建顺序一切正常。此外,网络和工作中的作用正在Azure项目之前。

Now if I build the projects in the order listed in the Project Dependencies -> Build Order everything works. Also, the web and work role are listed before Azure Project.

推荐答案

解决方案是非常简单的。

Solution is very simple.

您可以通过右键点击项目解决方案设置项目生成顺序和选择选择项目构建顺序选项。

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

例如,我有一个WpfFormApplicaiton1和两个类标题为ClassLibrary1的和ClassLibrary2。默认情况下Visual Studio中并将其设置如下:

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

我的要求是,例如ClassLibrary2将被ClassLibrary1的与&amp使用; ClassLibrary1的将被WpfFormApplication1被使用。因此,为了满足这一要求我必须要改变默认的项目生成顺序。

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.

转到项目依赖;选择ClassLibrary1的,并设置ClassLibrary2作为自己的依赖。

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

类似地,选择WpfFormApplication1,并设置ClassLibrary1的为依赖。

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

现在,所需的项目生成顺序设置;通过项目建设证实订购的选项。

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

解决方案是从我博客服用。

这篇关于的Visual Studio 2013的解决方案的建筑不是构建顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆