microsoft / microsoft/DacFx

MSB4011 building with 2.0.0-preview.1

Open
#623 7 comments 1 reaction 1 assignee Claimed by @zijchen View on GitHub
area: build sdk area: ssdt bug
Dominant language
C#
Stars
460
Forks
29
Avg merge
4d 9h
Merged PRs (30d)
7

Description

**Steps to Reproduce:**

1. Create a simple project targeting Microsoft.Sql.Build 2.0.0-preview.1 ([attached](https://github.com/user-attachments/files/19952816/Database.zip)).
2. Build the project.
3. Observer the warnings:
`
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\arm64\Microsoft.CSharp.targets(32,3): warning MSB4011: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\arm64\Microsoft.Managed.Before.targets" cannot be imported again. It was already imported at "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\arm64\Microsoft.Managed.targets (10,3)". This is most likely a build authoring error. This subsequent import will be ignored. [Database.sqlproj]`

**Did this occur in prior versions? If not - which version(s) did it work in?**
No warnings in 1.0.0.

(DacFx/SqlPackage/SSMS/Azure Data Studio)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.