[MonoDevelop] bug add reference in ubuntu 11.04

Jeff Stedfast jeff at xamarin.com
Wed Jun 6 13:56:27 UTC 2012


It looks like the TargetFramework property in the csproj has an invalid
version string or something?

Jeff

On Mon, Jun 4, 2012 at 4:41 PM, Giacomo Stelluti Scala <
zero.one.etc at gmail.com> wrote:

> I've installed MonoDevelop 2.8 from badgerports.org.
> I run Ubuntu Desktop 11.04 and when I try to add I reference to a project
> (any MONO runtime, any PROJECT TYPE) I got:
>
> System.Reflection.TargetInvocationException: Exception has been thrown by
> the target of an invocation. ---> System.ArgumentException: There must be
> 2, 3 or 4 components in the version string.
>    at System.Version..ctor (System.String version) [0x00000] in <filename
> unknown>:0
>   at MonoDevelop.Core.Assemblies.TargetFramework.IsCompatibleWithFramework
> (MonoDevelop.Core.Assemblies.TargetFrameworkMoniker fxId) [0x00000] in
> <filename unknown>:0
>   at
> MonoDevelop.Core.Assemblies.AssemblyContext+<GetPackages>c__Iterator2.MoveNext
> () [0x00000] in <filename unknown>:0
>   at
> MonoDevelop.Core.Assemblies.AssemblyContext+<GetAssemblies>c__Iterator5.MoveNext
> () [0x00000] in <filename unknown>:0
>   at
> MonoDevelop.Core.Assemblies.ComposedAssemblyContext+<GetAssemblies>c__IteratorB.MoveNext
> () [0x00000] in <filename unknown>:0
>   at
> MonoDevelop.Core.Assemblies.ComposedAssemblyContext+<GetAssemblies>c__IteratorB.MoveNext
> () [0x00000] in <filename unknown>:0
>   at MonoDevelop.Ide.Projects.PackageReferencePanel.Reset () [0x00000] in
> <filename unknown>:0
>   at MonoDevelop.Ide.Projects.PackageReferencePanel.SetProject
> (MonoDevelop.Projects.DotNetProject netProject) [0x00000] in <filename
> unknown>:0
>   at MonoDevelop.Ide.Projects.SelectReferenceDialog.SetProject
> (MonoDevelop.Projects.DotNetProject configureProject) [0x00000] in
> <filename unknown>:0
>   at MonoDevelop.Ide.ProjectOperations.AddReferenceToProject
> (MonoDevelop.Projects.DotNetProject project) [0x00000] in <filename
> unknown>:0
>   at
> MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectReferenceFolderNodeCommandHandler.AddReferenceToProject
> () [0x00000] in <filename unknown>:0
>   at (wrapper managed-to-native)
> System.Reflection.MonoMethod:InternalInvoke
> (System.Reflection.MonoMethod,object,object[],System.Exception&)
>   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
> invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
> System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
>   --- End of inner exception stack trace ---
>   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
> invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
> System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
>   at System.Reflection.MethodBase.Invoke (System.Object obj,
> System.Object[] parameters) [0x00000] in <filename unknown>:0
>   at MonoDevelop.Components.Commands.DefaultCommandHandler.Run
> (System.Object target, MonoDevelop.Components.Commands.Command cmd)
> [0x00000] in <filename unknown>:0
>   at MonoDevelop.Components.Commands.CustomCommandTargetAttribute.Run
> (System.Object target, MonoDevelop.Components.Commands.Command cmd)
> [0x00000] in <filename unknown>:0
>   at
> MonoDevelop.Ide.Gui.Components.NodeCommandHandler+TransactedNodeHandlerAttribute.Run
> (System.Object target, MonoDevelop.Components.Commands.Command cmd)
> [0x00000] in <filename unknown>:0
>   at
> MonoDevelop.Components.Commands.CustomCommandTargetAttribute.MonoDevelop.Components.Commands.ICommandTargetHandler.Run
> (System.Object target, MonoDevelop.Components.Commands.Command cmd)
> [0x00000] in <filename unknown>:0
>   at MonoDevelop.Components.Commands.CommandHandlerInfo.Run (System.Object
> cmdTarget, MonoDevelop.Components.Commands.Command cmd) [0x00000] in
> <filename unknown>:0
>   at
> MonoDevelop.Components.Commands.CommandManager+<DispatchCommand>c__AnonStorey42.<>m__57
> () [0x00000] in <filename unknown>:0
>   at MonoDevelop.Components.Commands.CommandManager.DispatchCommand
> (System.Object commandId, System.Object dataItem, System.Object
> initialTarget, CommandSource source) [0x00000] in <filename unknown>:0
>
> Anyone can help?
>
> --
> Giacomo Stelluti Scala
> ICT Professional
> http://gsscoder.blogspot.com/
> http://commandline.codeplex.com/
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20120606/7ad7612b/attachment.html>


More information about the Monodevelop-list mailing list