Is there anything known about support for .NET 6 f...
# dotnet
q
Is there anything known about support for .NET 6 for the Pulumi .NET SDK?
👍 1
t
We will definitely support it! Any specific question you are curious about?
q
Mostly when. 🙂 We're migrating our code over to .NET 6 RC now and Pulumi is the one project that we have to keep in Core 3.1.
t
Around GA time. Are you running into problems with the RC?
w
I took it for a spin and it blew up. I suspect we need to update the grpc dependencies again:
Copy code
user@dd63097ffaf0:~/gemini$ g deploy alpha
[04:37:04 INF] Deploying stacks
[04:37:04 INF] Deploying pharos/aws-vpc/alpha
[04:37:06 DBG] Installing plugins
[04:37:13 DBG] Setting config
[04:37:14 DBG] Previewing stack
[04:37:14 INF] Deployed pharos/aws-vpc/alpha in 00:00:10
[04:37:14 INF] Deployed stacks in 00:00:10
System.ArgumentException: Generic implementation type 'Grpc.AspNetCore.Server.Internal.DefaultGrpcServiceActivator`1' has a DynamicallyAccessedMembers attribute applied to a generic argument type, but the service type
'Grpc.AspNetCore.Server.IGrpcServiceActivator`1' doesn't have a matching DynamicallyAccessedMembers attribute on its generic argument type.
  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.ValidateTrimmingAnnotations(Type , Type[] , Type , Type[] )
  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory.Populate()
  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteFactory..ctor(ICollection`1 )
  at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 , ServiceProviderOptions )
  at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection , ServiceProviderOptions )
  at Microsoft.Extensions.DependencyInjection.DefaultServiceProviderFactory.CreateServiceProvider(IServiceCollection )
  at Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter`1.CreateServiceProvider(Object )
  at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
  at Microsoft.Extensions.Hosting.HostBuilder.Build()
  at Pulumi.Automation.WorkspaceStack.InlineLanguageHost..ctor(PulumiFn program, ILogger logger, CancellationToken cancellationToken)
  at Pulumi.Automation.WorkspaceStack.PreviewAsync(PreviewOptions options, CancellationToken cancellationToken)
  at Pulumi.Automation.WorkspaceStack.PreviewAsync(PreviewOptions options, CancellationToken cancellationToken)
  at Pharos.Gemini.DeployCommand.OnExecuteAsync(CommandContext context, Settings settings) in DeployCommand.cs:198
  at Pharos.Gemini.AsyncCommandBase`1.ExecuteAsync(CommandContext context, TSettings settings) in AsyncCommandBase.cs:23
Also, we should really move off the deprecated client to the new client that does not use native dependencies.