Jelajahi Sumber

Added nuget package configuration.

csharptest 14 tahun lalu
induk
melakukan
0ce7bed44a
4 mengubah file dengan 137 tambahan dan 0 penghapusan
  1. 57 0
      build/nuget-package.nuspec
  2. 79 0
      build/nuspec.xsd
  3. TEMPAT SAMPAH
      lib/NuGet.exe
  4. 1 0
      src/ProtocolBuffers2008.sln

+ 57 - 0
build/nuget-package.nuspec

@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="nuspec.xsd">
+  <metadata>
+    <id>Google.ProtocolBuffers</id>
+    <version>2.3.0.277</version>
+    <owners>Jon Skeet</owners>
+    <authors>Jon Skeet, Roger Knapp</authors>
+    <licenseUrl>http://code.google.com/p/protobuf-csharp-port/source/browse/license.txt</licenseUrl>
+    <projectUrl>http://code.google.com/p/protobuf-csharp-port/</projectUrl>
+    <requireLicenseAcceptance>false</requireLicenseAcceptance>
+    <copyright>Copyright 2008 Google Inc.  All right s reserved.</copyright>
+    <tags>Protocol Buffers Binary Format Google</tags>
+
+    <title>Google Protocol Buffers</title>
+    <summary>A managed code generator and library for google's data interchange format.</summary>
+    <description><![CDATA[
+Protocol Buffers is a binary serialization format and technology, released to the open source community by Google in 2008.  
+It's primary use is to produce small fast binary representations of a 'message' or object for serialization or transportation.
+There are various implementations of Protocol Buffers in .NET. This project is a fairly close port of the Google Java implementation.
+
+There are two main parts:
+
+tools/protoc.exe, which takes the textual representation of the protocol buffer and turns it into a binary representation for use with ProtoGen.exe.
+tools/ProtoGen.exe, which takes binary representations of protocol buffer descriptors (as generated by the "stock" protoc binary supplied by Google) and creates C# source code. This is only required at build time.
+
+lib/*/Google.ProtocolBuffers.dll, which is a supporting library. This is required at execution time.
+lib/*/Google.ProtocolBuffers.Serialization.dll, a supplimentary library that provides extensions for reading and writing protocol buffers to xml, json, and others.
+
+LINKS:
+
+Project Home    - http://code.google.com/p/protobuf-csharp-port
+Online Help     - http://help.protobuffers.net
+Developer Guide - http://code.google.com/apis/protocolbuffers/docs/overview.html
+Language Guide  - http://code.google.com/apis/protocolbuffers/docs/proto.html
+Protoc Project  - http://code.google.com/p/protobuf
+
+    ]]></description>
+  </metadata>
+  <files>
+    <!-- Release Binaries -->
+    <file src="2.3.0.277\Release\Google.ProtocolBuffers.dll" target="lib\net20" />
+    <file src="2.3.0.277\Release\Google.ProtocolBuffers.*.dll" target="lib\net20" />
+    <!-- Silverlight Binaries -->
+    <file src="2.3.0.277\Release_Silverlight2\Google.ProtocolBuffers.dll" target="lib\sl20" />
+    <file src="2.3.0.277\Release_Silverlight2\Google.ProtocolBuffers.*.dll" target="lib\sl20" />
+    <!-- Tools -->
+    <file src="2.3.0.277\Protoc\*.exe" target="tools" />
+    <file src="2.3.0.277\Release\Google.ProtocolBuffers.dll" target="tools" />
+    <file src="2.3.0.277\Release\*.exe" target="tools" />
+    <file src="2.3.0.277\Release\*.exe.config" target="tools" />
+    <!-- Content -->
+    <file src="2.3.0.277\license.txt" target="content\licenses"/>
+    <file src="2.3.0.277\Protoc\protoc-license.txt" target="content\licenses"/>
+    <file src="2.3.0.277\protos\google\protobuf\descriptor.proto" target="content\protos\google\protobuf" />
+    <file src="2.3.0.277\protos\google\protobuf\csharp_options.proto" target="content\protos\google\protobuf" />
+  </files>
+</package>

+ 79 - 0
build/nuspec.xsd

