dotnet / eShop

A reference .NET application implementing an eCommerce site
MIT License
4.77k stars 1.36k forks source link

[WebToolsE2E][Aspire] Building the eShop.Web solution gets some warnings: “Found conflicts between different versions of "Microsoft.EntityFrameworkCore" that could not be resolved.” #278

Open v-sherryfan opened 3 months ago

v-sherryfan commented 3 months ago

REGRESSION INFO: Also repro on Aspire 8.0.0-preview.4.24156.9

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU
  2. Install VS 17.10 Preview 3 [ Includes Aspire 8.0.0-preview.5.24201.12 and SDK 8.0.300-preview.24170.4 ]
  3. Apply NuGet dotnet-tools Feed
  4. Install Docker Desktop for Windows

REPRO STEPS

  1. Clone eShop repo
  2. Checkout the aspire-preview5 branch
  3. Update sdk version to 8.0.300-preview.24170.4 in global.json
  4. Update AspireVersion to 8.0.0-preview.5.24201.12 in Directory.Packages.props
  5. Open eShop.Web.slnf
  6. Build

ACTUAL

MSB3277 Found conflicts between different versions of "Microsoft.EntityFrameworkCore" that could not be resolved. There was a conflict between "Microsoft.EntityFrameworkCore, Version=8.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" and "Microsoft.EntityFrameworkCore, Version=8.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60". "Microsoft.EntityFrameworkCore, Version=8.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was chosen because it was primary and "Microsoft.EntityFrameworkCore, Version=8.0.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was not. References which depend on "Microsoft.EntityFrameworkCore, Version=8.0.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" image

EXPECTED

Building the eShop.Web.slnf without any warnings.

peterblazejewicz commented 2 months ago

Same on main branch (MacOS)

v-sherryfan commented 2 months ago

Verified that this issue is not reproduced on aspire-preview7 branch using VS 17.10 Preview 7 FB [include 8.0.0-preview.7.24251.11]