-
Notifications
You must be signed in to change notification settings - Fork 46
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
SQLPackage publish is not working in linux, dacpac built with sqlproject have absolute path to referenced dacpacs #550
Comments
I added /Diagnostics and found that using rp does direct sqlpackage publish to the folder containing the dacpac, however it is appending part of the nuget path to the file name... |
this appears to be a behavior difference in the execution of sqlpackage between windows and linux, linux windows |
@JLLange Are you able to provide a repro of this, then I will investigate |
This looks related: microsoft/DacFx#329 |
I agree, the issue appears related. Fixing it might be enough to fix the problem I am seeing too. I have a MS Build SDK Sql project that references another DACPAC. |
@JLLange Which MsBuild.SDK.SqlProj version?? (look at your .csproj files) |
Sql150 |
No, the first line in your .csproj file, pls |
sorry... |
Latest version is 2.7.2! 2.5.0 is not supported any longer |
We are actively updating them. Do you think the issue is fixed? |
Not sure, but great that you are investigating. (You can always downgrade if required) |
i am running into similar issue when using master dacpac on mac
|
sqlproj used below
|
We used do this previously
|
@bheemvennapureddy Please create a new issue with a full runnable repro project attached. |
@JLLange Any news? |
We have a story to update one of the project's that cause the issue, but it might be a sprint or two before we get to it. |
@JLLange any news? |
sorry not yet, still on the to do list and not forgotten about |
Great to hear, I'll keep an eye out for it, thank you. |
Hello,
I am trying to use sqlpackage publish to deploy a dacpac created by MSBuild.Sdk.SqlProj and having issues with the absolute path.
details...
I have a csProj sql project that references another DACPAC as a nuget.
this is the nuget reference line from the project
<PackageReference Include="SomeDBDacpacPackageName" Version="5.84.0" DacpacName="SomeDB"></PackageReference>
I copy the two dacpacs from the bin folder after building the cs project file.
The files are coppied into a docker linux session and I cd to that directory and call sqlpackage.
/tmp/sqlpackage/sqlpackage /Action:Publish /TargetServerName:localhost /TargetDatabaseName:SomeDB /TargetUser:TargetUser /TargetPassword:TargetPassword /SourceFile:My.DatabaseDacpac.dacpac /p:ScriptDatabaseOptions=false /TargetTrustServerCertificate:true /rp:/tmp/dacpacs/EDB/Libraries/SomeDb.dacpac
I have tried with and without /rp, doesn't help.
#9 14.12 Initializing deployment (Start)
#9 14.82 *** No file was supplied for reference SomeDB.dacpac; deployment might fail. When package was created, the original referenced file was located C:\Users\UserName.nuget\packages\SomeDBDacpacPackageName\5.84.0/tools/SomeDB.dacpac.
#9 14.82 Initializing deployment (Failed)
#9 15.83 *** An error occurred during deployment plan generation. Deployment cannot continue.
#9 15.83 Error SQL0: The reference to external elements from the source named 'SomeDB.dacpac' could not be resolved, because no such source is loaded. fail. When package was created, the original referenced file was located C:\Users\UserName.nuget\packages\SomeDBDacpacPackageName\5.84.0/tools/SomeDB.dacpac.
#9 14.02 Initializing deployment (Failed)
#9 15.24 *** An error occurred during deployment plan generation. Deployment cannot continue.
#9 15.24 Error SQL0: The refere
Is there anyway to get the csproj to build with relative paths?
has anyone successfully deployed in linux with a dacpac that references another dacpac? If so how?
Thanks for your time
The text was updated successfully, but these errors were encountered: