-
Notifications
You must be signed in to change notification settings - Fork 209
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
Self contained single executable publishing fails. #285
Comments
What is your TFM in csproj? |
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> |
Looking at your error output I think that this is caused by |
sorry but that's not an option for me for now I will have to step away from this package and find an alternative way. if someone fixes this in the future would be nice if not u can close this but this is a real issue and only happens with the information given in this issue. |
Then just do what compiler says - add newer dependencies explicitly. |
Or even simpler - suppress NU1605 warning/error https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1605 It seems that you force |
@sungam3r, actually that is what I am going to give a try and to a full regression testing I will treat NU1605 as warning not error and see how it goes. |
Looks similar to this issue. |
@skomis-mm thank you I will give it a try for sure and will report back. |
Aiming to fix this with #287 |
@rati-openkey You can add this to your .proj file and then publish should work. This has been issue for very long time.
|
Version 5.0.0-dev-00259 of Serilog.AspNetCore should also fix this. If anyone has a chance to test it and confirm - we can push this out as a stable release. Thanks! |
Oh I didnt have the pre-release packages checked in, so I didnt see it. I have updated the package and now it publish without errors. |
Excellent, thanks @FeeSaver 👍 |
Not able to run a full regression for sure but the publishing seems to be working. |
Description
Whenever I try to publish a single executable from from Visual studio exception is being thrown.
Reproduction
create any empty asp.net core minimal API project ant reference this package, try to publish as self contained, a single executable
Expected behavior
Publishing succeeds.
Relevant package, tooling and runtime versions
Visual Studio 2022 (v17.0.5) Net 6.0 LTS
Additional context
The text was updated successfully, but these errors were encountered: