Convert to new .net standard project format

This commit is contained in:
bradphelan
2017-07-04 15:51:37 +02:00
parent 831fb95c58
commit 32581d9c75
42 changed files with 343 additions and 450 deletions
-1
View File
@@ -1 +0,0 @@
This is your NuGet package.
@@ -1,41 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|AnyCPU">
<Configuration>Debug</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|AnyCPU">
<Configuration>Release</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>8694e28a-711c-4606-9c57-665dc65751c7</ProjectGuid>
</PropertyGroup>
<PropertyGroup>
<NuProjPath Condition=" '$(NuProjPath)' == '' ">$(MSBuildExtensionsPath)\NuProj\</NuProjPath>
</PropertyGroup>
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
<PropertyGroup Label="Configuration">
<Id>System.DoubleNumerics</Id>
<Version>3.1.2</Version>
<Title>System.DoubleNumerics</Title>
<Authors>weingartner machinen bau</Authors>
<Owners>weingartner machinen bau</Owners>
<Summary>Same as System.Numerics vector types but with doubles</Summary>
<Description>Same as System.Numerics vector types but with doubles</Description>
<ReleaseNotes>Now using a better nuget packager</ReleaseNotes>
<ProjectUrl>https://github.com/Weingartner/System.Numerics.DoubleVectors</ProjectUrl>
<LicenseUrl>https://opensource.org/licenses/MIT</LicenseUrl>
<Copyright>Copyright © phelan</Copyright>
<Tags>math vector matrix</Tags>
</PropertyGroup>
<ItemGroup>
<Content Include="Readme.txt" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\src\System.DoubleNumerics.csproj" />
</ItemGroup>
<Import Project="$(NuProjPath)\NuProj.targets" />
</Project>
@@ -1,30 +0,0 @@
using System.Resources;
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.DoubleNumerics")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("System.DoubleNumerics")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,52 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{E3BD4ED5-7733-4149-8F0A-7A5DEBFDF9B1}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>System.DoubleNumerics</RootNamespace>
<AssemblyName>System.DoubleNumerics</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
<TargetFramework>netstandard1.3</TargetFramework>
<PackageId>System.DoubleNumerics</PackageId>
<PackageVersion>3.1.3</PackageVersion>
<Authors>Weingartner</Authors>
<Description>Double version of System.Numerics vector libraries</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>Rebuild for release mode</PackageReleaseNotes>
<PackageTags>numerics vector matrix</PackageTags>
<LicenseUrl>https://opensource.org/licenses/MIT</LicenseUrl>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<None Include="project.json" />
<!-- A reference to the entire .NET Framework is automatically included -->
<None Update="ConstantHelper.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>ConstantHelper.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<ItemGroup>
<Compile Update="ConstantHelper.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ConstantHelper.tt</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
</Project>
+8 -6
View File
@@ -1,10 +1,12 @@
{
"supports": {
"net46.app": {},
"uwp.10.0.app": {}
{
"supports": {},
"dependencies": {
"Microsoft.NETCore.Portable.Compatibility": "1.0.1",
"NETStandard.Library": "1.6.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0"
},
"dependencies": {},
"frameworks": {
".NETStandard1.3": {}
"netstandard1.3": {}
}
}
@@ -1,11 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace System.Numerics.DoubleVectors.Core
{
public class Class1
{
}
}
@@ -1,30 +0,0 @@
using System.Resources;
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.Core")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("System.Numerics.DoubleVectors.Core")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,53 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{fd683bdf-c886-4f53-a6ce-13a8df05c4f9}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>System.Numerics.DoubleVectors.Core</RootNamespace>
<AssemblyName>System.Numerics.DoubleVectors.Core</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkProfile></TargetFrameworkProfile>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<None Include="project.json" />
<!-- A reference to the entire .NET Framework is automatically included -->
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -1,10 +0,0 @@
{
"supports": {
"net46.app": {},
"uwp.10.0.app": {}
},
"dependencies": {},
"frameworks": {
".NETStandard1.3": {}
}
}
+11 -29
View File
@@ -1,19 +1,13 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26430.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{CD0BD3C8-F867-4FEE-AB31-4DCA01FC8A30}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A86D6523-CA0C-4C1C-BFE7-D35564945C0B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Numerics.Vectors.Tests", "tests\System.Numerics.Vectors.Tests.csproj", "{A7074928-82C3-4739-88FE-9B528977950C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Numerics.Vectors.Performance.Tests", "tests\Performance\System.Numerics.Vectors.Performance.Tests.csproj", "{D9906F1A-A41A-43CD-81D2-BA94CF0001C9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.DoubleNumerics", "src\System.DoubleNumerics.csproj", "{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}"
EndProject
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "System.DoubleNumerics.Nuget", "System.DoubleNumerics.Nuget\System.DoubleNumerics.Nuget.nuproj", "{8694E28A-711C-4606-9C57-665DC65751C7}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.DoubleNumerics", "System.DoubleNumerics\System.DoubleNumerics.csproj", "{18483631-763C-48A4-9045-A3C3F93D23F9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -39,28 +33,16 @@ Global
{D9906F1A-A41A-43CD-81D2-BA94CF0001C9}.net46_Release|Any CPU.Build.0 = Release|Any CPU
{D9906F1A-A41A-43CD-81D2-BA94CF0001C9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D9906F1A-A41A-43CD-81D2-BA94CF0001C9}.Release|Any CPU.Build.0 = Release|Any CPU
{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}.net46_Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}.net46_Debug|Any CPU.Build.0 = Debug|Any CPU
{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}.net46_Release|Any CPU.ActiveCfg = Release|Any CPU
{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}.net46_Release|Any CPU.Build.0 = Release|Any CPU
{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}.Release|Any CPU.Build.0 = Release|Any CPU
{8694E28A-711C-4606-9C57-665DC65751C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8694E28A-711C-4606-9C57-665DC65751C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8694E28A-711C-4606-9C57-665DC65751C7}.net46_Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8694E28A-711C-4606-9C57-665DC65751C7}.net46_Debug|Any CPU.Build.0 = Debug|Any CPU
{8694E28A-711C-4606-9C57-665DC65751C7}.net46_Release|Any CPU.ActiveCfg = Release|Any CPU
{8694E28A-711C-4606-9C57-665DC65751C7}.net46_Release|Any CPU.Build.0 = Release|Any CPU
{8694E28A-711C-4606-9C57-665DC65751C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8694E28A-711C-4606-9C57-665DC65751C7}.Release|Any CPU.Build.0 = Release|Any CPU
{18483631-763C-48A4-9045-A3C3F93D23F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{18483631-763C-48A4-9045-A3C3F93D23F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{18483631-763C-48A4-9045-A3C3F93D23F9}.net46_Debug|Any CPU.ActiveCfg = Debug|Any CPU
{18483631-763C-48A4-9045-A3C3F93D23F9}.net46_Debug|Any CPU.Build.0 = Debug|Any CPU
{18483631-763C-48A4-9045-A3C3F93D23F9}.net46_Release|Any CPU.ActiveCfg = Release|Any CPU
{18483631-763C-48A4-9045-A3C3F93D23F9}.net46_Release|Any CPU.Build.0 = Release|Any CPU
{18483631-763C-48A4-9045-A3C3F93D23F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{18483631-763C-48A4-9045-A3C3F93D23F9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{A7074928-82C3-4739-88FE-9B528977950C} = {CD0BD3C8-F867-4FEE-AB31-4DCA01FC8A30}
{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC} = {A86D6523-CA0C-4C1C-BFE7-D35564945C0B}
EndGlobalSection
EndGlobal
-13
View File
@@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<OutputType>Library</OutputType>
<NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
</PropertyGroup>
<ItemGroup>
<None Include="project.json" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>
-19
View File
@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<OutputType>Library</OutputType>
<NuGetTargetMoniker>.NETStandard,Version=v1.0</NuGetTargetMoniker>
<OutputPath>bin\$(Configuration)\</OutputPath>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
<ProjectGuid>{7C642AEA-A950-4179-90D1-C80A91CBF872}</ProjectGuid>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
-30
View File
@@ -1,30 +0,0 @@
using System.Resources;
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.DoubleNumerics")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("System.DoubleNumerics")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
-91
View File
@@ -1,91 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>System.DoubleNumerics</RootNamespace>
<AssemblyName>System.DoubleNumerics</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<None Include="project.json" />
<None Include="GenerationConfig.ttinclude" />
<!-- A reference to the entire .NET Framework is automatically included -->
</ItemGroup>
<ItemGroup>
<Compile Include="Common\System\Numerics\Hashing\HashHelpers.cs" />
<Compile Include="Matrix3x2.cs" />
<Compile Include="Matrix4x4.cs" />
<Compile Include="Plane.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Quaternion.cs" />
<Compile Include="Strings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.resx</DependentUpon>
</Compile>
<Compile Include="ConstantHelper.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ConstantHelper.tt</DependentUpon>
</Compile>
<Compile Include="Vector2.cs" />
<Compile Include="Vector2_Intrinsics.cs" />
<Compile Include="Vector3.cs" />
<Compile Include="Vector3_Intrinsics.cs" />
<Compile Include="Vector4.cs" />
<Compile Include="Vector4_Intrinsics.cs" />
</ItemGroup>
<ItemGroup>
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
<ItemGroup>
<Content Include="ConstantHelper.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>ConstantHelper.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Strings.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Strings.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
-12
View File
@@ -1,12 +0,0 @@
{
"supports": {},
"dependencies": {
"Microsoft.NETCore.Portable.Compatibility": "1.0.1",
"NETStandard.Library": "1.6.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0"
},
"frameworks": {
"netstandard1.3": {}
}
}
+142
View File
@@ -0,0 +1,142 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.CompilerServices;
namespace System.DoubleNumerics
{
internal class ConstantHelper
{
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Byte GetByteWithAllBitsSet()
{
Byte value = 0;
unsafe
{
unchecked
{
*((Byte*)&value) = (Byte)0xff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static SByte GetSByteWithAllBitsSet()
{
SByte value = 0;
unsafe
{
unchecked
{
*((SByte*)&value) = (SByte)0xff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static UInt16 GetUInt16WithAllBitsSet()
{
UInt16 value = 0;
unsafe
{
unchecked
{
*((UInt16*)&value) = (UInt16)0xffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Int16 GetInt16WithAllBitsSet()
{
Int16 value = 0;
unsafe
{
unchecked
{
*((Int16*)&value) = (Int16)0xffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static UInt32 GetUInt32WithAllBitsSet()
{
UInt32 value = 0;
unsafe
{
unchecked
{
*((UInt32*)&value) = (UInt32)0xffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Int32 GetInt32WithAllBitsSet()
{
Int32 value = 0;
unsafe
{
unchecked
{
*((Int32*)&value) = (Int32)0xffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static UInt64 GetUInt64WithAllBitsSet()
{
UInt64 value = 0;
unsafe
{
unchecked
{
*((UInt64*)&value) = (UInt64)0xffffffffffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Int64 GetInt64WithAllBitsSet()
{
Int64 value = 0;
unsafe
{
unchecked
{
*((Int64*)&value) = (Int64)0xffffffffffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Double GetDoubleWithAllBitsSet()
{
Double value = 0;
unsafe
{
unchecked
{
*((Int32*)&value) = (Int32)0xffffffffffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Single GetSingleWithAllBitsSet()
{
Single value = 0;
unsafe
{
unchecked
{
*((Single*)&value) = (Single)0xffffffff;
}
}
return value;
}
}
}
+142
View File
@@ -0,0 +1,142 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.CompilerServices;
namespace System.DoubleNumerics
{
internal class ConstantHelper
{
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Byte GetByteWithAllBitsSet()
{
Byte value = 0;
unsafe
{
unchecked
{
*((Byte*)&value) = (Byte)0xff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static SByte GetSByteWithAllBitsSet()
{
SByte value = 0;
unsafe
{
unchecked
{
*((SByte*)&value) = (SByte)0xff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static UInt16 GetUInt16WithAllBitsSet()
{
UInt16 value = 0;
unsafe
{
unchecked
{
*((UInt16*)&value) = (UInt16)0xffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Int16 GetInt16WithAllBitsSet()
{
Int16 value = 0;
unsafe
{
unchecked
{
*((Int16*)&value) = (Int16)0xffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static UInt32 GetUInt32WithAllBitsSet()
{
UInt32 value = 0;
unsafe
{
unchecked
{
*((UInt32*)&value) = (UInt32)0xffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Int32 GetInt32WithAllBitsSet()
{
Int32 value = 0;
unsafe
{
unchecked
{
*((Int32*)&value) = (Int32)0xffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static UInt64 GetUInt64WithAllBitsSet()
{
UInt64 value = 0;
unsafe
{
unchecked
{
*((UInt64*)&value) = (UInt64)0xffffffffffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Int64 GetInt64WithAllBitsSet()
{
Int64 value = 0;
unsafe
{
unchecked
{
*((Int64*)&value) = (Int64)0xffffffffffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Double GetDoubleWithAllBitsSet()
{
Double value = 0;
unsafe
{
unchecked
{
*((Int32*)&value) = (Int32)0xffffffffffffffff;
}
}
return value;
}
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
public static Single GetSingleWithAllBitsSet()
{
Single value = 0;
unsafe
{
unchecked
{
*((Single*)&value) = (Single)0xffffffff;
}
}
return value;
}
}
}
@@ -29,13 +29,8 @@
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\src\ConstantHelper.cs">
<Link>ConstantHelper.cs</Link>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ConstantHelper.tt</DependentUpon>
</Compile>
<Compile Include="Common\System\PerfUtils.cs" />
<Compile Include="ConstantHelper.cs" />
<Compile Include="HashCodeTest.cs" />
<Compile Include="Perf.Vector2.cs" />
<Compile Include="Perf.Vector3.cs" />
@@ -72,15 +67,8 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="..\..\src\ConstantHelper.tt">
<Link>ConstantHelper.tt</Link>
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>ConstantHelper.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\System.DoubleNumerics.csproj">
<Project>{BB116CA1-BA95-4DEF-9F2D-D09D50D088CC}</Project>
<ProjectReference Include="..\..\System.DoubleNumerics\System.DoubleNumerics.csproj">
<Project>{18483631-763c-48a4-9045-a3c3f93d23f9}</Project>
<Name>System.DoubleNumerics</Name>
</ProjectReference>
</ItemGroup>
+3 -15
View File
@@ -28,13 +28,8 @@
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Compile Include="..\src\ConstantHelper.cs">
<Link>ConstantHelper.cs</Link>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ConstantHelper.tt</DependentUpon>
</Compile>
<Compile Include="Common\System\PlatDetect.cs" />
<Compile Include="ConstantHelper.cs" />
<Compile Include="Util.cs" />
<Compile Include="Vector2Tests.cs" />
<Compile Include="Vector3Tests.cs" />
@@ -84,15 +79,8 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="..\src\ConstantHelper.tt">
<Link>ConstantHelper.tt</Link>
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>ConstantHelper.cs</LastGenOutput>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\src\System.DoubleNumerics.csproj">
<Project>{bb116ca1-ba95-4def-9f2d-d09d50d088cc}</Project>
<ProjectReference Include="..\System.DoubleNumerics\System.DoubleNumerics.csproj">
<Project>{18483631-763c-48a4-9045-a3c3f93d23f9}</Project>
<Name>System.DoubleNumerics</Name>
</ProjectReference>
</ItemGroup>