NuGet to Mono Packaging Project Returns Unrealized Error

I am trying to package a project using Mono (4.2.1) and NuGet (2.8.5.0). The full verbose output of nuget pack Project.csproj is

 Attempting to build package from 'Project.csproj'. The method or operation is not implemented. 
+5
source share
2 answers

nuget pack project.csproj is currently not supported in Mono. Please refer to the corresponding Bugzilla entry .

Using a project file (.csproj) to create a NuGet package uses parts of MSBuild that are not implemented in Mono. Instead, you will need to create a .nuspec file and use the nuget pack YourNuspec.nuspec to create a NuGet package with Mono.

+11
source

This has now been fixed in nuget, and more information can be found on this ticket: https://github.com/NuGet/Home/issues/1946

Run the following to update nuget and it will work

Mac

 sudo nuget update -self 

Window

 nuget.exe update -self 
+4
source

Source: https://habr.com/ru/post/1238793/


All Articles