Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Contributor DLL in DACPAC package folder does not load automatically #41

@HamsterExAstris

Description

@HamsterExAstris

I see from #25 that DacFX should support automatically loading contributor DLLs from the same directory as the DACPAC. However, I have not been able to get that to work.

I can successfully get the third method introduced in that issue - specifying the path as a parameter to sqlpackage.exe - to work.

Example command line that works:

sqlpackage /Action:Publish /Profile:Database.publish.xml /TargetDatabaseName:Northwind /TargetServerName:MyDatabaseServer /p:AdditionalDeploymentContributors=CompanyName.DeploymentFilterContributor /SourceFile:Database.dacpac /p:AdditionalDeploymentContributorPaths=D:\SsdtTesting

My DACPAC file is in D:\SsdtTesting, with the contributor DLL alongside it. The above works as expected. But leaving off that last parameter causes it to fail:

*** An error occurred during deployment plan generation. Deployment cannot continue.
Error SQL0: Required contributor with id 'InternalApps.DeploymentFilterContributor' could not be loaded.

This is with a Windows (non-.NET Core) install of DacFX 18.3.1 (since that's the version currently installed on Microsoft's hosted pipeline agents, my eventual target).

Please let me know if there's any more information I can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions