Add the ability to build nuget packages

This commit is contained in:
bradphelan
2016-09-12 17:09:44 +02:00
parent 8e64f34285
commit 5b4627c57d
5 changed files with 83 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
$fakeExe = (gci .\packages\FAKE.*\tools\FAKE.exe)[0]
$scriptPath = (gci .\packages\PackProj.*\scripts\push-all.fsx)[0]
# If you use `nuget setApiKey` then set
$apiKey = ""
# else
# $apikey = "XXXXXXXXXXX"
if ($apiKey) { $apiKeyArg = "-ev api-key $apiKey" } else { $apiKeyArg = "" }
$source = "https://api.nuget.org/v3/index.json"
& $fakeExe $scriptPath -ev source $source $apiKeyArg
+33
View File
@@ -0,0 +1,33 @@
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("System.Numerics.DoubleVectors")]
[assembly: AssemblyDescription("Copy of System.Numerics.Vectors except using double types")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Weingartner Machinenbau")]
[assembly: AssemblyProduct("System.Numerics")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 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("77c07a1a-1451-4ac6-9f17-fe701d41ac05")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
+15
View File
@@ -13,10 +13,15 @@
<OutputPath>bin\$(Configuration)\</OutputPath>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<!-- Default configurations to help VS understand the configurations -->
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<Prefer32Bit>false</Prefer32Bit>
<Optimize>true</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<Prefer32Bit>false</Prefer32Bit>
@@ -35,6 +40,7 @@
</PropertyGroup>
<!-- Shared -->
<ItemGroup>
<Compile Include="AssemblyInfo1.cs" />
<Compile Include="Common\System\Numerics\Hashing\HashHelpers.cs" />
<Compile Include="Strings.Designer.cs">
<AutoGen>True</AutoGen>
@@ -62,6 +68,8 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
<None Include="System.Numerics.DoubleVectors.nuspec" />
<None Include="System\Numerics\GenerationConfig.ttinclude" />
<Content Include="System\Numerics\ConstantHelper.tt">
<Generator>TextTemplatingFileGenerator</Generator>
@@ -83,4 +91,11 @@
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)packages\PackProj.0.2.2\build\PackProj.targets" Condition="Exists('$(SolutionDir)packages\PackProj.0.2.2\build\PackProj.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)packages\PackProj.0.2.2\build\PackProj.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)packages\PackProj.0.2.2\build\PackProj.targets'))" />
</Target>
</Project>
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<licenseUrl>https://opensource.org/licenses/MIT</licenseUrl>
<projectUrl>https://github.com/Weingartner/System.Numerics.DoubleVectors</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Copy of System.Numerics.Vectors except using double types</description>
<releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
<copyright>Copyright 2016</copyright>
<tags>math numerics</tags>
</metadata>
</package>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FAKE" version="4.29.2" targetFramework="net461" />
<package id="NuGet.CommandLine" version="3.4.3" targetFramework="net461" developmentDependency="true" />
<package id="PackProj" version="0.2.2" targetFramework="net461" developmentDependency="true" />
</packages>