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

Serilog.AspNetCore v8.0.0 but assembly version 0.0.0.0 #356

Closed
thohng opened this issue Jan 12, 2024 · 3 comments · Fixed by #357
Closed

Serilog.AspNetCore v8.0.0 but assembly version 0.0.0.0 #356

thohng opened this issue Jan 12, 2024 · 3 comments · Fixed by #357
Labels

Comments

@thohng
Copy link

thohng commented Jan 12, 2024

Serilog.AspNetCore v8.0.0 but assembly version 0.0.0.0

Description
Got warning during build:

C:\Program Files\dotnet\sdk\8.0.101\Microsoft.Common.CurrentVersion.targets(2382,5): warning MSB3277: Found conflicts between different versions of "Serilog.AspNetCore" that could not be resolved. [C:\....\samples\SampleWorkerService\SampleWorkerService.csproj::TargetFramework=net6.0]
C:\Program Files\dotnet\sdk\8.0.101\Microsoft.Common.CurrentVersion.targets(2382,5): warning MSB3277: There was a conflict between "Serilog.AspNetCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10" and "Serilog.AspNetCore, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10". [C:\W

Reproduction
dotnet build

Expected behavior
Assembly version should corresponding to package version

Relevant package, tooling and runtime versions
dotnet SDK 8.0.101

Additional context
Inspecting the assembly version

image

@thohng thohng added the bug label Jan 12, 2024
@bartelink
Copy link
Member

Triaging:

Ultimately the AssemblyVersion is pretty academic for .NET Core - is this causing a specific issue?

@nblumhardt
Copy link
Member

Life still gets confusing when assembly versions are off; I'll have a dig and see what I can figure out 🧐

@thohng
Copy link
Author

thohng commented Jan 19, 2024

Confirm version Serilog.AspNetCore@v8.0.1 fixes the issue

Previously, .NET 6.0 or .NET 7.0 may got issue with Serilog.AspNetCore@v8.0.0 on runtime
.NET 6.0 and Serilog.AspNetCore@v8.0.0
image

.NET 7.0 and Serilog.AspNetCore@v8.0.0
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants