Add nuget building
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,6 @@
|
|||||||
/.vs/*
|
/.vs/*
|
||||||
*/bin/*
|
*/bin/*
|
||||||
*/obj/*
|
*/obj/*
|
||||||
|
*.nupkg
|
||||||
|
/packages/*
|
||||||
|
*.user
|
||||||
|
|||||||
25
VAR.ExpressionEvaluator/Build.NuGet.cmd
Normal file
25
VAR.ExpressionEvaluator/Build.NuGet.cmd
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
:: MSBuild and tools path
|
||||||
|
if exist "%windir%\Microsoft.Net\Framework\v4.0.30319" set MsBuildPath=%windir%\Microsoft.NET\Framework\v4.0.30319
|
||||||
|
if exist "%windir%\Microsoft.Net\Framework64\v4.0.30319" set MsBuildPath=%windir%\Microsoft.NET\Framework64\v4.0.30319
|
||||||
|
if exist "C:\Program Files (x86)\MSBuild\14.0\Bin" set MsBuildPath=C:\Program Files (x86)\MSBuild\14.0\Bin
|
||||||
|
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin" set MsBuildPath=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin
|
||||||
|
set PATH=%MsBuildPath%;%PATH%
|
||||||
|
|
||||||
|
echo %MsBuildPath%
|
||||||
|
|
||||||
|
:: NuGet
|
||||||
|
set nuget="nuget"
|
||||||
|
if exist "%~dp0\..\packages\NuGet.CommandLine.5.3.1\tools\NuGet.exe" set nuget="%~dp0\..\packages\NuGet.CommandLine.5.3.1\tools\NuGet.exe"
|
||||||
|
|
||||||
|
:: Release
|
||||||
|
Title Building Release
|
||||||
|
msbuild VAR.ExpressionEvaluator.csproj /t:Build /p:Configuration="Release" /p:Platform="AnyCPU"
|
||||||
|
|
||||||
|
:: Packing Nuget
|
||||||
|
Title Packing Nuget
|
||||||
|
%nuget% pack VAR.ExpressionEvaluator.csproj -Verbosity detailed -OutputDir "NuGet" -Properties Configuration="Release" -Prop Platform=AnyCPU
|
||||||
|
|
||||||
|
title Finished
|
||||||
|
pause
|
||||||
0
VAR.ExpressionEvaluator/Nuget/keep.txt
Normal file
0
VAR.ExpressionEvaluator/Nuget/keep.txt
Normal file
@@ -2,9 +2,9 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
[assembly: AssemblyTitle("VAR.ExpressionEvaluator")]
|
[assembly: AssemblyTitle("VAR.ExpressionEvaluator")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("Expression Evaluation Library")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("VAR")]
|
||||||
[assembly: AssemblyProduct("VAR.ExpressionEvaluator")]
|
[assembly: AssemblyProduct("VAR.ExpressionEvaluator")]
|
||||||
[assembly: AssemblyCopyright("Copyright © VAR 2019")]
|
[assembly: AssemblyCopyright("Copyright © VAR 2019")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
|
|||||||
@@ -71,5 +71,10 @@
|
|||||||
<Compile Include="Token.cs" />
|
<Compile Include="Token.cs" />
|
||||||
<Compile Include="Tokenizer.cs" />
|
<Compile Include="Tokenizer.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Build.NuGet.cmd" />
|
||||||
|
<None Include="packages.config" />
|
||||||
|
<None Include="VAR.ExpressionEvaluator.nuspec" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
20
VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.nuspec
Normal file
20
VAR.ExpressionEvaluator/VAR.ExpressionEvaluator.nuspec
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<package >
|
||||||
|
<metadata>
|
||||||
|
<id>$id$</id>
|
||||||
|
<version>$version$</version>
|
||||||
|
<title>$title$</title>
|
||||||
|
<authors>$author$</authors>
|
||||||
|
<owners>$author$</owners>
|
||||||
|
<licenseUrl>https://varstudio.net/VAR.ExpressionEvaluator/LICENSE.txt</licenseUrl>
|
||||||
|
<projectUrl>https://varstudio.net/VAR.ExpressionEvaluator</projectUrl>
|
||||||
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
|
<description>$description$</description>
|
||||||
|
<copyright>Copyright VAR 2019</copyright>
|
||||||
|
<tags>Expression Evaluation</tags>
|
||||||
|
</metadata>
|
||||||
|
<files>
|
||||||
|
<file src="bin\Release\VAR.ExpressionEvaluator.dll" target="lib\net461\VAR.ExpressionEvaluator.dll" />
|
||||||
|
<file src="bin\Release\VAR.ExpressionEvaluator.pdb" target="lib\net461\VAR.ExpressionEvaluator.pdb" />
|
||||||
|
</files>
|
||||||
|
</package>
|
||||||
4
VAR.ExpressionEvaluator/packages.config
Normal file
4
VAR.ExpressionEvaluator/packages.config
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="NuGet.CommandLine" version="5.3.1" targetFramework="net461" developmentDependency="true" />
|
||||||
|
</packages>
|
||||||
Reference in New Issue
Block a user