Unable to build in VS - Visual Studio support for Microsoft.Build.Sql
See original GitHub issue- SqlPackage or DacFx Version: 161
- .NET Framework (Windows-only) or .NET Core: Windows
- Environment (local platform and source/target platforms):
Steps to Reproduce:
- Attempt to load/build a new sqlproj based on template 0.1.7
- Load fails
- adding this enables the build:
<TargetDatabaseSet>True</TargetDatabaseSet>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkProfile />
<ProjectGuid>{f1ee546e-2489-4a7b-9d69-7e2849143721}</ProjectGuid>
Issue Analytics
- State:
- Created 10 months ago
- Reactions:4
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Azure Devops failing to build sql server database project
I have a sql database project in Visual Studio (2019). I am trying to deploy it via azure devops. The pipeline is failing...
Read more >Not able to build Visual Studio Database Project targeting ...
We have a Visual Studio Database Project that we are trying to move to Azure SQL Database. Some of our views use AT...
Read more >.sqlproj with Deployment Contributor fails to build on ...
I'm failing to build an SSDT (.sqlproj) project on a new build server that we plan to use for our CI/CDs. This project...
Read more >Issues
Issue Type: Bug open a sql database project in 'database projects', right-click projectname and choose 'Build' => OUTPUT [ Build ] ...
Read more >SSDT not present in Visual Studio Build Tools 2017
So the problem is that when you try to build the SQL Server project with Visual Studio Build Tools 2017 15.5.1, the following...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Support for Microsoft.Build.Sql sqlprojects is planned for future Visual Studio (SSDT) releases. Reopening this item until it is shipped
I had a similar issue, and I was able to resolve this by deleting the obj folder for my project. And so, I set up the project to clean the project and to delete the obj folder before clean. It’s still a work in progress, but I landed on the code below to both build in Visual Studio 2022 and via the dotnet cli. The dotnet cli seems to build just fine without deleting the obj folder, but it wasn’t deleting the folder, so I just added ContinueOnError=“True”.
Edited code since Visual Studio 2022 didn’t seem to output the dacpac.