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

1.2.13 not working in netcoreapp3.1 #21

Closed
stonesvillage opened this issue Feb 25, 2022 · 14 comments
Closed

1.2.13 not working in netcoreapp3.1 #21

stonesvillage opened this issue Feb 25, 2022 · 14 comments
Assignees
Labels
bug Something isn't working

Comments

@stonesvillage
Copy link

Updated from v1.2.11 to v1.2.13.
Fails in Main when creating Logger:
System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.'

Downgrading to v1.2.12 works but v1.2.13 seems to be broken for netcoreapp3.1.

@seyes84
Copy link

seyes84 commented Mar 1, 2022

Yes, same for me.
.NET 5, got same error.

@SeppPenner SeppPenner self-assigned this Mar 2, 2022
@SeppPenner SeppPenner added the bug Something isn't working label Mar 2, 2022
@SeppPenner SeppPenner pinned this issue Mar 2, 2022
@SeppPenner
Copy link
Contributor

1.2.12 should be the latest version... Maybe, I accidently added 1.2.13 to NuGet while playing around with the build script. It was not intended to be published... I will provide an updated version soon, for now please stay with 1.2.12 or lower.

@SeppPenner
Copy link
Contributor

Version 1.2.14 should be there soon and fixed. I have updated the changelog with information to not use 1.2.13 as its a broken build.

@radxhunter
Copy link

Installed v1.2.14.
Fails when building the multi target app for .net5 and netcoreapp3.1
netcoreapp3.1;net5.0;net6.0

Assembly 'Serilog.Sinks.MicrosoftTeams.Alternative' with identity 'Serilog.Sinks.MicrosoftTeams.Alternative, Version=1.2.14.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Some.Business.App(netcoreapp3.1)

Downgrading to v1.2.12 works for every version, is something wrong with v1.2.14 too?

@SeppPenner
Copy link
Contributor

Installed v1.2.14. Fails when building the multi target app for .net5 and netcoreapp3.1 netcoreapp3.1;net5.0;net6.0

Assembly 'Serilog.Sinks.MicrosoftTeams.Alternative' with identity 'Serilog.Sinks.MicrosoftTeams.Alternative, Version=1.2.14.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Some.Business.App(netcoreapp3.1)

Downgrading to v1.2.12 works for every version, is something wrong with v1.2.14 too?

Version 1.2.14 should be alright. I need to investigate further.

@SeppPenner SeppPenner reopened this Apr 3, 2022
@SeppPenner
Copy link
Contributor

I have no idea yet, what's wrong there... I have updated the NuGet packages once again and made 1.2.15. Hopefully, this fixes the issue. I don't see build errors (I run the build for NetStandard2.0, NetStandard2.1, NetCore3.1, Net5.0 and Net6.0 in parallel with no issues).

Please let me know if the new version works. If not, I need to investigate with an example NetCore3.1 project, I guess :D

@SeppPenner
Copy link
Contributor

I assume that this is now fixed. If not, I will check it again. Please let me know if there are any problems.

@radxhunter
Copy link

Hi, still have got the same issue :(
image

@SeppPenner SeppPenner reopened this Apr 21, 2022
@SeppPenner
Copy link
Contributor

Ok, I will have to check it again. This seems to be related to serilog-contrib/Serilog.Sinks.Postgresql.Alternative#49 although the projects are different ones...

@SeppPenner
Copy link
Contributor

CSC : error CS1705: Assembly "Serilog.Sinks.MicrosoftTeams.Alternative" mit Identität "Serilog.Sinks.MicrosoftTeams.Alternative, Version=1.2.15.0, Culture=neutral, PublicKeyToken=null" verwendet "System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mit einer höheren Version als die referenzierte Assembly "System.Runtime" mit Identität "System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

The question is why? There is no System.Runtime, Version=4.2.2.0 in the deps.json file for NetCore3.1. The only referenced version is "System.Runtime": "4.3.0"...

@adte
Copy link

adte commented Nov 8, 2022

I also get the same error on version 1.2.20.0
In my opinion, the problem is building libraries for nuget because when I downloaded and decompiled all libraries were prepared for .netCore6, no matter if it was .net standard or .net6
image

@SeppPenner
Copy link
Contributor

Strange... I do nothing special when building the NuGet package in comparison to the others (E.g. Serilog.Sinks.AmazonS3)... If anyone has an idea, please contact me. I have already searched several times, but found no useful hints yet...

@SeppPenner
Copy link
Contributor

@augustoproiete Did you maybe see some problem like this somewhere else before?

@SeppPenner
Copy link
Contributor

I will close this issue now. The main reason is that I have absolutely no idea why this happens...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants