[英]Visual Studio 2013 SQL Server database project build failure
I'm playing with a SQL Server database project with Visual Studio 2013 on Windows 2012 R2. 我在Windows 2012 R2上使用Visual Studio 2013玩SQL Server数据库项目。 Below is my code and you can download the whole project source code from my shared dropbox link at https://www.dropbox.com/s/aalnlwvxutr4g0f/UDF.zip?dl=1 下面是我的代码,您可以从我的共享保管箱链接下载整个项目源代码, 网址为https://www.dropbox.com/s/aalnlwvxutr4g0f/UDF.zip?dl=1
using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using Microsoft.SqlServer.Server;
public partial class UserDefinedFunctions
{
[Microsoft.SqlServer.Server.SqlFunction]
public static SqlString Greetings(SqlString name)
{
// Put your code here
return new SqlString("Hello " + (string)name);
}
}
When I try to build the solution, I got the following message. 当我尝试构建解决方案时,我收到以下消息。
------ Build started: Project: UDF, Configuration: Debug Any CPU ------ Creating a model to represent the project... Done building project "UDF.sqlproj" -- FAILED. ------ Build build:项目:UDF,配置:调试任何CPU ------创建一个代表项目的模型...完成构建项目“UDF.sqlproj” - 失败。
Build FAILED. 建立失败。 ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ========== ==========构建:0成功或最新,1失败,0跳过==========
Essentially it tells me the build failed but I can't find any specific errors. 基本上它告诉我构建失败但我找不到任何具体的错误。 Also there is nothing listed under the Error List pane. 此外,“错误列表”窗格下没有列出任何内容。 Please point me the right direction? 请指出正确的方向?
You need to install the last version of SQL Server Data Tools here is the link 您需要在此处安装最新版本的SQL Server Data Tools链接
http://msdn.microsoft.com/en-US/data/hh297027 http://msdn.microsoft.com/en-US/data/hh297027
http://go.microsoft.com/fwlink/?linkid=393521&clcid=0x409 http://go.microsoft.com/fwlink/?linkid=393521&clcid=0x409
after install restart computer and try to build again. 安装后重新启动计算机并尝试再次构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.