Build error in tfsbuild with database project

前端 未结 2 1493
慢半拍i
慢半拍i 2020-12-31 00:27

I have setup my .NET project in TFS Build. It builds fine locally, but I am getting this build error on the server:

The imported project \"C:\\Program

2条回答
  •  清歌不尽
    2020-12-31 00:31

    You need to install the SQL Server Data Tools on all build agents. When installing a TFS Build server, people often create agents to be on that or other machines.

    You can download them from the MS SQL Server Data Tools Blog or Microsoft SQL Server Data Tools, and you choose the one that corresponds to the builds that you doing (Visual Studio 2010 or Visual Studio 2012).

    Note: In some cases, the error mentions the path:
    c:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets
    In such cases, install SQL Server Data Tools from SQL installation, not the link above.

提交回复
热议问题