1

Closed

NotImplementedException with pack command on mono

description

I get an error while creating a nuget package on Mac Os X (10.7.5) (latest).
I'm trying to pack a single assembly.

I'm using NuGet Version: 2.7.41115.310 (latest as of this writing)

The update and spec command work fine and as expected.

The pack command, though, always give the same error
whether I proceed from the project or the compiled assembly
and whether is built in Debug or Release.

Below is the command and its result.

Thank you.

$ mono --runtime=v4.0 --gc=sgen /Users/<user>/NuGet.exe pack MyProject.csproj -Verbosity detailed
Attempting to build package from 'MyProject.csproj'.
System.NotImplementedException: The requested feature is not implemented.
  at Microsoft.Build.Evaluation.Project..ctor (System.String projectFile, IDictionary`2 globalProperties, System.String toolsVersion) [0x00000] in <filename unknown>:0 
  at NuGet.Commands.ProjectFactory..ctor (System.String path, IDictionary`2 projectProperties) [0x00000] in <filename unknown>:0 
  at NuGet.Commands.PackCommand.BuildFromProjectFile (System.String path) [0x00000] in <filename unknown>:0 
  at NuGet.Commands.PackCommand.BuildPackage (System.String path) [0x00000] in <filename unknown>:0 
  at NuGet.Commands.PackCommand.ExecuteCommand () [0x00000] in <filename unknown>:0 
  at NuGet.Commands.Command.Execute () [0x00000] in <filename unknown>:0 
  at NuGet.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
Closed Jan 3 at 7:47 PM by deepakverma
closing as per comment from @JohnLonBickel

comments

lextm wrote Dec 31, 2013 at 7:49 AM

The call stack seems to indicate an issue in Mono, so you might check Mono's bug tracker and see if you can find an existing report or fire a new one,

http://mono-project.com/Support

Mono does not yet finish implementing all MSBuild related APIs, so this kind of issues are expected.

JohnLonBickel wrote Dec 31, 2013 at 11:25 PM

Thanks, I opened a bugzilla issue at xamarin.
The error does not seem to be already reported.