dotnet-starter-kit icon indicating copy to clipboard operation
dotnet-starter-kit copied to clipboard

[BUG V2] Error NU1107: Version conflict detected for Microsoft.CodeAnalysis.Common

Open wibu009 opened this issue 2 years ago • 7 comments

Install/reference Microsoft.CodeAnalysis.Common 4.7.0 directly to project FSH.WebApi.Server to resolve this issue. FSH.WebApi.Server -> FSH.Framework.Infrastructure -> Carter 8.2.1 -> Carter.Analyzers 8.2.1 -> Microsoft.CodeAnalysis.CSharp 4.7.0 -> Microsoft.CodeAnalysis.Common (= 4.7.0) FSH.WebApi.Server -> Microsoft.EntityFrameworkCore.Design 8.0.6 -> Microsoft.CodeAnalysis.CSharp.Workspaces 4.5.0 -> Microsoft.CodeAnalysis.Common (= 4.5.0).

wibu009 avatar Jun 19 '24 04:06 wibu009

Are you still facing this issue on v2 branch? I was facing this earlier, but there was new package released by Carter to address this. I don't see this issue occurring again. And, directly adding the carter package to API is something i wouldn't do for now, since there are architecture concerns for modularity.

iammukeshm avatar Jun 19 '24 04:06 iammukeshm

Yes, I have this problem on v2. Ok, I will try updating the Carter package again to see if this problem is resolved or not

wibu009 avatar Jun 19 '24 04:06 wibu009

No, I actually meant that the packages are already up-to-date in the repository. I don't see any build errors happening both in my local as well as the github cicd pipeline.

iammukeshm avatar Jun 19 '24 05:06 iammukeshm

I tried both on my PC and laptop but still get the same error. I've performed a git fetch and merge to update my local repository with the latest changes from this repository since yesterday image

wibu009 avatar Jun 19 '24 06:06 wibu009

Not Sure, here is a screenshot of my build process.

image

Maybe try a clean, and build? Or try to build from the console.

iammukeshm avatar Jun 19 '24 06:06 iammukeshm

Also in a couple of days, I am planning to remove Carter as such. Have to decide. Will keep you posted.

iammukeshm avatar Jun 19 '24 06:06 iammukeshm

Okay, I ran the command and it didn't report any errors. It appears the problem lies with Rider's build system. I'm not as familiar with VS。 image

wibu009 avatar Jun 19 '24 07:06 wibu009