When I try to run a project or solution i get the following error message in my build drop down window in the details. how can I resolve this. Ive updated my SQL server SSMS to the latest update.

Joshua Thomas 15 Reputation points
2023-12-11T19:23:55.44+00:00
 Build started: Project: Database1, Configuration: Debug Any CPU ------
		Database1 -> C:\Users\jfrie\Desktop\SSIS TASK\Database1\bin\Debug\Database1.dll
		Database1 -> C:\Users\jfrie\Desktop\SSIS TASK\Database1\bin\Debug\Database1.dacpac
------ Deploy started: Project: Database1, Configuration: Debug Any CPU ------
C:\Users\jfrie\Desktop\SSIS TASK\Database1\bin\Debug\Database1.sql: Error:  Deploy72002: A project which specifies SQL Server 2022 or Azure SQL Database Managed Instance as the target platform cannot be published to SQL Server 2019.
Done building project "Database1.sqlproj" -- FAILED.

Build FAILED.
Developer technologies | Visual Studio | Other
{count} vote

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-12-12T10:24:27.46+00:00

    Hi @Joshua Thomas, 

    Welcome to Microsoft Q&A! 

    Please right-click your project in the Solution Explorer > Properties > Project Settings > change the project’s Target platform to SQL Server 2019.

    Then, rebuild the project. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.