Error while trying to compile Log4PostSharpDemo
3 posts • Page 1 of 1
Error while trying to compile Log4PostSharpDemo
Hello,
I just discovered PostSharp and Log4PostSharp. It seems very interesting, but I can't compile the demo project, getting this message :
error: Unhandled exception: Cannot find the type 'PostSharp.Extensibility.MulticastAttribute, PostSharp.Public, Version=1.0.9.372, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7' in assembly 'PostSharp.Public, Version=1.0.10.385, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7'. See below for details.
PostSharp.CodeModel.BindingException: Cannot find the type 'PostSharp.Extensibility.MulticastAttribute, PostSharp.Public, Version=1.0.9.372, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7' in assembly 'PostSharp.Public, Version=1.0.10.385, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7'.
at PostSharp.CodeModel.AssemblyEnvelope.GetTypeDefinition(String typeName, BindingOptions bindingOptions)
at PostSharp.CodeModel.TypeRefDeclaration.GetTypeDefinition()
at PostSharp.Extensibility.Tasks.TypeHierarchyTask.IndexType(TypeDefDeclaration type)
at PostSharp.Extensibility.Tasks.CustomAttributeDictionaryTask.InternalAddAttribute(ICustomAttributeInstance attribute)
at PostSharp.Extensibility.Tasks.CustomAttributeDictionaryTask.Execute()
at PostSharp.Extensibility.Project.ExecutePhase(String phase)
at PostSharp.Extensibility.Project.Execute()
at PostSharp.Extensibility.PostSharpObject.ExecuteProjects()
at PostSharp.Extensibility.PostSharpObject.InvokeProjects(ProjectInvocation[] projectInvocations)
at PostSharp.Console.Program.InternalMain(String[] args)
C:\Program Files\PostSharp 1.0\PostSharp-1.0.targets(255,5): error : The PostSharp build step failed (exit code 12). See previous errors or the build log for details.
Done building project "Log4PostSharpDemo.csproj" -- FAILED.
Can you help me ?
Thanks a lot for your work,
Sharpmao
I just discovered PostSharp and Log4PostSharp. It seems very interesting, but I can't compile the demo project, getting this message :
error: Unhandled exception: Cannot find the type 'PostSharp.Extensibility.MulticastAttribute, PostSharp.Public, Version=1.0.9.372, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7' in assembly 'PostSharp.Public, Version=1.0.10.385, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7'. See below for details.
PostSharp.CodeModel.BindingException: Cannot find the type 'PostSharp.Extensibility.MulticastAttribute, PostSharp.Public, Version=1.0.9.372, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7' in assembly 'PostSharp.Public, Version=1.0.10.385, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7'.
at PostSharp.CodeModel.AssemblyEnvelope.GetTypeDefinition(String typeName, BindingOptions bindingOptions)
at PostSharp.CodeModel.TypeRefDeclaration.GetTypeDefinition()
at PostSharp.Extensibility.Tasks.TypeHierarchyTask.IndexType(TypeDefDeclaration type)
at PostSharp.Extensibility.Tasks.CustomAttributeDictionaryTask.InternalAddAttribute(ICustomAttributeInstance attribute)
at PostSharp.Extensibility.Tasks.CustomAttributeDictionaryTask.Execute()
at PostSharp.Extensibility.Project.ExecutePhase(String phase)
at PostSharp.Extensibility.Project.Execute()
at PostSharp.Extensibility.PostSharpObject.ExecuteProjects()
at PostSharp.Extensibility.PostSharpObject.InvokeProjects(ProjectInvocation[] projectInvocations)
at PostSharp.Console.Program.InternalMain(String[] args)
C:\Program Files\PostSharp 1.0\PostSharp-1.0.targets(255,5): error : The PostSharp build step failed (exit code 12). See previous errors or the build log for details.
Done building project "Log4PostSharpDemo.csproj" -- FAILED.
Can you help me ?
Thanks a lot for your work,
Sharpmao
- sharpmao
- Posts: 2
- Joined: Fri Jul 04, 2008 2:21 pm
- Full Name: Alain Grenier
Re: Error while trying to compile Log4PostSharpDemo
I would guess it's a matter of version. You should set the references to PostSharp as "Specific Version = False".
Gael Fraiteur, project leader
got good support? consider donating to the project.
got good support? consider donating to the project.
- gfraiteur
- Site Admin
- Posts: 673
- Joined: Tue Dec 18, 2007 3:09 pm
- Full Name: Gael Fraiteur
- Company: postsharp.org
Re: Error while trying to compile Log4PostSharpDemo
Found it,
It was a question of version, but not where I thought of it first.
Log4PostSharp source code has a "Libraries" Directory with an old version of PostSharp.Public.dll.
I just deleted it, recompiled, and it works.
Thanks,
Sharpmao
It was a question of version, but not where I thought of it first.
Log4PostSharp source code has a "Libraries" Directory with an old version of PostSharp.Public.dll.
I just deleted it, recompiled, and it works.
Thanks,
Sharpmao
- sharpmao
- Posts: 2
- Joined: Fri Jul 04, 2008 2:21 pm
- Full Name: Alain Grenier
3 posts • Page 1 of 1