CancellationTokenSource cancelSource = new CancellationTokenSource(60000);
CancellationToken token = cancelSource.Token;
credential = await GoogleWebAuthorizationBroker.AuthorizeAsync(uri,
new[] { YouTubeService.Scope.Youtube },
"user",
token);
但当我改为发布模式时,代码异常,如打击:
nSystem.AggregateException:AggregateException_ctor_DefaultMessage ---> System.Reflection.MissingMetadataException:Reflection_InsufficientMetadata_NoHelpAvailable:EETypeRva:0x00018688。有关更多信息
有人知道原因吗?我在google上发现有人说是因为.net Native Complie问题,对吗?