Browse Source

Build: drop legacy NuGet packaging build scripts

provider
Christoph Ruegg 12 years ago
parent
commit
41a6639694
  1. 2
      MathNet.Numerics.All.sln
  2. 2
      MathNet.Numerics.sln
  3. 4
      build.fsx
  4. 0
      build/MathNet.Numerics.nuspec
  5. 4
      build/NuGet/.gitignore
  6. 23
      build/NuGet/FSharp.Sample/MathNet.Numerics.FSharp.Sample.nuspec
  7. 23
      build/NuGet/FSharp.Signed/MathNet.Numerics.FSharp.Signed.nuspec
  8. 23
      build/NuGet/FSharp/MathNet.Numerics.FSharp.nuspec
  9. 23
      build/NuGet/Numerics.Sample/MathNet.Numerics.Sample.nuspec
  10. 20
      build/NuGet/Numerics.Signed/MathNet.Numerics.Signed.nuspec
  11. 20
      build/NuGet/Numerics/MathNet.Numerics.nuspec
  12. 83
      build/NuGet/nuget-signed.proj
  13. 93
      build/NuGet/nuget.proj

2
MathNet.Numerics.All.sln

@ -50,7 +50,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{B54A0B40-DE22-49FB-B1C0-6E5BDA3B0B2F}"
ProjectSection(SolutionItems) = preProject
build.fsx = build.fsx
build\NuGet\MathNet.Numerics.nuspec = build\NuGet\MathNet.Numerics.nuspec
build\MathNet.Numerics.nuspec = build\MathNet.Numerics.nuspec
build\packages.config = build\packages.config
EndProjectSection
EndProject

2
MathNet.Numerics.sln

@ -24,7 +24,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{A4A66FA9-C00C-4D5C-A776-27516EA0C536}"
ProjectSection(SolutionItems) = preProject
build.fsx = build.fsx
build\NuGet\MathNet.Numerics.nuspec = build\NuGet\MathNet.Numerics.nuspec
build\MathNet.Numerics.nuspec = build\MathNet.Numerics.nuspec
build\packages.config = build\packages.config
EndProjectSection
EndProject

4
build.fsx

