sql-server - 发布时Visual Studio数据库项目忽略错误

标签 sql-server visual-studio compiler-errors sql-server-data-tools database-project

我一直在尝试部署我的一个数据库项目,但收到了一些错误,例如找不到链接服务器等。但是这些错误是可以的,我想继续进行部署。

那么,有什么可以忽略的部署错误吗?

请注意,我的项目正在成功构建

最佳答案

如所述here

You can turn that prompt on/off in your Visual Studio settings:

  1. From the "Tools" menu, select "Options".
  2. In the dialog that appears, expand "Projects and Solutions", and click "Build and Run".
  3. On the right side, you'll see a combo box labeled "On Run, when build or deployment errors occur".

    • If you want to disable the message box, select either "Do not launch" or "Launch old version" (which will launch the old version automatically).
    • If you want to enable the message box, select "Prompt to launch" which will ask you each time.

VS "Build and Run" Options

Of course, as people have suggested in the comments, this means that your code has errors in it somewhere that are preventing it from compiling. You need to use the "Error List" to figure out what those errors are, and then fix them.

关于sql-server - 发布时Visual Studio数据库项目忽略错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59245323/

相关文章:

sql - 如何只更新表中的一行?

c++ - 可以得到不包含头文件目录的警告或错误

path - 无法打开包含文件 "jni.h",不存在这样的文件或目录

C-在 if-else if 部分的赋值中得到不兼容的类型

sql-server - Oracle Gateway、SQL Server 和 Application Express 的字符集问题

sql-server - 要计算为数字的字符串表达式

sql-server - T-SQL SELECT 语句作为变量并将结果放入另一个变量

visual-studio - 从 Visual Studio 的工具栏调用 exe

c# - Hololens 应用程序将不再构建 - 引用元数据文件丢失且 c-Sharp.firstpass 未找到

java - 摆脱java中的最后几个错误