[Mono-list] Mono and NuGet

Abe Gillespie abe.gillespie at gmail.com
Sun Nov 7 10:45:20 EST 2010


I'm not sure why your Mono is having issues with that type (broken
install?) because I can get at least past the initial startup.  Mac OS
10.6 / Mono 2.8

When I do: mono --runtime=v4.0.30319 NuPack.exe
I get: Usage: NuPack.exe <manifest-file>

Now I've never run NuGet so I found this page:
http://nuget.codeplex.com/documentation?title=Package%20Manager%20Console%20Command%20Reference

One of the screen shots shows a packages URL.
So I tried: mono --runtime=v4.0.30319 NuPack.exe
http://go.microsoft.com/fwlink/?LinkID=199193
And got: The requested feature is not implemented.

Now I'm just shooting in the dark here because I've never used NuGet
and not even sure if the link is a proper manifest file; it's entirely
possible NuGet manifest files are local files that point to package
sources.  But all of this is moot because, according to the same page,
NuGet runs scripts via the PowerShell infrastructure.  PowerShell is
not available[1] for Mono.

-Abe
[1] There *is* PASH, an open source port of PowerShell, but it's very
incomplete and untouched for a very long time.

On Sun, Nov 7, 2010 at 9:26 AM, Maciej Paszta <maciej.paszta at gmail.com> wrote:
> Hi!
> I was wondering whether Mono supports (or is able to run) NuGet (former
> NuPack). I've tried to run the newest version available on
> nuget.codeplex.com, but without success, the error I'm getting is:
> [mono-2.8] paszczi at paszczi-laptop:~/dev$ mono --runtime=v4.0.30319
> NuPack.exe
> Missing method .ctor in assembly /home/paszczi/dev/NuPack.exe, type
> System.Data.Services.Common.EntityPropertyMappingAttribute
> Can't find custom attr constructor image: /home/paszczi/dev/NuPack.exe
> mtoken: 0x0a000293
> Missing method .ctor in assembly /home/paszczi/dev/NuPack.exe, type
> System.Data.Services.Common.EntityPropertyMappingAttribute
> Can't find custom attr constructor image: /home/paszczi/dev/NuPack.exe
> mtoken: 0x0a000293
> Unhandled Exception: System.TypeLoadException: Could not load type
> 'System.Data.Services.Common.EntityPropertyMappingAttribute' from assembly
> 'NuPack'.
>   at (wrapper managed-to-native) System.MonoType:GetPropertiesByName
> (System.MonoType*,string,System.Reflection.BindingFlags,bool,System.Type)
>   at System.MonoType.GetProperties (BindingFlags bindingAttr) [0x00000] in
> <filename unknown>:0
>   at
> System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo+<GetExportMembers>c__Iterator0.MoveNext
> () [0x00000] in <filename unknown>:0
>   at System.Linq.Enumerable.Any[MemberInfo] (IEnumerable`1 source) [0x00000]
> in <filename unknown>:0
>   at
> System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.HasExports
> () [0x00000] in <filename unknown>:0
>   at
> System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.IsPartDiscoverable
> () [0x00000] in <filename unknown>:0
>   at
> System.ComponentModel.Composition.AttributedModel.AttributedModelDiscovery.CreatePartDefinitionIfDiscoverable
> (System.Type type, ICompositionElement origin) [0x00000] in <filename
> unknown>:0
>   at System.ComponentModel.Composition.Hosting.TypeCatalog.get_PartsInternal
> () [0x00000] in <filename unknown>:0
>   at System.ComponentModel.Composition.Hosting.TypeCatalog.CreateIndex ()
> [0x00000] in <filename unknown>:0
>   at
> System.Lazy`1[System.Collections.Generic.IDictionary`2[System.String,System.Collections.Generic.List`1[System.ComponentModel.Composition.Primitives.ComposablePartDefinition]]].InitValue
> () [0x00000] in <filename unknown>:0
> I've tried to compile NuGet from sources but had no luck:
> [mono-2.8] paszczi at paszczi-laptop:~/dev$ mono --runtime=v4.0.30319
> NuPack.exe
> Missing method .ctor in assembly /home/paszczi/dev/NuPack.exe, type
> System.Data.Services.Common.EntityPropertyMappingAttribute
> Can't find custom attr constructor image: /home/paszczi/dev/NuPack.exe
> mtoken: 0x0a000293
> Missing method .ctor in assembly /home/paszczi/dev/NuPack.exe, type
> System.Data.Services.Common.EntityPropertyMappingAttribute
> Can't find custom attr constructor image: /home/paszczi/dev/NuPack.exe
> mtoken: 0x0a000293
> Unhandled Exception: System.TypeLoadException: Could not load type
> 'System.Data.Services.Common.EntityPropertyMappingAttribute' from assembly
> 'NuPack'.
>   at (wrapper managed-to-native) System.MonoType:GetPropertiesByName
> (System.MonoType*,string,System.Reflection.BindingFlags,bool,System.Type)
>   at System.MonoType.GetProperties (BindingFlags bindingAttr) [0x00000] in
> <filename unknown>:0
>   at
> System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo+<GetExportMembers>c__Iterator0.MoveNext
> () [0x00000] in <filename unknown>:0
>   at System.Linq.Enumerable.Any[MemberInfo] (IEnumerable`1 source) [0x00000]
> in <filename unknown>:0
>   at
> System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.HasExports
> () [0x00000] in <filename unknown>:0
>   at
> System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.IsPartDiscoverable
> () [0x00000] in <filename unknown>:0
>   at
> System.ComponentModel.Composition.AttributedModel.AttributedModelDiscovery.CreatePartDefinitionIfDiscoverable
> (System.Type type, ICompositionElement origin) [0x00000] in <filename
> unknown>:0
>   at System.ComponentModel.Composition.Hosting.TypeCatalog.get_PartsInternal
> () [0x00000] in <filename unknown>:0
>   at System.ComponentModel.Composition.Hosting.TypeCatalog.CreateIndex ()
> [0x00000] in <filename unknown>:0
>   at
> System.Lazy`1[System.Collections.Generic.IDictionary`2[System.String,System.Collections.Generic.List`1[System.ComponentModel.Composition.Primitives.ComposablePartDefinition]]].InitValue
> () [0x00000] in <filename unknown>:0
>
> I've found some repo from Rafael (under github.com/monoman) but had no luck
> with that either. So my question is - is it possible to use it as is on
> Mono. NuPack/NuGet seems like a quite good idea, I've tested in on Windows
> and was positively surprised buy the workflow and easiness it offers. I'm
> aware that integrating NuGet into Monodevelop requires significant amount of
> time, but for me the console version would be sufficient.
>
> --
> Maciej Paszta
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>


More information about the Mono-list mailing list