Bug 18837 - NuGet update fails on Mono
Summary: NuGet update fails on Mono
Alias: None
Product: Tools
Classification: Mono
Component: xbuild ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on: 18859 18885 18887 18892 18952 18949
  Show dependency tree
Reported: 2014-04-07 10:07 UTC by Matt Ward
Modified: 2014-04-11 09:46 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 18837 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Matt Ward 2014-04-07 10:07:48 UTC
Both 'NuGet pack MyProject.csproj' and 'NuGet update MySolution.sln' fail on Mono 3.4.0 due to missing XBuild features.

Using NuGet 2.8.1 built from nuget.codeplex.com using build.sh.
Using Mono 3.4.0 (MonoFramework-MDK-

Main problem seems to be Microsoft.Build.Evaluation.Project which is not fully implemented.

The issues currently identified are:

1) MSBuild.Build.Evaluation.Project.ReevaluateIfNecessary()

Not implemented.

2) Microsoft.Build.Evaluation.Project.AddItem (string itemType, string unevaluatedInclude, IEnumerable<KeyValuePair<string, string>> metadata)

Not implemented.

3) MSBuild.Build.Evaluation.Project.GetPropertyValue("TargetPath")

Returns an empty string.

Example command lines used:

mono --debug ~/Projects/nuget-codeplex/src/CommandLine/bin/Release/NuGet.exe update -Verbosity detailed test.sln 

mono --debug ~/Projects/nuget-codeplex/src/CommandLine/bin/Release/NuGet.exe pack test/test.csproj -verbosity detailed
Comment 1 Mikayla Hutchinson [MSFT] 2014-04-07 14:12:35 UTC

*** This bug has been marked as a duplicate of bug 17430 ***
Comment 2 Matt Ward 2014-04-08 12:26:17 UTC
Re-opening this. Keep 'nuget pack' and 'nuget update' errors as separate bugs. Each command uses different parts of the MSBuild API so we can use these as parent bugs for the individual MSBuild API issues.