Skip to content

$(TargetPath) should be the output .dacpac file #450

Open

Description

<Project Sdk="Microsoft.Build.Sql/0.1.15-preview">
    <PropertyGroup>
        <Name>MyDb</Name>
        <DSP>Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider</DSP>
        <ModelCollation>1033, CI</ModelCollation>
    </PropertyGroup>

    <Target Name="PrintTargetPath" AfterTargets="AfterBuild">
        <Message Importance="high" Text="$(TargetPath)" />
    </Target>
</Project>

The PrintTargetPath target outputs D:\test\MyDb\bin\Debug\MyDb.dll; I would like $(TargetPath) to refer to the output .dacpac file. I have code elsewhere which expects $(TargetPath) to point to the main build output of the project (which logically should be the dacpac in my opinion).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area: build sdkRelated to Microsoft.Build.Sql SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions