Skip to content
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

Support UseArtifactsOutput in .NET 8 #446

Open
benjamin-hodgson opened this issue May 17, 2024 · 0 comments
Open

Support UseArtifactsOutput in .NET 8 #446

benjamin-hodgson opened this issue May 17, 2024 · 0 comments
Labels
area: build sdk Related to Microsoft.Build.Sql SDK enhancement New feature or request

Comments

@benjamin-hodgson
Copy link

I have a repository with two files: a Directory.Build.props with an opt-in for the new UseArtifactsOutput feature in .NET 8,

<!-- Directory.Build.props -->

<Project>
    <PropertyGroup>
        <UseArtifactsOutput>true</UseArtifactsOutput>
    </PropertyGroup>
</Project>

and a sqlproj file in a subfolder:

<!-- MyDb/MyDb.sqlproj -->
<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>
</Project>

When I build the sqlproj (using dotnet build MyDb), the output dacpac goes into the old-style output location, MyDb/bin/Debug/MyDb.dacpac. It should go into the artifacts folder (ie artifacts/bin/MyDb/Debug/MyDb.dacpac) instead.

Thanks!

@zijchen zijchen added enhancement New feature or request area: build sdk Related to Microsoft.Build.Sql SDK labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build sdk Related to Microsoft.Build.Sql SDK enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants