diff --git a/setup.py b/setup.py
index c98f3ed57..c23f6b5bd 100644
--- a/setup.py
+++ b/setup.py
@@ -209,7 +209,7 @@ def build_extension(self, ext):
'pythonnet.sln',
'/p:Configuration={}'.format(_config),
'/p:Platform={}'.format(ARCH),
- '/p:DefineConstants="{}"'.format(','.join(defines)),
+ '/p:DefineConstants="{}"'.format('%3B'.join(defines)),
'/p:PythonBuildDir="{}"'.format(os.path.abspath(dest_dir)),
'/p:PythonInteropFile="{}"'.format(os.path.basename(interop_file)),
'/verbosity:{}'.format(VERBOSITY),
diff --git a/src/embed_tests/Python.EmbeddingTest.csproj b/src/embed_tests/Python.EmbeddingTest.csproj
index 3ec0d4b57..56ef886ee 100644
--- a/src/embed_tests/Python.EmbeddingTest.csproj
+++ b/src/embed_tests/Python.EmbeddingTest.csproj
@@ -115,6 +115,6 @@
-
+
diff --git a/src/runtime/Python.Runtime.csproj b/src/runtime/Python.Runtime.csproj
index 8580b7f61..2fd66ad73 100644
--- a/src/runtime/Python.Runtime.csproj
+++ b/src/runtime/Python.Runtime.csproj
@@ -161,6 +161,6 @@
-
+
diff --git a/src/testing/Python.Test.csproj b/src/testing/Python.Test.csproj
index ce8dca10d..8a8d9ed2b 100644
--- a/src/testing/Python.Test.csproj
+++ b/src/testing/Python.Test.csproj
@@ -108,6 +108,6 @@
-
+
diff --git a/tools/nuget/nuget.exe b/tools/nuget/nuget.exe
index e42e6d827..463f8e137 100644
Binary files a/tools/nuget/nuget.exe and b/tools/nuget/nuget.exe differ