@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- original location: https://hg01.codeplex.com/nuget/raw-file/tip/src/Core/Authoring/nuspec.xsd -->
+<xs:schema id="nuspec" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+    <xs:element name="package">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="metadata" maxOccurs="1" minOccurs="1">
+                    <xs:complexType>
+                        <xs:all>
+                            <xs:element name="id" maxOccurs="1" minOccurs="1" type="xs:string" />
+                            <xs:element name="version" maxOccurs="1" minOccurs="1" type="xs:string" />
+                            <xs:element name="title" maxOccurs="1" minOccurs="0" type="xs:string" />
+                            <xs:element name="authors" maxOccurs="1" minOccurs="1" type="xs:string" />
+                            <xs:element name="owners" maxOccurs="1" minOccurs="0" type="xs:string" />
+                            <xs:element name="licenseUrl" maxOccurs="1" minOccurs="0" type="xs:anyURI" />
+                            <xs:element name="projectUrl" maxOccurs="1" minOccurs="0" type="xs:anyURI" />
+                            <xs:element name="iconUrl" maxOccurs="1" minOccurs="0" type="xs:anyURI" />
+                            <xs:element name="requireLicenseAcceptance" maxOccurs="1" minOccurs="0" type="xs:boolean" />
+                            <xs:element name="description" maxOccurs="1" minOccurs="1" type="xs:string" />
+                            <xs:element name="summary" maxOccurs="1" minOccurs="0" type="xs:string" />
+                            <xs:element name="releaseNotes" maxOccurs="1" minOccurs="0" type="xs:string" />
+                            <xs:element name="copyright" maxOccurs="1" minOccurs="0" type="xs:string" />
+                            <xs:element name="language" maxOccurs="1" minOccurs="0" type="xs:string" default="en-US" />
+                            <xs:element name="tags" maxOccurs="1" minOccurs="0" type="xs:string" />
+                            <xs:element name="dependencies" maxOccurs="1" minOccurs="0">
+                                <xs:complexType>
+                                    <xs:sequence>
+                                        <xs:element name="dependency" minOccurs="0" maxOccurs="unbounded">
+                                            <xs:complexType>
+                                                <xs:attribute name="id" type="xs:string" use="required" />
+                                                <xs:attribute name="version" type="xs:string" use="optional" />
+                                            </xs:complexType>
+                                        </xs:element>
+                                    </xs:sequence>
+                                </xs:complexType>
+                            </xs:element>
+                            <xs:element name="frameworkAssemblies" maxOccurs="1" minOccurs="0">
+                                <xs:complexType>
+                                    <xs:sequence>
+                                        <xs:element name="frameworkAssembly" minOccurs="0" maxOccurs="unbounded">
+                                            <xs:complexType>
+                                                <xs:attribute name="assemblyName" type="xs:string" use="required" />
+                                                <xs:attribute name="targetFramework" type="xs:string" use="optional" />
+                                            </xs:complexType>
+                                        </xs:element>
+                                    </xs:sequence>
+                                </xs:complexType>
+                            </xs:element>
+                            <xs:element name="references" maxOccurs="1" minOccurs="0">
+                                <xs:complexType>
+                                    <xs:sequence>
+                                        <xs:element name="reference" minOccurs="0" maxOccurs="unbounded">
+                                            <xs:complexType>
+                                                <xs:attribute name="file" type="xs:string" use="required" />
+                                            </xs:complexType>
+                                        </xs:element>
+                                    </xs:sequence>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:all>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="files" minOccurs="0" maxOccurs="1" nillable="true">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="file" minOccurs="0" maxOccurs="unbounded">
+                                <xs:complexType>
+                                    <xs:attribute name="src" use="required" type="xs:string" />
+                                    <xs:attribute name="target" use="optional" type="xs:string" />
+                                    <xs:attribute name="exclude" use="optional" type="xs:string" />
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+</xs:schema>

TEMPAT SAMPAH
lib/NuGet.exe


+ 1 - 0
src/ProtocolBuffers2008.sln

@@ -63,6 +63,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{66ED1950
 		..\build\Common.targets = ..\build\Common.targets
 		..\build\GenerateCompletePackage.bat = ..\build\GenerateCompletePackage.bat
 		..\build\GenerateReleasePackage.bat = ..\build\GenerateReleasePackage.bat
+		..\build\nuget-package.nuspec = ..\build\nuget-package.nuspec
 		..\build\PublishRelease.bat = ..\build\PublishRelease.bat
 		..\build\RunBenchmarks.bat = ..\build\RunBenchmarks.bat
 	EndProjectSection