This was working before, using DataObjectsDotNetPath property in all csproj.
This is useful for pushing automatically DO.Net's update to whole team (we put binary dependencies in source control)
I am doing something wrong?
See attached demo project [attachment=0:2pkpmciv]DoTestMigration.zip[/attachment:2pkpmciv] : it works if you remove
<DataObjectsDotNetPath>$(MSBuildProjectDirectory)\..\DataObjects.Net</DataObjectsDotNetPath>
from the csproj file.
With it I'm getting a Postsharp exception:
Error 1 Unhandled exception: PostSharp.CodeModel.BindingException: Cannot find the type 'System.Security.Permissions.SecurityPermissionFlag, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at PostSharp.CodeModel.AssemblyEnvelope.GetTypeDefinition(String typeName, BindingOptions bindingOptions)
at PostSharp.CodeModel.TypeRefDeclaration.GetTypeDefinition(BindingOptions bindingOptions)
at PostSharp.CodeModel.TypeRefDeclaration.GetTypeDefinition()
at PostSharp.CodeModel.Helpers.EnumHelper.GetUnderlyingType(IType type)
at PostSharp.CodeModel.SerializationTypes.EnumerationSerializationType.GetIntrinsicSerializationType()
at PostSharp.CodeModel.SerializationTypes.EnumerationSerializationType.ReadValue(BufferReader buffer)
at PostSharp.ModuleReader.DeserializationUtil.ReadSerializedNamedArgument(Int32 ordinal, BufferReader buffer)
at PostSharp.ModuleReader.ModuleReader.ImportPermissionSets()
at PostSharp.ModuleReader.ModuleReader.ReadModule()
at PostSharp.CodeModel.Domain.LoadAssembly(Assembly reflectionAssembly, Boolean lazyLoading)
at PostSharp.CodeModel.Domain.GetAssembly(IAssemblyName assemblyName)
at PostSharp.CodeModel.AssemblyRefDeclaration.GetAssemblyEnvelope()
at PostSharp.CodeModel.TypeRefDeclaration.GetTypeDefinition(BindingOptions bindingOptions)
at PostSharp.CodeModel.TypeRefDeclaration.GetTypeDefinition()
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.MSBuild.PostSharpRemoteTask.Execute(PostSharpTaskParameters parameters, TaskLoggingHelper log) DOSample
Updated at 18.05.2010 10:41:24
Build seems to work for another project : there is most likely an error on this project.
Updated at 18.05.2010 15:16:18
Looks like i was too hasty on this one.
Our main project now builds on build server without installation of Dataobjects/postsharp.
Sorry for the post.
This thread was imported from our support forum. The original discussion may contain more detailed answer.
asked
May 18 '10 at 10:10
olorin
358●87●87●92
Never mind, you are welcome ;)
OK then