Azure devops 在Azure Devops上找不到SQL Server CE、类型或命名空间

Azure devops 在Azure Devops上找不到SQL Server CE、类型或命名空间,azure-devops,sql-server-ce,Azure Devops,Sql Server Ce,命名空间“System.Data”中不存在类型或命名空间名称“SqlServerCe” 本地生成,不会在Azure Devops上生成 这可能是故意的?该应用程序部署在本地公司网络上,不供公众使用 同样,本地生成和所有引用都是正确的,否则将正常工作。您必须在生成服务器上安装SQL Compact运行时作为生成的一部分,显然默认情况下不会安装它: 对于SQL Compact 3.5,请使用: msiexec /i %Build_SourcesDirectory%\tools\SSCERuntime

命名空间“System.Data”中不存在类型或命名空间名称“SqlServerCe”

本地生成,不会在Azure Devops上生成

这可能是故意的?该应用程序部署在本地公司网络上,不供公众使用


同样,本地生成和所有引用都是正确的,否则将正常工作。

您必须在生成服务器上安装SQL Compact运行时作为生成的一部分,显然默认情况下不会安装它:

对于SQL Compact 3.5,请使用:

msiexec /i %Build_SourcesDirectory%\tools\SSCERuntime_x86-ENU.msi /quiet /qn

msiexec /i %Build_SourcesDirectory%\tools\SSCERuntime_x64-ENU.msi /quiet /qn
对于SQL Compact 4.0,请使用:

 %Build_SourcesDirectory%\tools\SSCERuntime_x64-ENU.exe /quiet /qn

在azure-pipelines.yml中试试这个

steps:
- script: msiexec /i %Build_SourcesDirectory%\YourFolder\Driver\3.5.8109.0\SSCERuntime-ENU_x86.msi /quiet /qn 
  displayName: install SSCERuntime-ENU_x86.msi
- script: msiexec /i %Build_SourcesDirectory%\YourFolder\Driver\3.5.8109.0\SSCERuntime-ENU_x64.msi /quiet /qn
  displayName: install SSCERuntime-ENU_x64.msi

我觉得这是一个不完整的答案。不是每个人都知道如何使用该命令行。我不。