Skip to content

Commit 2eeae6f

Browse files
committed
Updat to .net standard
Updating the class library to something usefull
1 parent daeadcb commit 2eeae6f

12 files changed

+30
-285
lines changed

Epoch.net.Tests/DateTimeExtentionsFixture.cs

-25
This file was deleted.

Epoch.net.Tests/Epoch.net.Tests.csproj

-67
This file was deleted.

Epoch.net.Tests/EpochFixture.cs

-26
This file was deleted.

Epoch.net.Tests/LongextentionsFixture.cs

-10
This file was deleted.

Epoch.net.Tests/Properties/AssemblyInfo.cs

-36
This file was deleted.

Epoch.net.Tests/packages.config

-4
This file was deleted.

Epoch.net.sln

+6-12
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 2013
44
VisualStudioVersion = 12.0.0.0
55
MinimumVisualStudioVersion = 10.0.0.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Epoch.net", "Epoch.net/Epoch.net.csproj", "{D8143877-A95A-45C1-9F0F-F62A57F8CADB}"
7-
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Epoch.net.Tests", "Epoch.net.Tests\Epoch.net.Tests.csproj", "{47CBF461-7638-40EE-B059-B2389E09DAF7}"
9-
EndProject
106
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "misc", "misc", "{CA9E0DE1-4B2B-43BC-8018-FD520B3721D1}"
117
ProjectSection(SolutionItems) = preProject
128
LICENSE = LICENSE
@@ -16,20 +12,18 @@ ProjectSection(SolutionItems) = preProject
1612
CHANGELOG.md = CHANGELOG.md
1713
EndProjectSection
1814
EndProject
15+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Epoch.net", "Epoch.net\Epoch.net.csproj", "{FB0FC0E9-E1BC-41CC-BEA1-5F02AE48C82A}"
16+
EndProject
1917
Global
2018
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2119
Debug|Any CPU = Debug|Any CPU
2220
Release|Any CPU = Release|Any CPU
2321
EndGlobalSection
2422
GlobalSection(ProjectConfigurationPlatforms) = postSolution
25-
{D8143877-A95A-45C1-9F0F-F62A57F8CADB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26-
{D8143877-A95A-45C1-9F0F-F62A57F8CADB}.Debug|Any CPU.Build.0 = Debug|Any CPU
27-
{D8143877-A95A-45C1-9F0F-F62A57F8CADB}.Release|Any CPU.ActiveCfg = Release|Any CPU
28-
{D8143877-A95A-45C1-9F0F-F62A57F8CADB}.Release|Any CPU.Build.0 = Release|Any CPU
29-
{47CBF461-7638-40EE-B059-B2389E09DAF7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{47CBF461-7638-40EE-B059-B2389E09DAF7}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{47CBF461-7638-40EE-B059-B2389E09DAF7}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{47CBF461-7638-40EE-B059-B2389E09DAF7}.Release|Any CPU.Build.0 = Release|Any CPU
23+
{FB0FC0E9-E1BC-41CC-BEA1-5F02AE48C82A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{FB0FC0E9-E1BC-41CC-BEA1-5F02AE48C82A}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{FB0FC0E9-E1BC-41CC-BEA1-5F02AE48C82A}.Release|Any CPU.ActiveCfg = Release|Any CPU
26+
{FB0FC0E9-E1BC-41CC-BEA1-5F02AE48C82A}.Release|Any CPU.Build.0 = Release|Any CPU
3327
EndGlobalSection
3428
GlobalSection(SolutionProperties) = preSolution
3529
HideSolutionNode = FALSE

Epoch.net/Epoch.net.csproj

+8-59
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,8 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4-
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{D8143877-A95A-45C1-9F0F-F62A57F8CADB}</ProjectGuid>
8-
<ProjectTypeGuids>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
9-
<OutputType>Library</OutputType>
10-
<AppDesignerFolder>Properties</AppDesignerFolder>
11-
<RootNamespace>Epoch.net</RootNamespace>
12-
<AssemblyName>Epoch.net</AssemblyName>
13-
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
14-
<FileAlignment>512</FileAlignment>
15-
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<PlatformTarget>AnyCPU</PlatformTarget>
18-
<DebugSymbols>true</DebugSymbols>
19-
<DebugType>full</DebugType>
20-
<Optimize>false</Optimize>
21-
<OutputPath>bin\Debug\</OutputPath>
22-
<DefineConstants>DEBUG;TRACE</DefineConstants>
23-
<ErrorReport>prompt</ErrorReport>
24-
<WarningLevel>4</WarningLevel>
25-
</PropertyGroup>
26-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<PlatformTarget>AnyCPU</PlatformTarget>
28-
<DebugType>pdbonly</DebugType>
29-
<Optimize>true</Optimize>
30-
<OutputPath>bin\Release\</OutputPath>
31-
<DefineConstants>TRACE</DefineConstants>
32-
<ErrorReport>prompt</ErrorReport>
33-
<WarningLevel>4</WarningLevel>
34-
</PropertyGroup>
35-
<ItemGroup>
36-
<Reference Include="System" />
37-
<Reference Include="System.Core" />
38-
<Reference Include="System.Data" />
39-
<Reference Include="System.Xml" />
40-
</ItemGroup>
41-
<ItemGroup>
42-
<Compile Include="DateTimeExtentions.cs" />
43-
<Compile Include="Epoch.cs" />
44-
<Compile Include="ErrorMessages.cs" />
45-
<Compile Include="LongExtentions.cs" />
46-
<Compile Include="Properties\AssemblyInfo.cs" />
47-
</ItemGroup>
48-
<ItemGroup>
49-
<Content Include="Epoch.net.nuspec" />
50-
</ItemGroup>
51-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
52-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
53-
Other similar extension points exist, see Microsoft.Common.targets.
54-
<Target Name="BeforeBuild">
55-
</Target>
56-
<Target Name="AfterBuild">
57-
</Target>
58-
-->
59-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<LangVersion>latest</LangVersion>
6+
</PropertyGroup>
7+
8+
</Project>

Epoch.net/LongExtentions.cs Epoch.net/LongExtensions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Epoch.net
44
{
55
/// <summary>
6-
/// Implements extention methods to convert long numbers into DateTime objects
6+
/// Implements extension methods to convert long numbers into DateTime objects
77
/// </summary>
8-
public static class LongExtentions
8+
public static class LongExtensions
99
{
1010
public static DateTime AsDateTime(this long epoch)
1111
{

Epoch.net/Properties/AssemblyInfo.cs

-36
This file was deleted.

Program.cs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
3+
namespace epoch.net
4+
{
5+
class Program
6+
{
7+
static void Main(string[] args)
8+
{
9+
Console.WriteLine("Hello World!");
10+
}
11+
}
12+
}

appveyor.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.2.{build}-{branch}
1+
version: 0.8.{build}-{branch}
22
image:
33
- Visual Studio 2017
44
configuration: Release
@@ -15,10 +15,4 @@ build:
1515
publish_nuget: true
1616
publish_nuget_symbols: true
1717
include_nuget_references: true
18-
verbosity: detailed
19-
deploy:
20-
- provider: NuGet
21-
api_key:
22-
secure: bC27CLQTwagax6ZX6EFu33b1NtlE7yx6Qif/GgAxcSYInH4PBrB6uIltlNVvEjvw
23-
on:
24-
branch: master
18+
verbosity: detailed

0 commit comments

Comments
 (0)