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's gravatar image

olorin
358878792

edited Sep 07 '10 at 06:36

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

Never mind, you are welcome ;)

(May 18 '10 at 10:10) Dmitri Maximov Dmitri%20Maximov's gravatar image

OK then

(May 18 '10 at 10:10) Dmitri Maximov Dmitri%20Maximov's gravatar image

One Answer:

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.

answered Sep 07 '10 at 04:17

olorin's gravatar image

olorin
358878792

Can I close this question then?

(Sep 07 '10 at 06:16) Dmitri Maximov Dmitri%20Maximov's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA