Azure Worker角色+ PostSharp + TFS Online

时间:2013-10-16 04:07:10

标签: azure tfs tfsbuild azure-worker-roles postsharp

我在Azure Worker角色项目中使用PostSharp 3 Ultimate。我使用tfs.visualstudio.com作为源代码控制。

现在,PostSharp不喜欢NuGet Package Restore。它要求我们在构建服务器上构建项目之前恢复所有nuget包 - http://doc.postsharp.net/##nuget-restore

因此,我按照此链接(http://docs.nuget.org/docs/reference/package-restore-with-team-build)创建了一个.proj文件,该文件首先恢复所有NuGet包,然后在构建服务器上构建解决方案。这种方法对我部署为ASP .Net MVC的{​​{1}}项目非常有效。但是当我尝试以相同的方式构建我的Azure Web Site项目时,我收到以下错误:

Azure Worker

以下是我的解决方案的结构:

Exception Message: Please specify a Visual Studio Solution (.sln) to build. (type BuildFromSolutionException)
Exception Stack Trace:    at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

以下是我签入TFS的新+ Solution |-+ packages |-+ Tools | |-+ NuGet | |-- NuGet.exe |-+ Workers (Cloud Project) |-+ Workers.QueueProcessor (Worker Role) |-- Workers.Build.proj |-- Workers.sln 文件中的内容:

Workers.Build.proj

0 个答案:

没有答案