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

[Bug]: BuildCheck - building the solution with two projects that don't share the same output/intermediate output path has BC0101 warning #10407

Closed
GangWang01 opened this issue Jul 18, 2024 · 2 comments
Assignees
Labels
Area: BuildCheck bug Priority:2 Work that is important, but not critical for the release triaged

Comments

@GangWang01
Copy link
Member

GangWang01 commented Jul 18, 2024

BCTest_Repro.zip has the solution to reproduce the issue, as well as build binary log in the zip file. The solution has two simple library projects with default setting that locates build output at the project folder respectively. Build should have no BC0101 warning, but build result has the BC0101 warnings telling the projects share the same output path and intermediate output path which are not true.

From part of build log below, C:\ws\test\BuildCheck\TestSln\BCTest_Repro is the folder where the solution is. It looks like something wrong with the base output path of the projects during build check.

Build succeeded.

  MSBUILD : warning BC0101: https://aka.ms/buildcheck/codes#BC0101 - Projects ClassLibrary2.csproj and ClassLibrary1.cs
proj have conflicting output paths: C:\ws\test\BuildCheck\TestSln\BCTest_Repro\bin\Debug\net8.0\.
  MSBUILD : warning BC0101: https://aka.ms/buildcheck/codes#BC0101 - Projects ClassLibrary2.csproj and ClassLibrary1.cs
proj have conflicting output paths: C:\ws\test\BuildCheck\TestSln\BCTest_Repro\obj\Debug\net8.0\.

    2 Warning(s)
    0 Error(s)

Time Elapsed 00:00:03.84
@GangWang01 GangWang01 changed the title [Bug]: BuildCheck - building the solution with two projects that don't share the same output path has BC0101 warning [Bug]: BuildCheck - building the solution with two projects that don't share the same output/intermediate output path has BC0101 warning Jul 23, 2024
@AR-May AR-May added the triaged label Jul 23, 2024
@f-alizada f-alizada added the Priority:2 Work that is important, but not critical for the release label Jul 24, 2024
@JanKrivanek JanKrivanek assigned AR-May and GangWang01 and unassigned AR-May Aug 5, 2024
@AR-May
Copy link
Member

AR-May commented Aug 5, 2024

@GangWang01 this probably should be fixed by #10472 (I saw similar extra warnings in another repo and fixed it).
Could you please verify that and close the issue if it is indeed true?

@GangWang01
Copy link
Member Author

Yes, I verified with latest main. The issue was not reproed. It's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: BuildCheck bug Priority:2 Work that is important, but not critical for the release triaged
Projects
None yet
Development

No branches or pull requests

3 participants