-
Notifications
You must be signed in to change notification settings - Fork 588
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
Add support for publishing profiles to Fake.Sql.DacPac.deployDb #2321
Comments
I will take care of this with pleasure. |
@kmadof Yes, a PR is very welcome ;) |
Can someone help me with testing? I followed testing modules steps: http://fake.build/contributing.html but paket takes nuget server package instead of local source pakage. Before I run fake build I removed .fake folder and cleaned nuget cache (dotnet nuget locals all --clear) And this is how my nuget import section looks like #r "paket:
source ../FAKE/src/app/Fake.Sql.DacPac/bin/Debug
source https://api.nuget.org/v3/index.json
nuget Fake.IO.FileSystem
nuget Fake.Dotnet.MSBuild
nuget Fake.BuildServer.TeamCity
nuget Fake.Core.Target
nuget Fake.Sql.DacPac == 1.0.0 //" When I check folder ../FAKE/src/app/Fake.Sql.DacPac/bin/Debug from build.fsx I see that I have there nuget package What am I doing wrong? |
Have you deleted
|
You're right, After removing .fsx.lock file I got proper nuget package. |
There has not been any activity in this issue for the last 3 months so it will be closed in 14 days if there is no activity. |
@matthid can we remove stale label fromt this issue. Right now I'm testing changes moved to a new module. I will commit them today or tomorrow. |
I thought the bot would take care of this automatically as long as there is activity |
Description
Fake.Sql.DacPac.deployDb doesn't support Profile parameter of sqlpackage.exe.
Profile parameter specifies the file path to a DAC Publish Profile. The profile defines a collection of properties and variables to use when generating outputs.
Expected behavior
I would expect to override default deployment arguments by those given in profile file.
Actual behavior
I tried to use AdditionalSqlPackageProperties
It generated me such execution:
Starting target 'DeployLocalDbWithProfile' "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\150\sqlpackage.exe" /Action:Publish /SourceFile:"./build/Notitia.dacpac" /TargetConnectionString:"" /p:BlockOnPossibleDataLoss=true /p:DropObjectsNotInSource=false /p:CommandTimeout=120 /p:CreateNewDatabase=false /p:Profile=C:/Dev/github/continuo/Profiles/Notitia.publish.xml (In: false, Out: true, Err: true)
for which I got:
However if we chagne a bit execution above:
it works.
Related information
The text was updated successfully, but these errors were encountered: