我刚刚转到在Windows 10上运行的Visual Studio 2015.在此过程中,我升级到PostSharp 4.1.21
我在某些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
答案 0 :(得分:0)
已在v4.1.24中修复 (增加最短篇幅的额外句子)