fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.

Home Page:https://fullstackhero.net/dotnet-webapi-boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

wibu009 opened this issue · 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).

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.

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

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.

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

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

image

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

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

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