diff --git a/pythonnet/setup.py b/pythonnet/setup.py index d91951141..14de4cfd9 100644 --- a/pythonnet/setup.py +++ b/pythonnet/setup.py @@ -95,7 +95,7 @@ def build_extension(self, ext): "/p:Platform=%s" % _platform, "/p:DefineConstants=\"%s\"" % _defines_sep.join(defines), "/p:PythonBuildDir=%s" % os.path.abspath(dest_dir), - "/p:NoNuGet=true", + "/p:NoNuGet=%s" % ("true" if DEVTOOLS=="Mono" else "false"), "/verbosity:%s" % VERBOSITY, ]