Projects architecture is x86, my develop machine is x64, this is what is get in compile time:
Error 23 Unhandled exception (2.0.5.1207, 64 bit, CLR 4.0, Release): PostSharp.CodeModel.AssemblyLoadException: Error while loading the assembly "werp.model.models, version=1.0.3796.25622, culture=neutral, publickeytoken=89a48972aafe8afe": Cannot find an assembly named 'Werp.Model.Models, Version=1.0.3796.25622, Culture=neutral, PublicKeyToken=89a48972aafe8afe'.
===== Start of PostSharp Assembly Binder ===========================
LOG: Finding the assembly with binding identity 'werp.model.models, version=1.0.3796.25622, culture=neutral, publickeytoken=89a48972aafe8afe'.
LOG: Looking in GAC for Werp.Model.Models, Version=1.0.3796.25622, Culture=neutral, PublicKeyToken=89a48972aafe8afe, processorArchitecture=amd64.
LOG: Looking in GAC for Werp.Model.Models, Version=1.0.3796.25622, Culture=neutral, PublicKeyToken=89a48972aafe8afe, processorArchitecture=msil.
LOG: Looking in GAC for Werp.Model.Models, Version=1.0.3796.25622, Culture=neutral, PublicKeyToken=89a48972aafe8afe.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Model.Models\bin\Debug\Werp.Model.Models.dll' because this file was explicitly added to the search path.
LOG: (ClrHost) GetAssemblyName: {D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Model.Models\bin\Debug\Werp.Model.Models.dll}
LOG: File 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Model.Models\bin\Debug\Werp.Model.Models.dll' has identity 'werp.model.models, version=1.0.3796.25622, culture=neutral, publickeytoken=89a48972aafe8afe, processorarchitecture=x86'.
LOG: This file targets a platform that is not compatible with the current process.
LOG: Probing location 'C:\Program Files (x86)\PostSharp 2.0\Release\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\PostSharp 2.0\Release\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'C:\Program Files (x86)\PostSharp 2.0\Release\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\PostSharp 2.0\Release\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.dll' because this directory is in the search path.
LOG: (ClrHost) GetAssemblyName: {D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.dll}
LOG: File 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.dll' has identity 'werp.model.models, version=1.0.3796.25622, culture=neutral, publickeytoken=89a48972aafe8afe, processorarchitecture=x86'.
LOG: This file targets a platform that is not compatible with the current process.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Before-PostSharp\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Before-PostSharp\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Before-PostSharp\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Before-PostSharp\Werp.Model.Models.dll' could not be found.
LOG: The assembly 'Werp.Model.Models' was not found.
LOG: Loading assembly {Werp.Model.Models}.
LOG: NativeDotNet20Platform.LoadAssemblyFromName: Werp.Model.Models.
LOG: Assembly 'Werp.Model.Models' is not yet loaded in the AppDomain.
LOG: Finding the assembly with binding identity 'werp.model.models, version=1.0.3796.25622, culture=neutral, publickeytoken=89a48972aafe8afe'.
LOG: Looking in GAC for Werp.Model.Models, Version=1.0.3796.25622, Culture=neutral, PublicKeyToken=89a48972aafe8afe, processorArchitecture=amd64.
LOG: Looking in GAC for Werp.Model.Models, Version=1.0.3796.25622, Culture=neutral, PublicKeyToken=89a48972aafe8afe, processorArchitecture=msil.
LOG: Looking in GAC for Werp.Model.Models, Version=1.0.3796.25622, Culture=neutral, PublicKeyToken=89a48972aafe8afe.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Model.Models\bin\Debug\Werp.Model.Models.dll' because this file was explicitly added to the search path.
LOG: (ClrHost) GetAssemblyName: {D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Model.Models\bin\Debug\Werp.Model.Models.dll}
LOG: File 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Model.Models\bin\Debug\Werp.Model.Models.dll' has identity 'werp.model.models, version=1.0.3796.25622, culture=neutral, publickeytoken=89a48972aafe8afe, processorarchitecture=x86'.
LOG: This file targets a platform that is not compatible with the current process.
LOG: Probing location 'C:\Program Files (x86)\PostSharp 2.0\Release\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\PostSharp 2.0\Release\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'C:\Program Files (x86)\PostSharp 2.0\Release\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\PostSharp 2.0\Release\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.dll' because this directory is in the search path.
LOG: (ClrHost) GetAssemblyName: {D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.dll}
LOG: File 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\bin\Debug\Werp.Model.Models.dll' has identity 'werp.model.models, version=1.0.3796.25622, culture=neutral, publickeytoken=89a48972aafe8afe, processorarchitecture=x86'.
LOG: This file targets a platform that is not compatible with the current process.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\DataObjects.Net\Bin\Latest\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Werp.Model.Models.dll' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Before-PostSharp\Werp.Model.Models.exe' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Before-PostSharp\Werp.Model.Models.exe' could not be found.
LOG: Probing location 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Before-PostSharp\Werp.Model.Models.dll' because this directory is in the search path.
LOG: The file 'D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\obj\Debug\Before-PostSharp\Werp.Model.Models.dll' could not be found.
LOG: The assembly 'Werp.Model.Models' was not found.
LOG: AssemblyLoadException: Cannot find an assembly named 'Werp.Model.Models, Version=1.0.3796.25622, Culture=neutral, PublicKeyToken=89a48972aafe8afe'.
LOG: Loaded: 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' from 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll'.
LOG: Loaded: 'PostSharp.Hosting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7' from 'C:\Program Files (x86)\PostSharp 2.0\Release\PostSharp.Hosting.dll'.
LOG: Loaded: 'PostSharp.Sdk, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7' from 'C:\Program Files (x86)\PostSharp 2.0\Release\PostSharp.Sdk.dll'.
LOG: Loaded: 'PostSharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7' from 'C:\Program Files (x86)\PostSharp 2.0\Release\PostSharp.dll'.
LOG: Loaded: 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' from 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'.
LOG: Loaded: 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'.
LOG: Loaded: 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' from 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'.
LOG: Loaded: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' from 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'.
LOG: Loaded: 'PostSharp.Sdk.XmlSerializers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b13fd38b8f9c99d7' from 'C:\Program Files (x86)\PostSharp 2.0\Release\PostSharp.Sdk.XmlSerializers.dll'.
LOG: Loaded: 'Werp.Controller.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=89a48972aafe8afe' from ''.
LOG: Loaded: 'ISymWrapper, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' from 'C:\Windows\Microsoft.Net\assembly\GAC_64\ISymWrapper\v4.0_4.0.0.0__b03f5f7f11d50a3a\ISymWrapper.dll'.
LOG: Loaded: 'Xtensive.Storage.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=93a6c53d77a5296c' from ''.
======Exception Details ============================================
System.IO.FileNotFoundException: Cannot find an assembly named 'Werp.Model.Models, Version=1.0.3796.25622, Culture=neutral, PublicKeyToken=89a48972aafe8afe'.
at PostSharp.Hosting.NativeDotNetPlatform.LoadAssemblyFromName(IAssemblyName assemblyName)
at PostSharp.CodeModel.AssemblyLoadHelper.LoadAssemblyFromName(IAssemblyName assemblyName, Evidence assemblySecurity)
====================================================================
at PostSharp.CodeModel.AssemblyLoadHelper.^sl7vYpr7(String _0, Exception _1)
at PostSharp.CodeModel.AssemblyLoadHelper.LoadAssemblyFromName(IAssemblyName assemblyName, Evidence assemblySecurity)
at PostSharp.CodeModel.Domain.GetAssembly(IAssemblyName assemblyName, BindingOptions bindingOptions)
at PostSharp.CodeModel.AssemblyRefDeclaration.GetAssemblyEnvelope()
at PostSharp.CodeModel.TypeRefDeclaration.GetTypeDefinition(BindingOptions bindingOptions)
at PostSharp.Extensibility.Tasks.AnnotationRepositoryTask.^wwGmHrz+(IAnnotationInstance _0)
at PostSharp.Extensibility.Tasks.AnnotationRepositoryTask.Execute()
at PostSharp.Extensibility.Project.ExecutePhase(String phase)
at PostSharp.Extensibility.Project.Execute()
at PostSharp.Hosting.PostSharpObject.ExecuteProjects()
at PostSharp.Hosting.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation) D:\home\Docs\Visual Studio 2008\Projects\vs2k10\Werp.Controller.Controls\POSTSHARP Werp.Controller.Controls
This thread was imported from our support forum. The original discussion may contain more detailed answer.
I forwarded the question to SharpCrafters.