Browse Source

CI: Additional NuGet package for FSharp modules

pull/36/head
Christoph Ruegg 16 years ago
parent
commit
f390f85dac
  1. 28
      build/NuGet/FSharp/MathNet.Numerics.FSharp.nuspec
  2. 50
      build/NuGet/Numerics/MathNet.Numerics.nuspec
  3. 33
      build/NuGet/nuget.proj

28
build/NuGet/FSharp/MathNet.Numerics.FSharp.nuspec

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>MathNet.Numerics.FSharp</id>
<version>1.0</version>
<title>Math.NET Numerics Extension: F# Modules</title>
<summary>
F# Modules for Math.NET Numerics, providing methods and algorithms for
numerical computations in science, engineering and every day use.
</summary>
<description>
F# Modules for Math.NET Numerics, the numerical foundation of the Math.NET project,
aiming to provide methods and algorithms for numerical computations
in science, engineering and every day use. Numerics is the result
of merging dnAnalytics with Math.NET Iridium and is intended to replace both.
</description>
<authors>Marcus Cuda, Christoph Ruegg, Jurgen Van Gael</authors>
<owners>Christoph Ruegg</owners>
<projectUrl>http://numerics.mathdotnet.com/</projectUrl>
<iconUrl>http://www.mathdotnet.com/images/MathNet32.png</iconUrl>
<licenseUrl>http://mathnetnumerics.codeplex.com/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft</tags>
<dependencies>
<dependency id="MathNet.Numerics" version="1.0" />
</dependencies>
</metadata>
</package>

50
build/NuGet/Numerics/MathNet.Numerics.nuspec

@ -1,28 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>MathNet.Numerics</id>
<version>1.0</version>
<title>Math.NET Numerics</title>
<summary>
Math.NET Numerics, providing methods and algorithms for
numerical computations in science, engineering and every day use.
</summary>
<description>
Math.NET Numerics is the numerical foundation of the Math.NET project,
aiming to provide methods and algorithms for numerical computations
in science, engineering and every day use. Numerics is the result
of merging dnAnalytics with Math.NET Iridium and is intended to replace both.
</description>
<authors>Marcus Cuda, Christoph Ruegg, Jurgen Van Gael</authors>
<owners>Christoph Ruegg</owners>
<projectUrl>http://numerics.mathdotnet.com/</projectUrl>
<iconUrl>http://www.mathdotnet.com/images/MathNet32.png</iconUrl>
<licenseUrl>http://mathnetnumerics.codeplex.com/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft</tags>
<dependencies>
<dependency id="zlib.net" version="1.0" />
</dependencies>
</metadata>
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>MathNet.Numerics</id>
<version>1.0</version>
<title>Math.NET Numerics</title>
<summary>
Math.NET Numerics, providing methods and algorithms for
numerical computations in science, engineering and every day use.
</summary>
<description>
Math.NET Numerics is the numerical foundation of the Math.NET project,
aiming to provide methods and algorithms for numerical computations
in science, engineering and every day use. Numerics is the result
of merging dnAnalytics with Math.NET Iridium and is intended to replace both.
</description>
<authors>Marcus Cuda, Christoph Ruegg, Jurgen Van Gael</authors>
<owners>Christoph Ruegg</owners>
<projectUrl>http://numerics.mathdotnet.com/</projectUrl>
<iconUrl>http://www.mathdotnet.com/images/MathNet32.png</iconUrl>
<licenseUrl>http://mathnetnumerics.codeplex.com/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>math numeric statistics probability integration interpolation linear algebra matrix fft</tags>
<dependencies>
<dependency id="zlib.net" version="1.0" />
</dependencies>
</metadata>
</package>

33
build/NuGet/nuget.proj

