Browse Source

Fix NuGet compatibility with Visual Studio

NX 6 years ago
parent
commit
3f0da0114f
3 changed files with 5 additions and 4 deletions
  1. 2 1
      ENet-CSharp.nuspec
  2. 1 1
      Source/Managed/ENet.cs
  3. 2 2
      Source/Native/enet.h

+ 2 - 1
ENet-CSharp.nuspec

@@ -2,7 +2,7 @@
 <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
 <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
   <metadata>
   <metadata>
     <id>ENet-CSharp</id>
     <id>ENet-CSharp</id>
-    <version>2.2.0</version>
+    <version>2.2.1</version>
     <title>ENet-CSharp</title>
     <title>ENet-CSharp</title>
     <authors>Stanislav Denisov</authors>
     <authors>Stanislav Denisov</authors>
     <owners>nxrighthere</owners>
     <owners>nxrighthere</owners>
@@ -16,6 +16,7 @@
     <tags>networking udp protocol ipv4 ipv6 gamedev</tags>
     <tags>networking udp protocol ipv4 ipv6 gamedev</tags>
   </metadata>
   </metadata>
   <files>
   <files>
+    <file src="build\ENet-CSharp.targets" target="build\ENet-CSharp.targets" />
     <file src="lib\net35\ENet-CSharp.dll" target="lib\net35\ENet-CSharp.dll" />
     <file src="lib\net35\ENet-CSharp.dll" target="lib\net35\ENet-CSharp.dll" />
     <file src="lib\net35\enet.dll" target="lib\net35\enet.dll" />
     <file src="lib\net35\enet.dll" target="lib\net35\enet.dll" />
     <file src="lib\net35\enet.dylib" target="lib\net35\enet.dylib" />
     <file src="lib\net35\enet.dylib" target="lib\net35\enet.dylib" />

+ 1 - 1
Source/Managed/ENet.cs

@@ -830,7 +830,7 @@ namespace ENet {
 		public const uint timeoutLimit = 32;
 		public const uint timeoutLimit = 32;
 		public const uint timeoutMinimum = 5000;
 		public const uint timeoutMinimum = 5000;
 		public const uint timeoutMaximum = 30000;
 		public const uint timeoutMaximum = 30000;
-		public const uint version = (2 << 16) | (2 << 8) | (0);
+		public const uint version = (2 << 16) | (2 << 8) | (1);
 
 
 		public static bool Initialize() {
 		public static bool Initialize() {
 			return Native.enet_initialize() == 0;
 			return Native.enet_initialize() == 0;

+ 2 - 2
Source/Native/enet.h

@@ -35,7 +35,7 @@
 
 
 #define ENET_VERSION_MAJOR 2
 #define ENET_VERSION_MAJOR 2
 #define ENET_VERSION_MINOR 2
 #define ENET_VERSION_MINOR 2
-#define ENET_VERSION_PATCH 0
+#define ENET_VERSION_PATCH 1
 #define ENET_VERSION_CREATE(major, minor, patch) (((major) << 16) | ((minor) << 8) | (patch))
 #define ENET_VERSION_CREATE(major, minor, patch) (((major) << 16) | ((minor) << 8) | (patch))
 #define ENET_VERSION_GET_MAJOR(version) (((version) >> 16) & 0xFF)
 #define ENET_VERSION_GET_MAJOR(version) (((version) >> 16) & 0xFF)
 #define ENET_VERSION_GET_MINOR(version) (((version) >> 8) & 0xFF)
 #define ENET_VERSION_GET_MINOR(version) (((version) >> 8) & 0xFF)
@@ -5053,4 +5053,4 @@ extern "C" {
 }
 }
 #endif
 #endif
 #endif
 #endif
-#endif
+#endif