Browse Source

Creating nuget package

Sebastien Ros 11 years ago
parent
commit
fee161b60c
4 changed files with 32 additions and 41 deletions
  1. 8 24
      Jint.Repl/Properties/AssemblyInfo.cs
  2. 4 0
      Jint/Jint.csproj
  3. 15 0
      Jint/Jint.nuspec
  4. 5 17
      Jint/Properties/AssemblyInfo.cs

+ 8 - 24
Jint.Repl/Properties/AssemblyInfo.cs

@@ -1,36 +1,20 @@
 using System.Reflection;
+using System.Resources;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 
 // General Information about an assembly is controlled through the following 
 // set of attributes. Change these attribute values to modify the information
 // associated with an assembly.
-[assembly: AssemblyTitle("Jint.Repl")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyTitle("Jint CLI")]
+[assembly: AssemblyDescription("Javascript Interpreter for .NET")]
 [assembly: AssemblyConfiguration("")]
 [assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Jint.Repl")]
-[assembly: AssemblyCopyright("Copyright ©  2013")]
+[assembly: AssemblyProduct("Jint")]
+[assembly: AssemblyCopyright("Copyright © Sébastien Ros 2013")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]
+[assembly: NeutralResourcesLanguage("en")]
 
-// Setting ComVisible to false makes the types in this assembly not visible 
-// to COM components.  If you need to access a type in this assembly from 
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("52865b1f-b3dc-40ff-afaa-f7c17f515b16")]
-
-// Version information for an assembly consists of the following four values:
-//
-//      Major Version
-//      Minor Version 
-//      Build Number
-//      Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers 
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("2.0.0")]
+[assembly: AssemblyFileVersion("2.0.0")]

+ 4 - 0
Jint/Jint.csproj

@@ -193,6 +193,10 @@
     <None Include="Jint.snk" />
   </ItemGroup>
   <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
+  <PropertyGroup>
+    <PostBuildEvent>md "$(SolutionDir)build"
+"$(SolutionDir).nuget\nuget.exe" pack "$(ProjectPath)" -Prop Configuration=Release -OutputDirectory "$(SolutionDir)build"</PostBuildEvent>
+  </PropertyGroup>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
   <Target Name="BeforeBuild">

+ 15 - 0
Jint/Jint.nuspec

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+  <metadata>
+    <id>Jint</id>
+    <version>$version$</version>
+    <owners>$author$</owners>
+    <authors>$author$</authors>
+    <description>$description$</description>
+    <language>en-US</language>
+    <projectUrl>http://github.com/sebastienros/jint</projectUrl>
+    <licenseUrl>https://raw.github.com/sebastienros/jint/master/LICENSE.txt</licenseUrl>
+    <releaseNotes>Complete rewrite as a PCL (Portable Class library).</releaseNotes>
+    <tags>javascript interpreter</tags>
+  </metadata>
+</package>

+ 5 - 17
Jint/Properties/AssemblyInfo.cs

@@ -1,30 +1,18 @@
 using System.Resources;
 using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
 
 // General Information about an assembly is controlled through the following 
 // set of attributes. Change these attribute values to modify the information
 // associated with an assembly.
-[assembly: AssemblyTitle("PortableClassLibrary1")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyTitle("Jint")]
+[assembly: AssemblyDescription("Javascript Interpreter for .NET")]
 [assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
+[assembly: AssemblyCompany("Sebastien Ros")]
 [assembly: AssemblyProduct("Jint")]
 [assembly: AssemblyCopyright("Copyright © Sébastien Ros 2013")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]
 [assembly: NeutralResourcesLanguage("en")]
 
-// Version information for an assembly consists of the following four values:
-//
-//      Major Version
-//      Minor Version 
-//      Build Number
-//      Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers 
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("2.0.0")]
+[assembly: AssemblyFileVersion("2.0.0")]