@ -1,43 +1,56 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="BuildPackages" ToolsVersion="4.0">
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)/../MSBuild.Community.Tasks.v1.2.0.306/MSBuild.Community.Tasks.dll" TaskName="MSBuild.Community.Tasks.XmlUpdate" />
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)/../MSBuild.ExtensionPack.4.0.2.0/MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.RoboCopy" />
<PropertyGroup>
<OutLib>$(MSBuildProjectDirectory)/../../out/lib</OutLib>
<OutNuGetPackages>$(MSBuildProjectDirectory)/../../out/packages/NuGet</OutNuGetPackages>
<NumericsPack>$(MSBuildProjectDirectory)/Numerics</NumericsPack>
<FSharpPack>$(MSBuildProjectDirectory)/FSharp</FSharpPack>
<NuGetExe>$(MSBuildProjectDirectory)/../../tools/NuGet-1.2/NuGet.exe</NuGetExe>
</PropertyGroup>
<ItemGroup>
<NumericsNet40 Include="
$(OutLib)/Net40/MathNet.Numerics.dll;$(OutLib)/Net40/MathNet.Numerics.pdb;$(OutLib)/Net40/MathNet.Numerics.xml" />
<NumericsSL4 Include="
$(OutLib)/SL4/MathNet.Numerics.dll;$(OutLib)/SL4/MathNet.Numerics.pdb;$(OutLib)/SL4/MathNet.Numerics.xml;" />
<NumericsNet40 Include="$(OutLib)/Net40/MathNet.Numerics.dll;$(OutLib)/Net40/MathNet.Numerics.pdb;$(OutLib)/Net40/MathNet.Numerics.xml" />
<NumericsSL4 Include="$(OutLib)/SL4/MathNet.Numerics.dll;$(OutLib)/SL4/MathNet.Numerics.pdb;$(OutLib)/SL4/MathNet.Numerics.xml;" />
<FSharpNet40 Include="$(OutLib)/Net40/MathNet.Numerics.FSharp.dll;$(OutLib)/Net40/MathNet.Numerics.FSharp.pdb;$(OutLib)/Net40/MathNet.Numerics.FSharp.xml" />
</ItemGroup>
<Target Name="CopyContentFiles">
<RemoveDir Directories="$(NumericsPack)/lib" />
<Copy SourceFiles="@(NumericsNet40)" DestinationFolder="$(NumericsPack)/lib/Net40" />
<Copy SourceFiles="@(NumericsSL4)" DestinationFolder="$(NumericsPack)/lib/SL4" />
<!-- <RoboCopy Source="$(MSBuildProjectDirectory)/../../out/lib/" Destination="$(MSBuildProjectDirectory)/Numerics/lib" Files="*.*" Options="/MIR" /> -->
<RemoveDir Directories="$(FSharpPack)/lib" />
<Copy SourceFiles="@(FSharpNet40)" DestinationFolder="$(FSharpPack)/lib/Net40" />
</Target>
<Target Name="UpdateNuspec" DependsOnTargets="CopyContentFiles">
<GetAssemblyIdentity AssemblyFiles="$(NumericsPack)/lib/Net40/MathNet.Numerics.dll">
<Output TaskParameter="Assemblies" ItemName="MathNetNumericsAssemblyInfo"/>
<Output TaskParameter="Assemblies" ItemName="NumericsAssemblyInfo"/>
</GetAssemblyIdentity>
<GetAssemblyIdentity AssemblyFiles="$(FSharpPack)/lib/Net40/MathNet.Numerics.FSharp.dll">
<Output TaskParameter="Assemblies" ItemName="FSharpAssemblyInfo"/>
</GetAssemblyIdentity>
<XmlUpdate
Prefix="n"
Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
Prefix="n" Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
XmlFileName="$(NumericsPack)/MathNet.Numerics.nuspec"
XPath="//package/n:metadata/n:version"
Value="%(MathNetNumericsAssemblyInfo.Version)"/>
Value="%(NumericsAssemblyInfo.Version)"/>
<XmlUpdate
Prefix="n" Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
XmlFileName="$(FSharpPack)/MathNet.Numerics.FSharp.nuspec"
XPath="//package/n:metadata/n:version"
Value="%(FSharpAssemblyInfo.Version)"/>
<XmlUpdate
Prefix="n" Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
XmlFileName="$(FSharpPack)/MathNet.Numerics.FSharp.nuspec"
XPath="//package/n:metadata/n:dependencies/n:dependency[@id='MathNet.Numerics']/@version"
Value="%(NumericsAssemblyInfo.Version)"/>
</Target>
<Target Name="BuildPackages" DependsOnTargets="UpdateNuspec">
<MakeDir Directories="$(OutNuGetPackages)" />
<Exec Command="$(NuGetExe) pack $(NumericsPack)/MathNet.Numerics.nuspec /v /o $(OutNuGetPackages)" />
<Exec Command="$(NuGetExe) pack $(FSharpPack)/MathNet.Numerics.FSharp.nuspec /v /o $(OutNuGetPackages)" />
</Target>
</Project>
Loading…
Cancel
Save