PostSharp SDK 中断构建
PostSharp SDK breaking build
我刚搬到 Visual Studio 2015 运行 Windows 10。在此过程中,我升级到 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
已在 v4.1.24 中修复
(加一句使长度最小post)
我刚搬到 Visual Studio 2015 运行 Windows 10。在此过程中,我升级到 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
已在 v4.1.24 中修复 (加一句使长度最小post)