Skip to content

How to know if an existing sqlproject is SDK-styled? #382

Answered by dzsquared
abceleung asked this question in Q&A
Discussion options

You must be logged in to vote

The quickest way to see if a project is an SDK-style project is to open the .sqlproj file. In Azure Data Studio there's a menu item on the project node in the projects pane for "Edit .sqlproj File" as well as the file explorer view.

If the top of the project looks similar to:

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build">
  <Sdk Name="Microsoft.Build.Sql" Version="0.1.12-preview" />

then it is an SDK-style project. The key here is that element <SDK Name="Microsoft.Build.Sql" Version="0.1.x-preview" />

Otherwise, it's an original style project.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dzsquared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants