-
Notifications
You must be signed in to change notification settings - Fork 22
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
Dotnet build issue with system database reference. #83
Comments
@DavidWiseman Thanks for trying out the MIcrosoft.Build.Sql SDK and reporting this! I added this error to the ReadMe. $(DacPacRootPath) is a variable with the location of the system dacpacs that SSDT passes in when building a project, so when building from the command line, that will need to be passed in like /p:DacPacRootPath="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE". There's currently support for SDK-style sql projects in the Azure Data Studio insiders build with the sql database projects extension installed. Creating new SDK-style projects(empty and from a database), adding system database references, and building SDK-style projects are already supported in ADS if you're interested in trying it out. |
@kisantia |
Table designer is in preview in the latest ADS release and integration with sql projects is coming in the future. Model validation is not currently available in ADS. |
Hi. Thank you for the quick reply to my issue - sorry it's taken a while to respond back. Passing the correct path from the commandline fixes the issue. 😊 Thanks, David |
@ErikEJ to be clear, this wasn't to suggest that Visual won't get support for the SDK-style project file, but currently an optional workaround is to use Azure Data Studio insiders (or the command line option shared above). |
Been spinning my wheels trying to create a dacpac i the context of a GitHub (Linux) runner ... I have Azure Data Studio with the latest Extension for using packages.... Is there a clean sample? [for example, anything that brings up ("C:\Program Files..." is clearly not intended for Ubuntu... note: A Microsoft supported Extension on the GitHub Market Place for this would be IDEAL <> |
@dcorbin-wintellect we're working on https://github.com/azure/sql-action, which has limited support for SDK-style project build (+deploy). At the moment the build support is in combination with deployment, but there are certainly scenarios where someone would want to hold off on deployment. |
Thank you. It's not quite what I'm looking for but could be useful for some other stuff👍 |
I see you opened an issue there - thank you! Will continue to discuss there 😄 edit: oh boy, I have not had enough coffee yet. |
We just released 3 system dacpac Nuget packages that can be referenced via <PackageReference Include="Microsoft.SqlServer.Dacpacs" Version="160.0.0" /> Available packages are:
You can read more about it here: https://learn.microsoft.com/en-us/sql/azure-data-studio/extensions/sql-database-project-extension-sdk-style-projects?view=sql-server-ver16#package-references |
@zijchen I see that it's possible to specify a name of the Asking, since I'm not able to fix the warning |
@uladz-zubrycki When no <ItemGroup>
<PackageReference Include="Microsoft.SqlServer.Dacpacs">
<GeneratePathProperty>true</GeneratePathProperty>
<DacpacName>master</DacpacName>
</PackageReference>
<ArtifactReference Include="$(PkgMicrosoft_SqlServer_Dacpacs)/tools/msdb.dacpac">
<DatabaseVariableLiteralValue>msdb</DatabaseVariableLiteralValue>
</ArtifactReference>
</ItemGroup> |
@zijchen Thank you! Incredibly helpful. Will give it a try. |
Steps to Reproduce:
dotnet build /p:NetCoreBuild=true
dotnet build /p:NetCoreBuild=true
Did this occur in prior versions? If not - which version(s) did it work in?
Not applicable to prior version
The text was updated successfully, but these errors were encountered: