当我尝试将我的代码优先项目发布到 Azure 时,它向我显示此警告:
Warning : A project which specifies SQL Server 2012 as the target platform may experience compatibility issues with Microsoft Azure SQL Database v12.
如何更改目标平台?
我用谷歌搜索过,但我发现的是数据项目等的 sql 项目。
最佳答案
@David Browne 的链接指向答案,直接引用他的链接:
To change a project’s target platform
Right-click your project in Solution Explorer and select Properties. Click the Project Settings tab on the left to access the Project Settings property page.
The Target platform dropdown list in this page contains all the supported SQL Server platforms that a database project can be published to. For this procedure, select SQL Azure.
当然,对于这个特定的警告,您需要选择:
Microsoft Azure SQL 数据库 V12
关于c# - 将 SQL Server 2012 指定为目标平台的项目可能会遇到与 Microsoft Azure SQL 数据库 v12 的兼容性问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46181341/