-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NuGet pack fails with 'The method or operation is not implemented.' #1946
Comments
@phrohdoh would you re-run pack with |
Sure!
ref #1874 (comment) |
That looks like a different exception. It could be nuget.exe going down a different path with the verbosity change, but just to be sure would you double check your files path and make sure it's not creating an empty package like it says there. |
The second run was on the .nuspec and not the project. Can you please run the exact same command as the first one with verbosity turned on? |
Oh wow that's an embarrassing mistake. |
Here is the correct output. tmba:OpenRA.Mods.Common thill $ nuget pack OpenRA.Mods.Common.csproj -IncludeReferencedProjects -verbosity detailed
MSBuild auto-detection: using msbuild version '4.0' from '/Library/Frameworks/Mono.framework/Versions/4.2.1/lib/mono/4.5'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
Attempting to build package from 'OpenRA.Mods.Common.csproj'.
System.NotImplementedException: The method or operation is not implemented.
at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object)
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid1[T0] (System.Runtime.CompilerServices.CallSite site, System.Dynamic.T0 arg0) <0x3ed2560 + 0x003ee> in <filename unknown>:0
at NuGet.CommandLine.ProjectFactory.ResolveTargetPath () <0x3ece960 + 0x0094e> in <filename unknown>:0
at NuGet.CommandLine.ProjectFactory.BuildProject () <0x3ece3f8 + 0x0044f> in <filename unknown>:0
at NuGet.CommandLine.ProjectFactory.CreateBuilder (System.String basePath) <0x3ecd9e0 + 0x0004f> in <filename unknown>:0
at NuGet.CommandLine.PackCommand.BuildFromProjectFile (System.String path) <0x36e0970 + 0x0023f> in <filename unknown>:0
at NuGet.CommandLine.PackCommand.BuildPackage (System.String path) <0x36e08f0 + 0x0005f> in <filename unknown>:0
at NuGet.CommandLine.PackCommand.ExecuteCommand () <0x36dab58 + 0x001f7> in <filename unknown>:0
at NuGet.CommandLine.Command.ExecuteCommandAsync () <0x36dab28 + 0x00010> in <filename unknown>:0
at NuGet.CommandLine.Command.Execute () <0x36c6090 + 0x001e4> in <filename unknown>:0
at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) <0x696b58 + 0x0065c> in <filename unknown>:0 I get the same output if I omit the |
OK, I see. msbuild is not supported on mono, you are supposed to use xbuild instead. I need to find out why xbuild is not kicking in for you |
NuGet has not previously supported packing from a csproj outside of Windows. We are currently focused on delivering pack functionality using nuspec with the CoreCLR on Mac. Csproj file support currently requires MSBuild, which is not present on Mac |
Okay, should I open a separate issue for the failure of If I could get a bit of help I'd be willing to put some hours into solving this but currently I am dead in the water waiting for a fix. |
I believe the error there is correct, and you need to fully fill in the nuspec by adding files entries |
It does have a <files>
<file src="../mods/common/*.dll" target="lib"/>
</files> |
missed it before. Can you try something very basic to verify there is no mistake in your setup? We did verify this basic scenario on mono, so I'm suspecting something else might be going on (perhaps files do not exist on disk when you run nuget.exe pack?) |
<?xml version="1.0"?>
<package>
<metadata>
<id>LibDependOnMe</id>
<version>1.0.0</version>
<title>LibDependOnMe Test</title>
<authors>Phrohdoh</authors>
<owners>Phrohdoh</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>You can depend on this logger!</description>
<releaseNotes>Test...</releaseNotes>
<copyright>Copyright 2016</copyright>
<tags>Test LibTest</tags>
</metadata>
<files>
<file src="bin\Debug\*.dll" target="lib"/>
<!-- <file src="bin/Debug/*.dll" target="lib"/> also tried this -->
</files>
</package> tmba:LibDependOnMe thill $ test -f "bin/Debug/LibDependOnMe.dll" && nuget pack LibDependOnMe.csproj -verbosity detailed
MSBuild auto-detection: using msbuild version '4.0' from '/Library/Frameworks/Mono.framework/Versions/4.2.1/lib/mono/4.5'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
Attempting to build package from 'LibDependOnMe.csproj'.
System.NotImplementedException: The method or operation is not implemented.
at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object)
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid1[T0] (System.Runtime.CompilerServices.CallSite site, System.Dynamic.T0 arg0) <0x3f20bc8 + 0x003ee> in <filename unknown>:0
at NuGet.CommandLine.ProjectFactory.ResolveTargetPath () <0x3f1cfc8 + 0x0094e> in <filename unknown>:0
at NuGet.CommandLine.ProjectFactory.BuildProject () <0x3f1ca60 + 0x0044f> in <filename unknown>:0
at NuGet.CommandLine.ProjectFactory.CreateBuilder (System.String basePath) <0x3f1c048 + 0x0004f> in <filename unknown>:0
at NuGet.CommandLine.PackCommand.BuildFromProjectFile (System.String path) <0x372b330 + 0x0023f> in <filename unknown>:0
at NuGet.CommandLine.PackCommand.BuildPackage (System.String path) <0x372b2b0 + 0x0005f> in <filename unknown>:0
at NuGet.CommandLine.PackCommand.ExecuteCommand () <0x3725518 + 0x001f7> in <filename unknown>:0
at NuGet.CommandLine.Command.ExecuteCommandAsync () <0x37254e8 + 0x00010> in <filename unknown>:0
at NuGet.CommandLine.Command.Execute () <0x3708a80 + 0x001e4> in <filename unknown>:0
at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) <0x6e6be8 + 0x0065c> in <filename unknown>:0
|
I did some poking around (with this diff) and got some verbose output, but it may not be of any help. diff --git a/src/CommandLine/Commands/PackCommand.cs b/src/CommandLine/Commands/PackCommand.cs
index dd52d98..8df2f60 100644
--- a/src/CommandLine/Commands/PackCommand.cs
+++ b/src/CommandLine/Commands/PackCommand.cs
@@ -291,6 +291,7 @@ namespace NuGet.Commands
private IPackage BuildFromNuspec(string path)
{
+ Console.WriteLine("BuildFromNuspec({0})", path);
PackageBuilder packageBuilder = CreatePackageBuilderFromNuspec(path);
if (Symbols)
diff --git a/src/CommandLine/Commands/ProjectFactory.cs b/src/CommandLine/Commands/ProjectFactory.cs
index 358e6ab..199cabc 100644
--- a/src/CommandLine/Commands/ProjectFactory.cs
+++ b/src/CommandLine/Commands/ProjectFactory.cs
@@ -52,6 +52,7 @@ namespace NuGet.Commands
public ProjectFactory(string path, IDictionary<string, string> projectProperties)
: this(new Project(path, projectProperties, null))
{
+ System.Console.WriteLine("ProjectFactory({0}, ..)", path);
}
public ProjectFactory(Project project)
@@ -284,6 +285,7 @@ namespace NuGet.Commands
private string ResolveTargetPath()
{
+ System.Console.WriteLine("ProjectFactory.ResolveTargetPath()");
// Set the project properties
foreach (var property in ProjectProperties)
{
@@ -294,11 +296,17 @@ namespace NuGet.Commands
// (which those passed in via the ctor are) as trying to set global properties
// with this method throws.
_project.SetProperty(property.Key, property.Value);
+ System.Console.WriteLine("SetProperty({0}, {1})", property.Key, property.Value);
}
}
// Re-evaluate the project so that the new property values are applied
- _project.ReevaluateIfNecessary();
+ //_project.ReevaluateIfNecessary();
+
+ foreach (var prop in _project.Properties)
+ {
+ System.Console.WriteLine("{0}:\n\t{1}\n\t{2}", prop.Name, prop.UnevaluatedValue, prop.EvaluatedValue);
+ }
// Return the new target path
return _project.GetPropertyValue("TargetPath");
@@ -793,6 +801,8 @@ namespace NuGet.Commands
private Manifest ProcessNuspec(PackageBuilder builder, string basePath)
{
string nuspecFile = GetNuspec();
+ System.Console.WriteLine(builder.Id);
+ System.Console.WriteLine(nuspecFile);
if (String.IsNullOrEmpty(nuspecFile))
{
@@ -811,6 +821,7 @@ namespace NuGet.Commands
if (manifest.Files != null)
{
basePath = String.IsNullOrEmpty(basePath) ? Path.GetDirectoryName(nuspecFile) : basePath;
+ System.Console.WriteLine("PopulateFiles({0}, {1})", basePath, string.Join (",", manifest.Files));
builder.PopulateFiles(basePath, manifest.Files);
}
diff --git a/src/Core/Authoring/PackageBuilder.cs b/src/Core/Authoring/PackageBuilder.cs
index afa5991..6ecd306 100644
--- a/src/Core/Authoring/PackageBuilder.cs
+++ b/src/Core/Authoring/PackageBuilder.cs
@@ -237,7 +237,7 @@ namespace NuGet
public void Save(Stream stream)
{
// Make sure we're saving a valid package id
- PackageIdValidator.ValidatePackageId(Id);
+ PackageIdValidator.ValidatePackageId(Id);
// Throw if the package doesn't contain any dependencies nor content
if (!Files.Any() && !DependencySets.SelectMany(d => d.Dependencies).Any() && !FrameworkReferences.Any())
@@ -511,6 +511,8 @@ namespace NuGet
private void AddFiles(string basePath, string source, string destination, string exclude = null)
{
+ System.Console.WriteLine("PackageBuilder._AddFiles({0}, {1}, {2}, {3})",
+ basePath, source, destination, exclude ?? "<null>");
List<PhysicalPackageFile> searchFiles = PathResolver.ResolveSearchPattern(basePath, source, destination, _includeEmptyDirectories).ToList();
if (_includeEmptyDirectories)
{
diff --git a/src/VsEvents/VsEvents.csproj b/src/VsEvents/VsEvents.csproj
index ed66a66..c9bee51 100644
--- a/src/VsEvents/VsEvents.csproj
+++ b/src/VsEvents/VsEvents.csproj
@@ -44,7 +44,6 @@
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup> tmba:OpenRA.Mods.Common thill $ md ~/projects/csharp/dotnet/nuget2/src/CommandLine/bin/Release/NuGet.exe pack OpenRA.Mods.Common.csproj -verbosity detailed
Attempting to build package from 'OpenRA.Mods.Common.csproj'.
ProjectFactory(OpenRA.Mods.Common.csproj, ..)
ProjectFactory.ResolveTargetPath()
SetProperty(SolutionDir, /Users/thill/projects/openra/)
OLDPWD:
/Users/thill/projects/openra
/Users/thill/projects/openra
CLICOLOR:
1
1
DISPLAY:
/private/tmp/com.apple.launchd.VtOTF1RvUx/org.macosforge.xquartz:0
/private/tmp/com.apple.launchd.VtOTF1RvUx/org.macosforge.xquartz:0
RUST_SRC_PATH:
/Users/thill/projects/langs/rust/src/
/Users/thill/projects/langs/rust/src/
XPC_FLAGS:
0x0
0x0
AUTO_SOURCE_VENV_DEACTIVATE:
true
true
SHLVL:
3
3
TERM:
xterm-256color
xterm-256color
LOGNAME:
thill
thill
__CF_USER_TEXT_ENCODING:
0x1F5:0x0:0x0
0x1F5:0x0:0x0
Apple_PubSub_Socket_Render:
/private/tmp/com.apple.launchd.Gll5xukgum/Render
/private/tmp/com.apple.launchd.Gll5xukgum/Render
LANG:
en_US.UTF-8
en_US.UTF-8
TMUX_PANE:
%3
%3
XPC_SERVICE_NAME:
0
0
ITERM_SESSION_ID:
w0t0p0
w0t0p0
USER:
thill
thill
ITERM_PROFILE:
Default
Default
EDITOR:
vim
vim
PATH:
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/thill/bin:/usr/local/sbin
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/thill/bin:/usr/local/sbin
PS1:
\h:\W \u \e[0;36m$ \e[0m
\h:\W \u \e[0;36m$ \e[0m
SSH_AUTH_SOCK:
/private/tmp/com.apple.launchd.VI4HP1G6u7/Listeners
/private/tmp/com.apple.launchd.VI4HP1G6u7/Listeners
TMUX_PLUGIN_MANAGER_PATH:
/Users/thill/.tmux/plugins/
/Users/thill/.tmux/plugins/
TMUX:
/private/var/folders/nm/flcs9rxx14n5rv2b9kh64mlh0000gn/T/tmux-501/default,455,0
/private/var/folders/nm/flcs9rxx14n5rv2b9kh64mlh0000gn/T/tmux-501/default,455,0
HOME:
/Users/thill
/Users/thill
_:
/usr/local/bin/mono
/usr/local/bin/mono
TERM_PROGRAM:
iTerm.app
iTerm.app
TMPDIR:
/var/folders/nm/flcs9rxx14n5rv2b9kh64mlh0000gn/T/
/var/folders/nm/flcs9rxx14n5rv2b9kh64mlh0000gn/T/
EVENT_NOKQUEUE:
1
1
SHELL:
/bin/bash
/bin/bash
LSCOLORS:
dxfxcxdxbxegedabagacad
dxfxcxdxbxegedabagacad
PWD:
/Users/thill/projects/openra/OpenRA.Mods.Common
/Users/thill/projects/openra/OpenRA.Mods.Common
MSBuildBinPath:
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/4.5
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/4.5
MSBuildProjectDefaultTargets:
MSBuildProjectDirectory:
/Users/thill/projects/openra/OpenRA.Mods.Common/
/Users/thill/projects/openra/OpenRA.Mods.Common/
MSBuildProjectDirectoryNoRoot:
Users/thill/projects/openra/OpenRA.Mods.Common
Users/thill/projects/openra/OpenRA.Mods.Common
MSBuildProjectExtension:
.csproj
.csproj
MSBuildProjectFile:
OpenRA.Mods.Common.csproj
OpenRA.Mods.Common.csproj
MSBuildProjectFullPath:
/Users/thill/projects/openra/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj
/Users/thill/projects/openra/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj
MSBuildProjectName:
OpenRA.Mods.Common
OpenRA.Mods.Common
MSBuildStartupDirectory:
MSBuildThisFile:
OpenRA.Mods.Common.csproj
OpenRA.Mods.Common.csproj
MSBuildThisFileFullPath:
/Users/thill/projects/openra/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj
/Users/thill/projects/openra/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj
MSBuildThisFileName:
OpenRA.Mods.Common
OpenRA.Mods.Common
MSBuildThisFileExtension:
.csproj
.csproj
MSBuildThisFileDirectory:
/Users/thill/projects/openra/OpenRA.Mods.Common
/Users/thill/projects/openra/OpenRA.Mods.Common
MSBuildThisFileDirectoryNoRoot:
Users/thill/projects/openra/OpenRA.Mods.Common//
Users/thill/projects/openra/OpenRA.Mods.Common//
MSBuildToolsPath:
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/4.5
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/4.5
MSBuildToolsVersion:
4.0
4.0
MonoUseMicrosoftBuildDll:
True
True
OS:
Unix
Unix
MSBuildExtensionsPath:
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/xbuild
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/xbuild
MSBuildExtensionsPath32:
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/xbuild
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/xbuild
MSBuildExtensionsPath64:
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/xbuild
/Library/Frameworks/Mono.framework/Versions/4.3.0/lib/mono/xbuild
SolutionDir:
/Users/thill/projects/openra/
NuGet.CommandLineException: Unable to find ''. Make sure the project has been built.
at NuGet.Commands.ProjectFactory.BuildProject () [0x00153] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/ProjectFactory.cs:281
at NuGet.Commands.ProjectFactory.CreateBuilder (System.String basePath) [0x00006] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/ProjectFactory.cs:127
at NuGet.Commands.PackCommand.BuildFromProjectFile (System.String path) [0x000cc] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/PackCommand.cs:384
at NuGet.Commands.PackCommand.BuildPackage (System.String path) [0x00020] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/PackCommand.cs:288
at NuGet.Commands.PackCommand.ExecuteCommand () [0x000b4] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/PackCommand.cs:133
at NuGet.Commands.Command.Execute () [0x000db] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/Command.cs:111
at NuGet.Program.Main (System.String[] args) [0x001a2] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Program.cs:95 If I keep the tmba:OpenRA.Mods.Common thill $ md ~/projects/csharp/dotnet/nuget2/src/CommandLine/bin/Release/NuGet.exe pack OpenRA.Mods.Common.csproj -verbosity detailed
Attempting to build package from 'OpenRA.Mods.Common.csproj'.
ProjectFactory(OpenRA.Mods.Common.csproj, ..)
ProjectFactory.ResolveTargetPath()
SetProperty(SolutionDir, /Users/thill/projects/openra/)
System.NotImplementedException: The method or operation is not implemented.
at NuGet.Commands.ProjectFactory.ResolveTargetPath () [0x00098] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/ProjectFactory.cs:304
at NuGet.Commands.ProjectFactory.BuildProject () [0x00137] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/ProjectFactory.cs:276
at NuGet.Commands.ProjectFactory.CreateBuilder (System.String basePath) [0x00006] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/ProjectFactory.cs:127
at NuGet.Commands.PackCommand.BuildFromProjectFile (System.String path) [0x000cc] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/PackCommand.cs:384
at NuGet.Commands.PackCommand.BuildPackage (System.String path) [0x00020] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/PackCommand.cs:288
at NuGet.Commands.PackCommand.ExecuteCommand () [0x000b4] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/PackCommand.cs:133
at NuGet.Commands.Command.Execute () [0x000db] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Commands/Command.cs:111
at NuGet.Program.Main (System.String[] args) [0x001a2] in /Users/thill/projects/csharp/dotnet/nuget2/src/CommandLine/Program.cs:95 |
I think I've found part of the reason that files are not found even though the Do note that this is calling
The interesting bits are:
This is searching in I'm not sure how to modify this line into what I am after: |
After a bit more investigation I've discovered that I have a (heavily butchered) git state for |
Cool, push a pr mark it for feedback only in the comments and add a failing test |
I'm having the same problem here, guys. I'm also using OSX. NuGet Version: 2.8.5.0 Here's the output of
|
@endel 2.8.5 is no longer supported. We are currently porting pack to work on .net core so it can work safely on .net core (which will work on Mac natively). I would start by updating to NuGet 3.3, and use pack with nuspec, pack with csproj is not supported at this point, and will be enabled in a future release. |
I see, thanks @yishaigalatzer. For some reason version 2.8.5 were installed by default with mono or something. With v3.3 it works fine! |
Great to hear! Much appreciated taking the time to update us. |
I can confirm that this also occurs with:
Will now attempt to write a nuspec file from scratch. Unfortunately there's no fancy NuGet Package Explorer for me. :( |
Ummm why was this closed, @zhili1208? MSBuild AFAIK doesn't run on linux, only windows, so I don't get how #3550 is related. I'm probably missing something here. Unless the issue I'm seeing is a completely different one (probable), in which case I'll file a separate bug.. |
Msbuild now runs on Linux Sent from Ninehttp://www.9folders.com/ From: Starbeamrainbowlabs notifications@github.com Ummm why was this closed, @zhili1208https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fzhili1208&data=01%7C01%7Cyigalatz%40microsoft.com%7Cfc81267131ca4202adb708d3e82bb1af%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=ferwWiqlRDW3PDiuYAjCaru0VQVARdqJ2oc4Er1I54g%3D&reserved=0? MSBuild AFAIK doesn't run on linux, only windows, so I don't get how #3550https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FNuGet%2FHome%2Fissues%2F3550&data=01%7C01%7Cyigalatz%40microsoft.com%7Cfc81267131ca4202adb708d3e82bb1af%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=zaS7Q42mB%2B76rTLrvHwJZpfIH1VoF0sbl7VDioxQwPk%3D&reserved=0 is related. I'm probably missing something here. Unless the issue I'm seeing is a completely different one (probable), in which case I'll file a separate bug.. You are receiving this because you were mentioned. |
MSBuild runs on *nix, but I don't think this is resolved until msbuild is either required or shipped, or xbuild is picked up correctly. |
True but it is covered by fixing 3550 |
It does? I had no idea. Huh. Why can't nuget use xbuild though? And how do I install the linux version of msbuild? |
@sbrl nuget can use xbuild, but it still won't work due to xbuild bug. Mono will install msbuild for you, so you don't need to install that, but for now mono only do that for mac. not sure when they will do that on linux |
Hrm. So I just have to wait until it works then? |
this link shows data providers registered with visual studio in registry http://blog.nwoolls.com/2012/07/25/registering-missing-data-providers-with-visual-studio-2012/ best luck |
Ummm I don't understand those links, @Pandurangv. I can't see how they're related to my nuget packaging error, but I'm probably just misunderstanding something. |
On *nix, ran |
@zhili1208 The resolution to #3550 doesn't fix the issue for me either. On macOS, it's still not possible to build a nuget package from a |
@qguv maybe you could try NuGetizer instead and see if that fixes it? |
I ended up writing a I'd really like to see support for building from a .csproj file on macOS as that is the method the official tutorials use when walking through the packaging process. Alternatively, the tutorials could be changed to use a different method. |
You can install PowerShell via homebrew: Of course NuGet proper should support what it promises to support but I haven't seen that yet. |
@qguv NuGetizer is supported on macOS. |
This issue still has no solution?! Means if you want to pack a nuget package in linux you are damn forced to use nuspec files?! That's ok, but it has more terrible implications: you are forced to use the old csproj format, and you can therefore not use .NET Core. Any plans to work on this? msbuild for linux is out since a while ago an working fine. It should not be too hard any more to make nuget pack work on linux. |
@jose-cf Ummm what? You don't use .csproj files in .NET core? I have more reading to do than I thought...... |
@sbrl I use cspoj files to define my .NET projects. What do you mean? |
you mean forced to use the NEW csproj format ;), which totally rocks! |
@jose-cf I'm just confused. What's changed? Does anyone have a good article they can recommend to me to bring my knowledge up-to-date? |
@kzu no... that is the problem... forced to use the old! And therefore cannot target netcoreapp1.x or netcoreapp2.x. Please fix!! |
@jose-cf this combination works, we're using it: new csproj (15.3+) plus nugetizer. Can target netcoreapp, any version, and netstandard too. |
For anyone still interested in this, I solved my use case (see bug 5627) with the following argument. -MsbuildPath /usr/lib/mono/msbuild/15.0/bin/ ;) This forced nuget to use the version of msbuild bundled with mono instead of the xbuild. |
to anyone who finds this issue while trying to use Cakebuild... var settings = new NuGetPackSettings
{
settings.ArgumentCustomization = args => args.Append("-MSBuildPath /usr/lib/mono/msbuild/15.0/bin/");
};
NuGetPack(project.Path, settings); ...will get you past the issue. |
NuGet Version: 3.3.0.212
Latest from the downloads page is 3.3.0.
OS X 10.11.2
Mono 4.2.1
Per creating and publishing:
You need to run 'nuget pack' on the project file, not the nuspec itself. But the nuspec will in fact get picked up.
The text was updated successfully, but these errors were encountered: