forked from tsai/mathnet-numerics
4 changed files with 243 additions and 196 deletions
@ -0,0 +1,23 @@ |
|||||
|
<?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 discourage using this package and recommend using MathNet.Numerics.FSharp instead, which is unsigned and weakly named.</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.</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 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> |
||||
@ -1,55 +1,79 @@ |
|||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="BuildPackages" ToolsVersion="4.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.XmlUpdate" /> |
||||
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)/../MSBuild.Community.Tasks.v1.2.0.306/MSBuild.Community.Tasks.dll" TaskName="MSBuild.Community.Tasks.FileUpdate" /> |
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)/../MSBuild.Community.Tasks.v1.2.0.306/MSBuild.Community.Tasks.dll" TaskName="MSBuild.Community.Tasks.FileUpdate" /> |
||||
|
|
||||
<PropertyGroup> |
<PropertyGroup> |
||||
<Root>$(MSBuildProjectDirectory)/../..</Root> |
<NuGetExe>$(MSBuildProjectDirectory)/../../tools/NuGet/nuget.exe</NuGetExe> |
||||
<OutLib>$(MSBuildProjectDirectory)/../../out/lib</OutLib> |
<Root>$(MSBuildProjectDirectory)/../..</Root> |
||||
<OutNuGetPackages>$(MSBuildProjectDirectory)/../../out/packages/NuGet</OutNuGetPackages> |
<OutLib>$(MSBuildProjectDirectory)/../../out/signed</OutLib> |
||||
<NumericsPack>$(MSBuildProjectDirectory)/Numerics.Signed</NumericsPack> |
<OutNuGetPackages>$(MSBuildProjectDirectory)/../../out/packages/NuGet</OutNuGetPackages> |
||||
<NuGetExe>$(MSBuildProjectDirectory)/../../tools/NuGet/nuget.exe</NuGetExe> |
<NumericsPack>$(MSBuildProjectDirectory)/Numerics.Signed</NumericsPack> |
||||
</PropertyGroup> |
<FSharpPack>$(MSBuildProjectDirectory)/FSharp.Signed</FSharpPack> |
||||
|
</PropertyGroup> |
||||
<ItemGroup> |
|
||||
<NumericsNet40 Include="$(OutLib)/Net40/MathNet.Numerics.dll;$(OutLib)/Net40/MathNet.Numerics.IO.dll;$(OutLib)/Net40/MathNet.Numerics.pdb;$(OutLib)/Net40/MathNet.Numerics.IO.pdb;$(OutLib)/Net40/MathNet.Numerics.xml;$(OutLib)/Net40/MathNet.Numerics.IO.xml" /> |
<ItemGroup> |
||||
</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" /> |
||||
<Target Name="CopyContentFiles"> |
</ItemGroup> |
||||
<RemoveDir Directories="$(NumericsPack)/content" /> |
|
||||
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(NumericsPack)/readme.txt" /> |
<Target Name="CopyContentFiles"> |
||||
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(NumericsPack)/license.txt" /> |
<RemoveDir Directories="$(NumericsPack)/content" /> |
||||
|
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(NumericsPack)/readme.txt" /> |
||||
<RemoveDir Directories="$(NumericsPack)/lib" /> |
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(FSharpPack)/readme.txt" /> |
||||
<Copy SourceFiles="@(NumericsNet40)" DestinationFolder="$(NumericsPack)/lib/net40" /> |
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(NumericsPack)/license.txt" /> |
||||
</Target> |
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(FSharpPack)/license.txt" /> |
||||
|
|
||||
<Target Name="UpdateNuspec" DependsOnTargets="CopyContentFiles"> |
<RemoveDir Directories="$(NumericsPack)/lib" /> |
||||
|
<Copy SourceFiles="@(NumericsNet40)" DestinationFolder="$(NumericsPack)/lib/net40" /> |
||||
<!-- Evaluate Assembly Identity --> |
|
||||
<GetAssemblyIdentity AssemblyFiles="$(NumericsPack)/lib/Net40/MathNet.Numerics.dll"> |
<RemoveDir Directories="$(FSharpPack)/lib" /> |
||||
<Output TaskParameter="Assemblies" ItemName="NumericsAssemblyInfo"/> |
<Copy SourceFiles="@(FSharpNet40)" DestinationFolder="$(FSharpPack)/lib/net40" /> |
||||
</GetAssemblyIdentity> |
</Target> |
||||
|
|
||||
<!-- Extract Assembly Versions --> |
<Target Name="UpdateNuspec" DependsOnTargets="CopyContentFiles"> |
||||
<PropertyGroup> |
|
||||
<NumericsAssemblyVersion>%(NumericsAssemblyInfo.Version)</NumericsAssemblyVersion> |
<!-- Evaluate Assembly Identity --> |
||||
</PropertyGroup> |
<GetAssemblyIdentity AssemblyFiles="$(NumericsPack)/lib/Net40/MathNet.Numerics.dll"> |
||||
|
<Output TaskParameter="Assemblies" ItemName="NumericsAssemblyInfo"/> |
||||
<!-- Package Versions (skip 4th part/build number, for semvar compliance) --> |
</GetAssemblyIdentity> |
||||
<PropertyGroup> |
<GetAssemblyIdentity AssemblyFiles="$(FSharpPack)/lib/Net40/MathNet.Numerics.FSharp.dll"> |
||||
<NumericsPackVersion>$(NumericsAssemblyVersion.Substring(0, $(NumericsAssemblyVersion.LastIndexOf('.'))))</NumericsPackVersion> |
<Output TaskParameter="Assemblies" ItemName="FSharpAssemblyInfo"/> |
||||
</PropertyGroup> |
</GetAssemblyIdentity> |
||||
|
|
||||
<XmlUpdate |
<!-- Extract Assembly Versions --> |
||||
Prefix="n" Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" |
<PropertyGroup> |
||||
XmlFileName="$(NumericsPack)/MathNet.Numerics.Signed.nuspec" |
<NumericsAssemblyVersion>%(NumericsAssemblyInfo.Version)</NumericsAssemblyVersion> |
||||
XPath="//package/n:metadata/n:version" |
<FSharpAssemblyVersion>%(FSharpAssemblyInfo.Version)</FSharpAssemblyVersion> |
||||
Value="$(NumericsPackVersion)"/> |
</PropertyGroup> |
||||
</Target> |
|
||||
|
<!-- Package Versions (skip 4th part/build number, for semvar compliance) --> |
||||
<Target Name="BuildPackages" DependsOnTargets="UpdateNuspec"> |
<PropertyGroup> |
||||
<MakeDir Directories="$(OutNuGetPackages)" /> |
<NumericsPackVersion>$(NumericsAssemblyVersion.Substring(0, $(NumericsAssemblyVersion.LastIndexOf('.'))))</NumericsPackVersion> |
||||
<Exec Command="$(NuGetExe) pack $(NumericsPack)/MathNet.Numerics.Signed.nuspec /Verbose /OutputDirectory $(OutNuGetPackages)" /> |
<FSharpPackVersion>$(FSharpAssemblyVersion.Substring(0, $(FSharpAssemblyVersion.LastIndexOf('.'))))</FSharpPackVersion> |
||||
</Target> |
</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> |
</Project> |
||||
@ -1,145 +1,145 @@ |
|||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="BuildPackages" ToolsVersion="4.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.XmlUpdate" /> |
||||
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)/../MSBuild.Community.Tasks.v1.2.0.306/MSBuild.Community.Tasks.dll" TaskName="MSBuild.Community.Tasks.FileUpdate" /> |
<UsingTask AssemblyFile="$(MSBuildProjectDirectory)/../MSBuild.Community.Tasks.v1.2.0.306/MSBuild.Community.Tasks.dll" TaskName="MSBuild.Community.Tasks.FileUpdate" /> |
||||
|
|
||||
<PropertyGroup> |
<PropertyGroup> |
||||
<Root>$(MSBuildProjectDirectory)/../..</Root> |
<NuGetExe>$(MSBuildProjectDirectory)/../../tools/NuGet/nuget.exe</NuGetExe> |
||||
<Examples>$(MSBuildProjectDirectory)/../../src/Examples</Examples> |
<Root>$(MSBuildProjectDirectory)/../..</Root> |
||||
<FSharpExamples>$(MSBuildProjectDirectory)/../../src/FSharpExamples</FSharpExamples> |
<OutLib>$(MSBuildProjectDirectory)/../../out/lib</OutLib> |
||||
<OutLib>$(MSBuildProjectDirectory)/../../out/lib</OutLib> |
<OutNuGetPackages>$(MSBuildProjectDirectory)/../../out/packages/NuGet</OutNuGetPackages> |
||||
<OutNuGetPackages>$(MSBuildProjectDirectory)/../../out/packages/NuGet</OutNuGetPackages> |
<NumericsPack>$(MSBuildProjectDirectory)/Numerics</NumericsPack> |
||||
<NumericsPack>$(MSBuildProjectDirectory)/Numerics</NumericsPack> |
<FSharpPack>$(MSBuildProjectDirectory)/FSharp</FSharpPack> |
||||
<FSharpPack>$(MSBuildProjectDirectory)/FSharp</FSharpPack> |
<NumericsSamplePack>$(MSBuildProjectDirectory)/Numerics.Sample</NumericsSamplePack> |
||||
<NumericsSamplePack>$(MSBuildProjectDirectory)/Numerics.Sample</NumericsSamplePack> |
<FSharpSamplePack>$(MSBuildProjectDirectory)/FSharp.Sample</FSharpSamplePack> |
||||
<FSharpSamplePack>$(MSBuildProjectDirectory)/FSharp.Sample</FSharpSamplePack> |
<Examples>$(MSBuildProjectDirectory)/../../src/Examples</Examples> |
||||
<NuGetExe>$(MSBuildProjectDirectory)/../../tools/NuGet/nuget.exe</NuGetExe> |
<FSharpExamples>$(MSBuildProjectDirectory)/../../src/FSharpExamples</FSharpExamples> |
||||
</PropertyGroup> |
</PropertyGroup> |
||||
|
|
||||
<ItemGroup> |
<ItemGroup> |
||||
<NumericsNet40 Include="$(OutLib)/Net40/MathNet.Numerics.dll;$(OutLib)/Net40/MathNet.Numerics.pdb;$(OutLib)/Net40/MathNet.Numerics.xml" /> |
<NumericsNet40 Include="$(OutLib)/Net40/MathNet.Numerics.dll;$(OutLib)/Net40/MathNet.Numerics.pdb;$(OutLib)/Net40/MathNet.Numerics.xml" /> |
||||
<NumericsPortable47 Include="$(OutLib)/Portable47/MathNet.Numerics.dll;$(OutLib)/Portable47/MathNet.Numerics.pdb;$(OutLib)/Portable47/MathNet.Numerics.xml;" /> |
<NumericsPortable47 Include="$(OutLib)/Portable47/MathNet.Numerics.dll;$(OutLib)/Portable47/MathNet.Numerics.pdb;$(OutLib)/Portable47/MathNet.Numerics.xml;" /> |
||||
<NumericsPortable136 Include="$(OutLib)/Portable136/MathNet.Numerics.dll;$(OutLib)/Portable136/MathNet.Numerics.pdb;$(OutLib)/Portable136/MathNet.Numerics.xml;" /> |
<NumericsPortable136 Include="$(OutLib)/Portable136/MathNet.Numerics.dll;$(OutLib)/Portable136/MathNet.Numerics.pdb;$(OutLib)/Portable136/MathNet.Numerics.xml;" /> |
||||
<FSharpNet40 Include="$(OutLib)/Net40/MathNet.Numerics.FSharp.dll;$(OutLib)/Net40/MathNet.Numerics.FSharp.pdb;$(OutLib)/Net40/MathNet.Numerics.FSharp.xml" /> |
<FSharpNet40 Include="$(OutLib)/Net40/MathNet.Numerics.FSharp.dll;$(OutLib)/Net40/MathNet.Numerics.FSharp.pdb;$(OutLib)/Net40/MathNet.Numerics.FSharp.xml" /> |
||||
<FSharpPortable47 Include="$(OutLib)/Portable47/MathNet.Numerics.FSharp.dll;$(OutLib)/Portable47/MathNet.Numerics.FSharp.pdb;$(OutLib)/Portable47/MathNet.Numerics.FSharp.xml;" /> |
<FSharpPortable47 Include="$(OutLib)/Portable47/MathNet.Numerics.FSharp.dll;$(OutLib)/Portable47/MathNet.Numerics.FSharp.pdb;$(OutLib)/Portable47/MathNet.Numerics.FSharp.xml;" /> |
||||
<FSharpPortable136 Include="$(OutLib)/Portable136/MathNet.Numerics.FSharp.dll;$(OutLib)/Portable136/MathNet.Numerics.FSharp.pdb;$(OutLib)/Portable136/MathNet.Numerics.FSharp.xml;" /> |
<FSharpPortable136 Include="$(OutLib)/Portable136/MathNet.Numerics.FSharp.dll;$(OutLib)/Portable136/MathNet.Numerics.FSharp.pdb;$(OutLib)/Portable136/MathNet.Numerics.FSharp.xml;" /> |
||||
<NumericsSample Include="$(Examples)/**/*.cs" Exclude="$(Examples)/**/bin/**;$(Examples)/**/obj/**" /> |
<NumericsSample Include="$(Examples)/**/*.cs" Exclude="$(Examples)/**/bin/**;$(Examples)/**/obj/**" /> |
||||
<FSharpSample Include="$(FSharpExamples)/**/*.fsx" Exclude="$(FSharpExamples)/**/bin/**;$(FSharpExamples)/**/obj/**" /> |
<FSharpSample Include="$(FSharpExamples)/**/*.fsx" Exclude="$(FSharpExamples)/**/bin/**;$(FSharpExamples)/**/obj/**" /> |
||||
</ItemGroup> |
</ItemGroup> |
||||
|
|
||||
<Target Name="CopyContentFiles"> |
<Target Name="CopyContentFiles"> |
||||
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(NumericsPack)/readme.txt" /> |
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(NumericsPack)/readme.txt" /> |
||||
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(FSharpPack)/readme.txt" /> |
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(FSharpPack)/readme.txt" /> |
||||
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(NumericsSamplePack)/readme.txt" /> |
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(NumericsSamplePack)/readme.txt" /> |
||||
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(FSharpSamplePack)/readme.txt" /> |
<Copy SourceFiles="$(Root)/RELEASENOTES.md" DestinationFiles="$(FSharpSamplePack)/readme.txt" /> |
||||
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(NumericsPack)/license.txt" /> |
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(NumericsPack)/license.txt" /> |
||||
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(FSharpPack)/license.txt" /> |
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(FSharpPack)/license.txt" /> |
||||
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(NumericsSamplePack)/license.txt" /> |
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(NumericsSamplePack)/license.txt" /> |
||||
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(FSharpSamplePack)/license.txt" /> |
<Copy SourceFiles="$(Root)/LICENSE.md" DestinationFiles="$(FSharpSamplePack)/license.txt" /> |
||||
|
|
||||
<RemoveDir Directories="$(NumericsPack)/lib" /> |
<RemoveDir Directories="$(NumericsPack)/lib" /> |
||||
<Copy SourceFiles="@(NumericsNet40)" DestinationFolder="$(NumericsPack)/lib/net40" /> |
<Copy SourceFiles="@(NumericsNet40)" DestinationFolder="$(NumericsPack)/lib/net40" /> |
||||
<Copy SourceFiles="@(NumericsPortable47)" DestinationFolder="$(NumericsPack)/lib/portable-net45+windows8+sl5" /> |
<Copy SourceFiles="@(NumericsPortable47)" DestinationFolder="$(NumericsPack)/lib/portable-net45+windows8+sl5" /> |
||||
<Copy SourceFiles="@(NumericsPortable136)" DestinationFolder="$(NumericsPack)/lib/portable-net40+windows8+wp8+sl5" /> |
<Copy SourceFiles="@(NumericsPortable136)" DestinationFolder="$(NumericsPack)/lib/portable-net40+windows8+wp8+sl5" /> |
||||
|
|
||||
<RemoveDir Directories="$(FSharpPack)/lib" /> |
<RemoveDir Directories="$(FSharpPack)/lib" /> |
||||
<Copy SourceFiles="@(FSharpNet40)" DestinationFolder="$(FSharpPack)/lib/net40" /> |
<Copy SourceFiles="@(FSharpNet40)" DestinationFolder="$(FSharpPack)/lib/net40" /> |
||||
<Copy SourceFiles="@(FSharpPortable47)" DestinationFolder="$(FSharpPack)/lib/portable-net45+windows8+sl5" /> |
<Copy SourceFiles="@(FSharpPortable47)" DestinationFolder="$(FSharpPack)/lib/portable-net45+windows8+sl5" /> |
||||
<Copy SourceFiles="@(FSharpPortable136)" DestinationFolder="$(FSharpPack)/lib/portable-net40+windows8+wp8+sl5" /> |
<Copy SourceFiles="@(FSharpPortable136)" DestinationFolder="$(FSharpPack)/lib/portable-net40+windows8+wp8+sl5" /> |
||||
|
|
||||
<RemoveDir Directories="$(NumericsSamplePack)/content" /> |
<RemoveDir Directories="$(NumericsSamplePack)/content" /> |
||||
<Copy SourceFiles="@(NumericsSample)" DestinationFiles="$(NumericsSamplePack)/content/Samples/MathNet.Numerics/%(RecursiveDir)%(Filename).cs.pp" /> |
<Copy SourceFiles="@(NumericsSample)" DestinationFiles="$(NumericsSamplePack)/content/Samples/MathNet.Numerics/%(RecursiveDir)%(Filename).cs.pp" /> |
||||
|
|
||||
<RemoveDir Directories="$(FSharpSamplePack)/content" /> |
<RemoveDir Directories="$(FSharpSamplePack)/content" /> |
||||
<Copy SourceFiles="@(FSharpSample)" DestinationFiles="$(FSharpSamplePack)/content/Samples/MathNet.Numerics.FSharp/%(RecursiveDir)%(Filename).fsx.pp" /> |
<Copy SourceFiles="@(FSharpSample)" DestinationFiles="$(FSharpSamplePack)/content/Samples/MathNet.Numerics.FSharp/%(RecursiveDir)%(Filename).fsx.pp" /> |
||||
</Target> |
</Target> |
||||
|
|
||||
<Target Name="UpdateNuspec" DependsOnTargets="CopyContentFiles"> |
<Target Name="UpdateNuspec" DependsOnTargets="CopyContentFiles"> |
||||
|
|
||||
<!-- Evaluate Assembly Identity --> |
<!-- Evaluate Assembly Identity --> |
||||
<GetAssemblyIdentity AssemblyFiles="$(NumericsPack)/lib/Net40/MathNet.Numerics.dll"> |
<GetAssemblyIdentity AssemblyFiles="$(NumericsPack)/lib/Net40/MathNet.Numerics.dll"> |
||||
<Output TaskParameter="Assemblies" ItemName="NumericsAssemblyInfo"/> |
<Output TaskParameter="Assemblies" ItemName="NumericsAssemblyInfo"/> |
||||
</GetAssemblyIdentity> |
</GetAssemblyIdentity> |
||||
<GetAssemblyIdentity AssemblyFiles="$(FSharpPack)/lib/Net40/MathNet.Numerics.FSharp.dll"> |
<GetAssemblyIdentity AssemblyFiles="$(FSharpPack)/lib/Net40/MathNet.Numerics.FSharp.dll"> |
||||
<Output TaskParameter="Assemblies" ItemName="FSharpAssemblyInfo"/> |
<Output TaskParameter="Assemblies" ItemName="FSharpAssemblyInfo"/> |
||||
</GetAssemblyIdentity> |
</GetAssemblyIdentity> |
||||
|
|
||||
<!-- Extract Assembly Versions --> |
<!-- Extract Assembly Versions --> |
||||
<PropertyGroup> |
<PropertyGroup> |
||||
<NumericsAssemblyVersion>%(NumericsAssemblyInfo.Version)</NumericsAssemblyVersion> |
<NumericsAssemblyVersion>%(NumericsAssemblyInfo.Version)</NumericsAssemblyVersion> |
||||
<FSharpAssemblyVersion>%(FSharpAssemblyInfo.Version)</FSharpAssemblyVersion> |
<FSharpAssemblyVersion>%(FSharpAssemblyInfo.Version)</FSharpAssemblyVersion> |
||||
</PropertyGroup> |
</PropertyGroup> |
||||
|
|
||||
<!-- Package Versions (skip 4th part/build number, for semvar compliance) --> |
<!-- Package Versions (skip 4th part/build number, for semvar compliance) --> |
||||
<PropertyGroup> |
<PropertyGroup> |
||||
<NumericsPackVersion>$(NumericsAssemblyVersion.Substring(0, $(NumericsAssemblyVersion.LastIndexOf('.'))))</NumericsPackVersion> |
<NumericsPackVersion>$(NumericsAssemblyVersion.Substring(0, $(NumericsAssemblyVersion.LastIndexOf('.'))))</NumericsPackVersion> |
||||
<FSharpPackVersion>$(FSharpAssemblyVersion.Substring(0, $(FSharpAssemblyVersion.LastIndexOf('.'))))</FSharpPackVersion> |
<FSharpPackVersion>$(FSharpAssemblyVersion.Substring(0, $(FSharpAssemblyVersion.LastIndexOf('.'))))</FSharpPackVersion> |
||||
</PropertyGroup> |
</PropertyGroup> |
||||
|
|
||||
<XmlUpdate |
<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" |
XmlFileName="$(NumericsPack)/MathNet.Numerics.nuspec" |
||||
XPath="//package/n:metadata/n:version" |
XPath="//package/n:metadata/n:version" |
||||
Value="$(NumericsPackVersion)"/> |
Value="$(NumericsPackVersion)"/> |
||||
|
|
||||
<XmlUpdate |
<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="$(FSharpPack)/MathNet.Numerics.FSharp.nuspec" |
XmlFileName="$(FSharpPack)/MathNet.Numerics.FSharp.nuspec" |
||||
XPath="//package/n:metadata/n:version" |
XPath="//package/n:metadata/n:version" |
||||
Value="$(FSharpPackVersion)"/> |
Value="$(FSharpPackVersion)"/> |
||||
<XmlUpdate |
<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="$(FSharpPack)/MathNet.Numerics.FSharp.nuspec" |
XmlFileName="$(FSharpPack)/MathNet.Numerics.FSharp.nuspec" |
||||
XPath="//package/n:metadata/n:dependencies/n:dependency[@id='MathNet.Numerics']/@version" |
XPath="//package/n:metadata/n:dependencies/n:dependency[@id='MathNet.Numerics']/@version" |
||||
Value="$(NumericsPackVersion)"/> |
Value="$(NumericsPackVersion)"/> |
||||
|
|
||||
<XmlUpdate |
<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="$(NumericsSamplePack)/MathNet.Numerics.Sample.nuspec" |
XmlFileName="$(NumericsSamplePack)/MathNet.Numerics.Sample.nuspec" |
||||
XPath="//package/n:metadata/n:version" |
XPath="//package/n:metadata/n:version" |
||||
Value="$(NumericsPackVersion)"/> |
Value="$(NumericsPackVersion)"/> |
||||
<XmlUpdate |
<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="$(NumericsSamplePack)/MathNet.Numerics.Sample.nuspec" |
XmlFileName="$(NumericsSamplePack)/MathNet.Numerics.Sample.nuspec" |
||||
XPath="//package/n:metadata/n:dependencies/n:dependency[@id='MathNet.Numerics']/@version" |
XPath="//package/n:metadata/n:dependencies/n:dependency[@id='MathNet.Numerics']/@version" |
||||
Value="$(NumericsPackVersion)"/> |
Value="$(NumericsPackVersion)"/> |
||||
|
|
||||
<XmlUpdate |
<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="$(FSharpSamplePack)/MathNet.Numerics.FSharp.Sample.nuspec" |
XmlFileName="$(FSharpSamplePack)/MathNet.Numerics.FSharp.Sample.nuspec" |
||||
XPath="//package/n:metadata/n:version" |
XPath="//package/n:metadata/n:version" |
||||
Value="$(FSharpPackVersion)"/> |
Value="$(FSharpPackVersion)"/> |
||||
<XmlUpdate |
<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="$(FSharpSamplePack)/MathNet.Numerics.FSharp.Sample.nuspec" |
XmlFileName="$(FSharpSamplePack)/MathNet.Numerics.FSharp.Sample.nuspec" |
||||
XPath="//package/n:metadata/n:dependencies/n:dependency[@id='MathNet.Numerics.FSharp']/@version" |
XPath="//package/n:metadata/n:dependencies/n:dependency[@id='MathNet.Numerics.FSharp']/@version" |
||||
Value="$(FSharpPackVersion)"/> |
Value="$(FSharpPackVersion)"/> |
||||
</Target> |
</Target> |
||||
|
|
||||
<Target Name="PatchContentFiles" DependsOnTargets="CopyContentFiles"> |
<Target Name="PatchContentFiles" DependsOnTargets="CopyContentFiles"> |
||||
<ItemGroup> |
<ItemGroup> |
||||
<NumericsSamplePreprocessingFiles Include="$(NumericsSamplePack)/content/Samples/MathNet.Numerics/**/*.pp" /> |
<NumericsSamplePreprocessingFiles Include="$(NumericsSamplePack)/content/Samples/MathNet.Numerics/**/*.pp" /> |
||||
<FSharpSamplePreprocessingFiles Include="$(FSharpSamplePack)/content/Samples/MathNet.Numerics.FSharp/**/*.pp" /> |
<FSharpSamplePreprocessingFiles Include="$(FSharpSamplePack)/content/Samples/MathNet.Numerics.FSharp/**/*.pp" /> |
||||
</ItemGroup> |
</ItemGroup> |
||||
<FileUpdate |
<FileUpdate |
||||
Files="@(NumericsSamplePreprocessingFiles)" |
Files="@(NumericsSamplePreprocessingFiles)" |
||||
Regex="(namespace Examples)" |
Regex="(namespace Examples)" |
||||
ReplacementText="namespace %24rootnamespace%24.Samples.MathNet.Numerics"/> |
ReplacementText="namespace %24rootnamespace%24.Samples.MathNet.Numerics"/> |
||||
<FileUpdate |
<FileUpdate |
||||
Files="@(FSharpSamplePreprocessingFiles)" |
Files="@(FSharpSamplePreprocessingFiles)" |
||||
Regex="(/out/(debug|lib)/Net40/MathNet\.Numerics\.dll)" |
Regex="(/out/(debug|lib)/Net40/MathNet\.Numerics\.dll)" |
||||
ReplacementText="/../packages/MathNet.Numerics.$(NumericsPackVersion)/lib/net40/MathNet.Numerics.dll"/> |
ReplacementText="/../packages/MathNet.Numerics.$(NumericsPackVersion)/lib/net40/MathNet.Numerics.dll"/> |
||||
<FileUpdate |
<FileUpdate |
||||
Files="@(FSharpSamplePreprocessingFiles)" |
Files="@(FSharpSamplePreprocessingFiles)" |
||||
Regex="(/out/(debug|lib)/Net40/MathNet\.Numerics\.FSharp\.dll)" |
Regex="(/out/(debug|lib)/Net40/MathNet\.Numerics\.FSharp\.dll)" |
||||
ReplacementText="/../packages/MathNet.Numerics.FSharp.$(FSharpPackVersion)/lib/net40/MathNet.Numerics.FSharp.dll"/> |
ReplacementText="/../packages/MathNet.Numerics.FSharp.$(FSharpPackVersion)/lib/net40/MathNet.Numerics.FSharp.dll"/> |
||||
</Target> |
</Target> |
||||
|
|
||||
<Target Name="BuildPackages" DependsOnTargets="UpdateNuspec;PatchContentFiles"> |
<Target Name="BuildPackages" DependsOnTargets="UpdateNuspec;PatchContentFiles"> |
||||
<MakeDir Directories="$(OutNuGetPackages)" /> |
<MakeDir Directories="$(OutNuGetPackages)" /> |
||||
<Exec Command="$(NuGetExe) pack $(NumericsPack)/MathNet.Numerics.nuspec -Verbosity detailed -OutputDirectory $(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)" /> |
<Exec Command="$(NuGetExe) pack $(FSharpPack)/MathNet.Numerics.FSharp.nuspec -Verbosity detailed -OutputDirectory $(OutNuGetPackages)" /> |
||||
<Exec Command="$(NuGetExe) pack $(NumericsSamplePack)/MathNet.Numerics.Sample.nuspec -Verbosity detailed -OutputDirectory $(OutNuGetPackages)" /> |
<Exec Command="$(NuGetExe) pack $(NumericsSamplePack)/MathNet.Numerics.Sample.nuspec -Verbosity detailed -OutputDirectory $(OutNuGetPackages)" /> |
||||
<Exec Command="$(NuGetExe) pack $(FSharpSamplePack)/MathNet.Numerics.FSharp.Sample.nuspec -Verbosity detailed -OutputDirectory $(OutNuGetPackages)" /> |
<Exec Command="$(NuGetExe) pack $(FSharpSamplePack)/MathNet.Numerics.FSharp.Sample.nuspec -Verbosity detailed -OutputDirectory $(OutNuGetPackages)" /> |
||||
</Target> |
</Target> |
||||
|
|
||||
</Project> |
</Project> |
||||
Loading…
Reference in new issue