12 changed files with 215 additions and 20 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.Signed</id> |
|||
<version>1.0.0</version> |
|||
<title>Math.NET Numerics (Strong Name)</title> |
|||
<summary>Math.NET Numerics, signed and thus with a strong name. We strongly discourage using this package and recommend using MathNet.Numerics instead, which is unsigned and weakly named.</summary> |
|||
<description>Math.NET Numerics, signed and thus with a strong name. We strongly discourage using this package and recommend using MathNet.Numerics instead, which is unsigned and weakly named.</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/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="zlib.net" version="1.0" /> |
|||
</dependencies> |
|||
<frameworkAssemblies> |
|||
<frameworkAssembly assemblyName="System.Numerics" /> |
|||
</frameworkAssemblies> |
|||
</metadata> |
|||
</package> |
|||
@ -0,0 +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.Community.Tasks.v1.2.0.306/MSBuild.Community.Tasks.dll" TaskName="MSBuild.Community.Tasks.FileUpdate" /> |
|||
|
|||
<PropertyGroup> |
|||
<Root>$(MSBuildProjectDirectory)/../..</Root> |
|||
<OutLib>$(MSBuildProjectDirectory)/../../out/lib</OutLib> |
|||
<OutNuGetPackages>$(MSBuildProjectDirectory)/../../out/packages/NuGet</OutNuGetPackages> |
|||
<NumericsPack>$(MSBuildProjectDirectory)/Numerics.Signed</NumericsPack> |
|||
<NuGetExe>$(MSBuildProjectDirectory)/../../tools/NuGet/nuget.exe</NuGetExe> |
|||
</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> |
|||
|
|||
<Target Name="CopyContentFiles"> |
|||
<RemoveDir Directories="$(NumericsPack)/content" /> |
|||
<Copy SourceFiles="$(Root)/README.markdown" DestinationFiles="$(NumericsPack)/content/App_Readme/MathNet.Numerics.readme.txt" /> |
|||
<Copy SourceFiles="$(Root)/COPYRIGHT.markdown" DestinationFiles="$(NumericsPack)/content/App_Readme/MathNet.Numerics.copyright.txt" /> |
|||
<Copy SourceFiles="$(Root)/AUTHORS.markdown" DestinationFiles="$(NumericsPack)/content/App_Readme/MathNet.Numerics.authors.txt" /> |
|||
|
|||
<RemoveDir Directories="$(NumericsPack)/lib" /> |
|||
<Copy SourceFiles="@(NumericsNet40)" DestinationFolder="$(NumericsPack)/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> |
|||
|
|||
<!-- Extract Assembly Versions --> |
|||
<PropertyGroup> |
|||
<NumericsAssemblyVersion>%(NumericsAssemblyInfo.Version)</NumericsAssemblyVersion> |
|||
</PropertyGroup> |
|||
|
|||
<!-- Package Versions (skip 4th part/build number, for semvar compliance) --> |
|||
<PropertyGroup> |
|||
<NumericsPackVersion>$(NumericsAssemblyVersion.Substring(0, $(NumericsAssemblyVersion.LastIndexOf('.'))))</NumericsPackVersion> |
|||
</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)"/> |
|||
</Target> |
|||
|
|||
<Target Name="BuildPackages" DependsOnTargets="UpdateNuspec;PatchContentFiles"> |
|||
<MakeDir Directories="$(OutNuGetPackages)" /> |
|||
<Exec Command="$(NuGetExe) pack $(NumericsPack)/MathNet.Numerics.Signed.nuspec /Verbose /OutputDirectory $(OutNuGetPackages)" /> |
|||
</Target> |
|||
|
|||
</Project> |
|||
Loading…
Reference in new issue