@ -300,7 +300,7 @@ let nugetPack pack =
Files = [ "license.txt", None, None; "readme.txt", None, None; ] @ pack.Files
Publish = false }
NuGet (fun p -> update p) "build/NuGet/MathNet.Numerics.nuspec"
NuGet (fun p -> update p) "build/MathNet.Numerics.nuspec"
NuGet (fun p ->
let p' = update p in
@ -309,7 +309,7 @@ let nugetPack pack =
| (s, t, None) -> Some (s, t, Some ("**/*.pdb"))
| (s, t, Some e) -> Some (s, t, Some (e + ";**/*.pdb")))
SymbolPackage = NugetSymbolPackage.None })
"build/NuGet/MathNet.Numerics.nuspec"
"build/MathNet.Numerics.nuspec"
Target "NuGet" (fun _ ->

0
build/NuGet/MathNet.Numerics.nuspec → build/MathNet.Numerics.nuspec

4
build/NuGet/.gitignore

@ -1,4 +0,0 @@
lib
content
readme.txt
license.txt

23
build/NuGet/FSharp.Sample/MathNet.Numerics.FSharp.Sample.nuspec

@ -1,23 +0,0 @@
<?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.Sample</id>
<version>1.0.0</version>
<title>Math.NET Numerics for F# - Code Samples</title>
<summary>This package contains samples that demonstrate the use of the F# Modules for the Math.NET Numerics library.</summary>
<description>This package contains samples that demonstrate the use of the F# Modules for the Math.NET Numerics library. 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>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg</owners>
<projectUrl>http://numerics.mathdotnet.com/</projectUrl>
<iconUrl>http://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<licenseUrl>http://mathnetnumerics.codeplex.com/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>sample code math fsharp numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft example tutorial</tags>
<dependencies>
<dependency id="MathNet.Numerics.FSharp" version="1.0.0" />
</dependencies>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.Numerics" targetFramework="net40, net45, windows8, sl5" />
</frameworkAssemblies>
</metadata>
</package>

23
build/NuGet/FSharp.Signed/MathNet.Numerics.FSharp.Signed.nuspec

@ -1,23 +0,0 @@
<?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.Signed</id>
<version>1.0.0</version>
<title>Math.NET Numerics for F# - Signed Edition</title>
<summary>F# Modules for Math.NET Numerics, signed and thus with a strong name. We recommend to use MathNet.Numerics.FSharp instead, which is unsigned and weakly named. .Net 4.</summary>
<description>F# Modules for Math.NET Numerics, signed and thus with a strong name. We discourage using this package and recommend using MathNet.Numerics.FSharp instead, which is unsigned and weakly named. Supports .Net 4.0.</description>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg</owners>
<projectUrl>http://numerics.mathdotnet.com/</projectUrl>
<iconUrl>http://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<licenseUrl>http://mathnetnumerics.codeplex.com/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>math fsharp F# numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft signed strongname</tags>
<dependencies>
<dependency id="MathNet.Numerics.Signed" version="1.0.0" />
</dependencies>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.Numerics" targetFramework="net40, net45, windows8, sl5" />
</frameworkAssemblies>
</metadata>
</package>

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

@ -1,23 +0,0 @@
<?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.0</version>
<title>Math.NET Numerics for F#</title>
<summary>F# Modules for Math.NET Numerics, providing methods and algorithms for numerical computations in science, engineering and every day use. F# 3.0 on .Net 4, SL5, Win8, WP8, WPA8.1, PCL 47 and 344, Mono, Xamarin Android/iOS.</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. Supports .Net 4.0 and Mono (Windows, Linux, Mac), PCL Portable Profiles 47 and 344 (Silverlight 5, Windows Phone/SL 8, Windows Phone 8.1, Windows 8), and Android/iOS via Xamarin.</description>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg</owners>
<projectUrl>http://numerics.mathdotnet.com/</projectUrl>
<iconUrl>http://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<licenseUrl>http://mathnetnumerics.codeplex.com/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>math fsharp F# numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft</tags>
<dependencies>
<dependency id="MathNet.Numerics" version="1.0.0" />
</dependencies>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.Numerics" targetFramework="net40, net45, windows8, sl5" />
</frameworkAssemblies>
</metadata>
</package>

23
build/NuGet/Numerics.Sample/MathNet.Numerics.Sample.nuspec

@ -1,23 +0,0 @@
<?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.Sample</id>
<version>1.0.0</version>
<title>Math.NET Numerics - Code Samples</title>
<summary>This package contains samples that demonstrate the use of the Math.NET Numerics library.</summary>
<description>This package contains samples that demonstrate the use of the Math.NET Numerics library. 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>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg</owners>
<projectUrl>http://numerics.mathdotnet.com/</projectUrl>
<iconUrl>http://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<licenseUrl>http://mathnetnumerics.codeplex.com/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>sample code math numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft example tutorial</tags>
<dependencies>
<dependency id="MathNet.Numerics" version="1.0.0" />
</dependencies>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.Numerics" targetFramework="net40, net45, windows8, sl5" />
</frameworkAssemblies>
</metadata>
</package>

20
build/NuGet/Numerics.Signed/MathNet.Numerics.Signed.nuspec

@ -1,20 +0,0 @@
<?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.Signed</id>
<version>1.0.0</version>
<title>Math.NET Numerics - Signed Edition</title>
<summary>Math.NET Numerics, signed and thus with a strong name. We recommend to use MathNet.Numerics instead, which is unsigned and weakly named. .Net 4.</summary>
<description>Math.NET Numerics, signed and thus with a strong name. We discourage using this package and recommend using MathNet.Numerics instead, which is unsigned and weakly named. Supports .Net 4.0.</description>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg</owners>
<projectUrl>http://numerics.mathdotnet.com/</projectUrl>
<iconUrl>http://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<licenseUrl>http://mathnetnumerics.codeplex.com/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>math numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft signed strongname</tags>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.Numerics" targetFramework="net40, net45, windows8, sl5" />
</frameworkAssemblies>
</metadata>
</package>

20
build/NuGet/Numerics/MathNet.Numerics.nuspec

@ -1,20 +0,0 @@
<?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.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. .Net 4, .Net 3.5, SL5, Win8, WP8, WPA8.1, PCL 47 and 344, Mono, Xamarin Android/iOS.</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. Supports .Net 4.0, .Net 3.5 and Mono (Windows, Linux, Mac), PCL Portable Profiles 47 and 344 (Silverlight 5, Windows Phone/SL 8, Windows Phone 8.1, Windows 8), and Android/iOS via Xamarin.</description>
<authors>Christoph Ruegg, Marcus Cuda, Jurgen Van Gael</authors>
<owners>Christoph Ruegg</owners>
<projectUrl>http://numerics.mathdotnet.com/</projectUrl>
<iconUrl>http://www.mathdotnet.com/images/MathNet128.png</iconUrl>
<licenseUrl>http://mathnetnumerics.codeplex.com/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>math numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft</tags>
<frameworkAssemblies>
<frameworkAssembly assemblyName="System.Numerics" targetFramework="net40, net45, windows8, sl5" />
</frameworkAssemblies>
</metadata>
</package>

83
build/NuGet/nuget-signed.proj

@ -1,83 +0,0 @@
<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.Community.Tasks.v1.2.0.306/MSBuild.Community.Tasks.dll" TaskName="MSBuild.Community.Tasks.FileUpdate" />
<PropertyGroup>
<NuGetExe>$(MSBuildProjectDirectory)/../../tools/NuGet/nuget.exe</NuGetExe>
<Root>$(MSBuildProjectDirectory)/../..</Root>
<OutLib>$(MSBuildProjectDirectory)/../../out/lib-signed</OutLib>
<OutNuGetPackages>$(MSBuildProjectDirectory)/../../out/packages/NuGet</OutNuGetPackages>
<NumericsPack>$(MSBuildProjectDirectory)/Numerics.Signed</NumericsPack>
<FSharpPack>$(MSBuildProjectDirectory)/FSharp.Signed</FSharpPack>
</PropertyGroup>
<ItemGroup>
<NumericsNet40 Include="$(OutLib)/Net40/MathNet.Numerics.dll;$(OutLib)/Net40/MathNet.Numerics.pdb;$(OutLib)/Net40/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)/content" />
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(NumericsPack)/readme.txt" />
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(FSharpPack)/readme.txt" />
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(NumericsPack)/license.txt" />
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(FSharpPack)/license.txt" />
<RemoveDir Directories="$(NumericsPack)/lib" />
<Copy SourceFiles="@(NumericsNet40)" DestinationFolder="$(NumericsPack)/lib/net40" />
<RemoveDir Directories="$(FSharpPack)/lib" />
<Copy SourceFiles="@(FSharpNet40)" DestinationFolder="$(FSharpPack)/lib/net40" />
</Target>
<Target Name="UpdateNuspec" DependsOnTargets="CopyContentFiles">
<!-- Evaluate Assembly Identity -->
<GetAssemblyIdentity AssemblyFiles="$(NumericsPack)/lib/Net40/MathNet.Numerics.dll">
<Output TaskParameter="Assemblies" ItemName="NumericsAssemblyInfo"/>
</GetAssemblyIdentity>
<GetAssemblyIdentity AssemblyFiles="$(FSharpPack)/lib/Net40/MathNet.Numerics.FSharp.dll">
<Output TaskParameter="Assemblies" ItemName="FSharpAssemblyInfo"/>
</GetAssemblyIdentity>
<!-- Extract Assembly Versions -->
<PropertyGroup>
<NumericsAssemblyVersion>%(NumericsAssemblyInfo.Version)</NumericsAssemblyVersion>
<FSharpAssemblyVersion>%(FSharpAssemblyInfo.Version)</FSharpAssemblyVersion>
</PropertyGroup>
<!-- Package Versions (skip 4th part/build number, for semvar compliance) -->
<PropertyGroup Condition="'$(semverPackage)' == ''">
<NumericsPackVersion>$(NumericsAssemblyVersion.Substring(0, $(NumericsAssemblyVersion.LastIndexOf('.'))))</NumericsPackVersion>
<FSharpPackVersion>$(FSharpAssemblyVersion.Substring(0, $(FSharpAssemblyVersion.LastIndexOf('.'))))</FSharpPackVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(semverPackage)' != ''">
<NumericsPackVersion>$(semverPackage)</NumericsPackVersion>
<FSharpPackVersion>$(semverPackage)</FSharpPackVersion>
</PropertyGroup>
<XmlUpdate
Prefix="n" Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
XmlFileName="$(NumericsPack)/MathNet.Numerics.Signed.nuspec"
XPath="//package/n:metadata/n:version"
Value="$(NumericsPackVersion)"/>
<XmlUpdate
Prefix="n" Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
XmlFileName="$(FSharpPack)/MathNet.Numerics.FSharp.Signed.nuspec"
XPath="//package/n:metadata/n:version"
Value="$(FSharpPackVersion)"/>
<XmlUpdate
Prefix="n" Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
XmlFileName="$(FSharpPack)/MathNet.Numerics.FSharp.Signed.nuspec"
XPath="//package/n:metadata/n:dependencies/n:dependency[@id='MathNet.Numerics.Signed']/@version"
Value="$(NumericsPackVersion)"/>
</Target>
<Target Name="BuildPackages" DependsOnTargets="UpdateNuspec">
<MakeDir Directories="$(OutNuGetPackages)" />
<Exec Command="$(NuGetExe) pack $(NumericsPack)/MathNet.Numerics.Signed.nuspec -Verbosity detailed -OutputDirectory $(OutNuGetPackages)" />
<Exec Command="$(NuGetExe) pack $(FSharpPack)/MathNet.Numerics.FSharp.Signed.nuspec -Verbosity detailed -OutputDirectory $(OutNuGetPackages)" />
</Target>
</Project>

93
build/NuGet/nuget.proj

@ -1,93 +0,0 @@
<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.Community.Tasks.v1.2.0.306/MSBuild.Community.Tasks.dll" TaskName="MSBuild.Community.Tasks.FileUpdate" />
<PropertyGroup>
<NuGetExe>$(MSBuildProjectDirectory)/../../tools/NuGet/nuget.exe</NuGetExe>
<Root>$(MSBuildProjectDirectory)/../..</Root>
<OutLib>$(MSBuildProjectDirectory)/../../out/lib</OutLib>
<OutNuGetPackages>$(MSBuildProjectDirectory)/../../out/packages/NuGet</OutNuGetPackages>
<NumericsPack>$(MSBuildProjectDirectory)/Numerics</NumericsPack>
<FSharpPack>$(MSBuildProjectDirectory)/FSharp</FSharpPack>
</PropertyGroup>
<ItemGroup>
<NumericsNet40 Include="$(OutLib)/Net40/MathNet.Numerics.dll;$(OutLib)/Net40/MathNet.Numerics.pdb;$(OutLib)/Net40/MathNet.Numerics.xml" />
<NumericsNet35 Include="$(OutLib)/Net35/MathNet.Numerics.dll;$(OutLib)/Net35/MathNet.Numerics.pdb;$(OutLib)/Net35/MathNet.Numerics.xml" />
<NumericsProfile47 Include="$(OutLib)/Profile47/MathNet.Numerics.dll;$(OutLib)/Profile47/MathNet.Numerics.pdb;$(OutLib)/Profile47/MathNet.Numerics.xml;" />
<NumericsProfile344 Include="$(OutLib)/Profile344/MathNet.Numerics.dll;$(OutLib)/Profile344/MathNet.Numerics.pdb;$(OutLib)/Profile344/MathNet.Numerics.xml;" />
<FSharpNet40 Include="$(OutLib)/Net40/MathNet.Numerics.FSharp.dll;$(OutLib)/Net40/MathNet.Numerics.FSharp.pdb;$(OutLib)/Net40/MathNet.Numerics.FSharp.xml" />
<FSharpProfile47 Include="$(OutLib)/Profile47/MathNet.Numerics.FSharp.dll;$(OutLib)/Profile47/MathNet.Numerics.FSharp.pdb;$(OutLib)/Profile47/MathNet.Numerics.FSharp.xml;" />
<FSharpProfile344 Include="$(OutLib)/Profile344/MathNet.Numerics.FSharp.dll;$(OutLib)/Profile344/MathNet.Numerics.FSharp.pdb;$(OutLib)/Profile344/MathNet.Numerics.FSharp.xml;" />
</ItemGroup>
<Target Name="CopyContentFiles">
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(NumericsPack)/readme.txt" />
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(FSharpPack)/readme.txt" />
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(NumericsPack)/license.txt" />
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(FSharpPack)/license.txt" />
<RemoveDir Directories="$(NumericsPack)/lib" />
<Copy SourceFiles="@(NumericsNet40)" DestinationFolder="$(NumericsPack)/lib/net40" />
<Copy SourceFiles="@(NumericsNet35)" DestinationFolder="$(NumericsPack)/lib/net35" />
<Copy SourceFiles="@(NumericsProfile47)" DestinationFolder="$(NumericsPack)/lib/portable-net45+sl5+netcore45+MonoAndroid1+MonoTouch1" />
<Copy SourceFiles="@(NumericsProfile344)" DestinationFolder="$(NumericsPack)/lib/portable-net45+sl5+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1" />
<RemoveDir Directories="$(FSharpPack)/lib" />
<Copy SourceFiles="@(FSharpNet40)" DestinationFolder="$(FSharpPack)/lib/net40" />
<Copy SourceFiles="@(FSharpProfile47)" DestinationFolder="$(FSharpPack)/lib/portable-net45+sl5+netcore45+MonoAndroid1+MonoTouch1" />
<Copy SourceFiles="@(FSharpProfile344)" DestinationFolder="$(FSharpPack)/lib/portable-net45+sl5+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1" />
</Target>
<Target Name="UpdateNuspec" DependsOnTargets="CopyContentFiles">
<!-- Evaluate Assembly Identity -->
<GetAssemblyIdentity AssemblyFiles="$(NumericsPack)/lib/Net40/MathNet.Numerics.dll">
<Output TaskParameter="Assemblies" ItemName="NumericsAssemblyInfo"/>
</GetAssemblyIdentity>
<GetAssemblyIdentity AssemblyFiles="$(FSharpPack)/lib/Net40/MathNet.Numerics.FSharp.dll">
<Output TaskParameter="Assemblies" ItemName="FSharpAssemblyInfo"/>
</GetAssemblyIdentity>
<!-- Extract Assembly Versions -->
<PropertyGroup>
<NumericsAssemblyVersion>%(NumericsAssemblyInfo.Version)</NumericsAssemblyVersion>
<FSharpAssemblyVersion>%(FSharpAssemblyInfo.Version)</FSharpAssemblyVersion>
</PropertyGroup>
<!-- Package Versions (skip 4th part/build number, for semvar compliance) -->
<PropertyGroup Condition="'$(semverPackage)' == ''">
<NumericsPackVersion>$(NumericsAssemblyVersion.Substring(0, $(NumericsAssemblyVersion.LastIndexOf('.'))))</NumericsPackVersion>
<FSharpPackVersion>$(FSharpAssemblyVersion.Substring(0, $(FSharpAssemblyVersion.LastIndexOf('.'))))</FSharpPackVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(semverPackage)' != ''">
<NumericsPackVersion>$(semverPackage)</NumericsPackVersion>
<FSharpPackVersion>$(semverPackage)</FSharpPackVersion>
</PropertyGroup>
<XmlUpdate
Prefix="n" Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
XmlFileName="$(NumericsPack)/MathNet.Numerics.nuspec"
XPath="//package/n:metadata/n:version"
Value="$(NumericsPackVersion)"/>
<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="$(FSharpPackVersion)"/>
<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="$(NumericsPackVersion)"/>
</Target>
<Target Name="BuildPackages" DependsOnTargets="UpdateNuspec">
<MakeDir Directories="$(OutNuGetPackages)" />
<Exec Command="$(NuGetExe) pack $(NumericsPack)/MathNet.Numerics.nuspec -Verbosity detailed -OutputDirectory $(OutNuGetPackages)" />
<Exec Command="$(NuGetExe) pack $(FSharpPack)/MathNet.Numerics.FSharp.nuspec -Verbosity detailed -OutputDirectory $(OutNuGetPackages)" />
</Target>
</Project>
Loading…
Cancel
Save