我刚搬到了运行在Windows 10上的Visual 2015。
我在某些PostSharp SDK中得到了以下错误。所讨论的类型完全相同。有人看到这个了吗?或者知道怎么解决它?
Severity Code Description Project File Line
Error Unhandled exception (4.1.21.0, postsharp.srv.4.0-x86.exe, CLR 4.0.30319.393295, Release): PostSharp.Sdk.CodeModel.BindingException: A field name 'Doc' was found in the type 'MacroView.VSTO.Word.Precedent.Assembler`1<T>', but its type is 'Microsoft.Office.Interop.Word.Document' instead of 'Microsoft.Office.Interop.Word.Document'.
at PostSharp.Sdk.CodeModel.Collections.FieldDefDeclarationCollection.GetField(String name, ITypeSignature type, BindingOptions bindingOptions)
at PostSharp.Sdk.CodeModel.FieldRefDeclaration.GetFieldDefinition(BindingOptions bindingOptions)
at PostSharp.Sdk.Extensibility.Tasks.IndexGenericInstancesTask.Execute()
at PostSharp.Sdk.Extensibility.Project.ExecutePhase(String phase)
at PostSharp.Sdk.Extensibility.Project.Execute()
at PostSharp.Hosting.PostSharpObject.ExecuteProjects()
at PostSharp.Hosting.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation). MacroView.DocumentAssembler.Word C:\Repos\All MacroView Projects\MacroView.DocumentAssembler\MacroView.DocumentAssembler.Word\MacroView.DocumentAssembler.Word.csproj 发布于 2015-09-17 14:02:53
修正了v4.1.24 (额外的句子,以使最低长度的员额)
https://stackoverflow.com/questions/32044899
复制相似问题