项目构建期间出错:SQL46010:system_time 附近的语法不正确

Error during project build: SQL46010: Incorrect syntax near system_time

我正在尝试从 SQL Server 2016 中创建的数据库在 MS Visual Studio 2015 中构建项目。

在项目构建过程中出现错误:

SQL46010: Incorrect syntax near system_time

代码中有一部分使用了临时表的 system_time 特性,例如:

SELECT 
    'actual' tbl, * 
INTO 
    #my_table
FROM
    my_table
FOR system_time AS OF @dt

并且 Visual Studio 无法将 system_time 识别为有效语法。

@dtdatetime2 数据类型。

当然可以在 SSMS 2016 中使用。

COMPATIBILITY_LEVEL 设置为 130 没有帮助

请帮助解决所描述的问题

额外安装 SSDT 后已解决 - 现在所有错误都消失了