Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building SSDT project for with dotnet tooling (Microsoft.Build.Sql - 0.1.3-preview) #98

Closed
ben-purcell opened this issue May 4, 2022 · 3 comments
Assignees
Labels
area: build sdk Related to Microsoft.Build.Sql SDK area: ssdt Related to the use of DacFx in Visual Studio (SSDT) bug Something isn't working

Comments

@ben-purcell
Copy link

ben-purcell commented May 4, 2022

  • SqlPackage or DacFx Version: Microsoft.Build.Sql 0.1.3-preview
  • .NET Framework (Windows-only) or .NET Core: both
  • Environment (local platform and source/target platforms):
    • Windows 10
    • Visual Studio 2022 Community

Steps to Reproduce:

  1. Create a new Database Project in Visual Studio 2022
  2. Add a post deploy script
  3. Reference another file in the post deploy script - the build action should be none for the script, like so:
: .\myfile.sql
  1. So far everything should still build
  2. Add a reference to the Microsoft.Build.Sql as per https://github.com/microsoft/DacFx/tree/main/src/Microsoft.Build.Sql
<Project ...
  <Sdk Name="Microsoft.Build.Sql" Version="0.1.3-preview" />
  ...
</Project>
  1. Try to build the project - it will no longer work and you will an error:
Build error SQL70001: This statement is not recognized in this context.

Did this occur in prior versions? If not - which version(s) did it work in?
no idea

(DacFx)

@ben-purcell ben-purcell added the bug Something isn't working label May 4, 2022
@zijchen
Copy link
Member

zijchen commented May 10, 2022

Hi @ben-purcell thank you for opening this issue. Right now SDK-style database projects are only supported on the 'SQL Database Projects' extension in Azure Data Studio or VS Code. Support in SSDT will be added in a future release.

@zijchen zijchen added the area: build sdk Related to Microsoft.Build.Sql SDK label May 10, 2022
@dzsquared dzsquared added the area: ssdt Related to the use of DacFx in Visual Studio (SSDT) label Mar 25, 2023
@andrew-sumner
Copy link

It's 2 years later, when in this support for Visual Studio going to arrive?

@dzsquared
Copy link
Contributor

Consolidating into #180, as there's some workaround discussions there. We are working on the Visual Studio support for SDK-style SQL projects and will be posting updates there.

@dzsquared dzsquared closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build sdk Related to Microsoft.Build.Sql SDK area: ssdt Related to the use of DacFx in Visual Studio (SSDT) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants