-
Notifications
You must be signed in to change notification settings - Fork 4
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
unexpected compile error #6
Comments
Minimal sample to reproduce // reference: nuget:WeihanLi.Common.Logging.Serilog
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using WeihanLi.Common.Logging.Serilog;
namespace BalabalaSample;
public class Issue06Sample
{
public static async Task MainTest()
{
var serviceCollection = new ServiceCollection()
.AddLogging(builder => builder.AddSerilog())
;
await using var provider = serviceCollection.BuildServiceProvider();
provider.GetRequiredService<ILoggerFactory>()
.CreateLogger("test")
.LogInformation("Hello 1234");;
}
} |
Seemed it relates to the Created an issue on roslyn issues dotnet/sdk#31691 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version:
0.14.0+60527bb786298d0a812968d5129b802c38bf12ef
The text was updated successfully, but these errors were encountered: