dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.75k stars 1.07k forks source link

Error for duplicate file with same metadata is not robust enough #20482

Open sbanni opened 3 years ago

sbanni commented 3 years ago

Due to this breaking change with PR a previously working scenario is no longer working for XAML islands scenarios.

What I am seeing is we are getting the same file from two different locations (e.g. one from obj\ and one from bin) pointing to the same destination path. In this case the file is identical but we are not checking the file before throwing the error, only the metadata.

Please see internal bug for additional binlogs/project.

sbanni commented 3 years ago

@dsplaisted FYI

marcpopMSFT commented 3 years ago

@sbanni you have a workaround by disabling the error, correct? Sarah can take a look.