Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading the libraries to .net standard 1.6 and full .net 4.6.2 #3

Merged
merged 2 commits into from
Jul 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions SharpSimpleNLG.sln
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26430.15
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpSimpleNLGTests", "SharpSimpleNLGTests\SharpSimpleNLGTests.csproj", "{D786FBFE-CFBC-4DDA-B408-60ADD0731B6C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpSimpleNLGConsole", "SharpSimpleNLGConsole\SharpSimpleNLGConsole.csproj", "{3F729462-5264-49B1-8043-EAA050A2B3ED}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentation", "{B3B6ECC4-364C-462E-ACEB-EA8304C04F1F}"
ProjectSection(SolutionItems) = preProject
JavaToCsharpLearnings.md = JavaToCsharpLearnings.md
LICENSE.md = LICENSE.md
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpSimpleNLGTests", "SharpSimpleNLGTests\SharpSimpleNLGTests.csproj", "{D786FBFE-CFBC-4DDA-B408-60ADD0731B6C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpSimpleNLGConsole", "SharpSimpleNLGConsole\SharpSimpleNLGConsole.csproj", "{3F729462-5264-49B1-8043-EAA050A2B3ED}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpSimpleNLGDotNet45", "SharpSimpleNLGDotNet\SharpSimpleNLGDotNet45.csproj", "{FD418A41-A46E-4FD7-A6DB-FF3EBB4AFA29}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "SharpSimpleNLG", "SharpSimpleNLG\SharpSimpleNLG.xproj", "{16F344A8-B688-4D95-8DA6-2E207D47AECB}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpSimpleNLG", "SharpSimpleNLG\SharpSimpleNLG.csproj", "{16F344A8-B688-4D95-8DA6-2E207D47AECB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpSimpleNLGConsoleNetCore", "SharpSimpleNLGConsoleNetCore\SharpSimpleNLGConsoleNetCore.csproj", "{3E619416-20EC-429F-A467-9F7BFE8BACB1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -40,6 +42,10 @@ Global
{16F344A8-B688-4D95-8DA6-2E207D47AECB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{16F344A8-B688-4D95-8DA6-2E207D47AECB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{16F344A8-B688-4D95-8DA6-2E207D47AECB}.Release|Any CPU.Build.0 = Release|Any CPU
{3E619416-20EC-429F-A467-9F7BFE8BACB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3E619416-20EC-429F-A467-9F7BFE8BACB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3E619416-20EC-429F-A467-9F7BFE8BACB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3E619416-20EC-429F-A467-9F7BFE8BACB1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
37 changes: 37 additions & 0 deletions SharpSimpleNLG/SharpSimpleNLG.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>1.1.0</VersionPrefix>
<TargetFrameworks>net462;netstandard1.6</TargetFrameworks>
<AssemblyName>SharpSimpleNLG</AssemblyName>
<PackageId>SharpSimpleNLG</PackageId>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.6'">
<OutputPath>bin\$(Configuration)\$(Framework)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net462'">
<DefineConstants>FULLNET</DefineConstants>
<OutputPath>bin\$(Configuration)\$(Framework)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>False</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="lexicon\default-lexicon.xml" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Xml.XmlDocument" Version="4.3.0" />
</ItemGroup>

</Project>
21 changes: 0 additions & 21 deletions SharpSimpleNLG/SharpSimpleNLG.xproj

This file was deleted.

30 changes: 0 additions & 30 deletions SharpSimpleNLG/project.json

This file was deleted.

6 changes: 3 additions & 3 deletions SharpSimpleNLGConsole/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
</startup>
</configuration>
</configuration>
3 changes: 2 additions & 1 deletion SharpSimpleNLGConsole/SharpSimpleNLGConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SharpSimpleNLGConsole</RootNamespace>
<AssemblyName>SharpSimpleNLGConsole</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
46 changes: 46 additions & 0 deletions SharpSimpleNLGConsoleNetCore/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
using SimpleNLG;
using System;
using System.Collections.Generic;

namespace SharpSimpleNLGConsoleNetCore
{
class Program
{
public static void Main(string[] args)
{
var ss = new XMLLexicon();
var Factory = new NLGFactory(ss);
var Realiser = new Realiser(ss);

// Instructions will be given to you by the director.

var verbp = Factory.createVerbPhrase("be given");
verbp.setFeature(Feature.TENSE.ToString(), Tense.FUTURE);
var subj = Factory.createNounPhrase("The Director");
var oobj = Factory.createNounPhrase("Instruction");
var ioobj = Factory.createNounPhrase("you");
subj.setPlural(false);
oobj.setPlural(true);

var s = new List<INLGElement>() { verbp, subj, oobj, ioobj };

var clause = Factory.createClause();

clause.setVerb(verbp);
clause.setSubject(subj);
clause.setObject(oobj);
clause.setIndirectObject(ioobj);


var sentence = Factory.createSentence(clause);
sentence.setFeature(Feature.TENSE.ToString(), Tense.FUTURE);

var active = Realiser.realise(sentence).ToString();

Console.WriteLine($"{active}");

Console.WriteLine("done");
Console.ReadLine();
}
}
}
12 changes: 12 additions & 0 deletions SharpSimpleNLGConsoleNetCore/SharpSimpleNLGConsoleNetCore.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\SharpSimpleNLG\SharpSimpleNLG.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion SharpSimpleNLGDotNet/SharpSimpleNLGDotNet45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SharpSimpleNLG</RootNamespace>
<AssemblyName>SharpSimpleNLG</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
Expand Down
23 changes: 10 additions & 13 deletions SharpSimpleNLGTests/SharpSimpleNLGTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SharpSimpleNLGTests</RootNamespace>
<AssemblyName>SharpSimpleNLGTests</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -35,21 +36,17 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="FluentAssertions, Version=4.9.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
<HintPath>..\packages\FluentAssertions.4.9.0\lib\net45\FluentAssertions.dll</HintPath>
<Private>True</Private>
<Reference Include="FluentAssertions, Version=4.19.3.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
<HintPath>..\packages\FluentAssertions.4.19.3\lib\net45\FluentAssertions.dll</HintPath>
</Reference>
<Reference Include="FluentAssertions.Core, Version=4.9.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
<HintPath>..\packages\FluentAssertions.4.9.0\lib\net45\FluentAssertions.Core.dll</HintPath>
<Private>True</Private>
<Reference Include="FluentAssertions.Core, Version=4.19.3.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
<HintPath>..\packages\FluentAssertions.4.19.3\lib\net45\FluentAssertions.Core.dll</HintPath>
</Reference>
<Reference Include="nunit.framework, Version=3.2.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.2.1\lib\net45\nunit.framework.dll</HintPath>
<Private>True</Private>
<Reference Include="nunit.framework, Version=3.7.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.7.1\lib\net45\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="Shouldly, Version=2.7.0.0, Culture=neutral, PublicKeyToken=6042cbcb05cbc941, processorArchitecture=MSIL">
<HintPath>..\packages\Shouldly.2.7.0\lib\net40\Shouldly.dll</HintPath>
<Private>True</Private>
<Reference Include="Shouldly, Version=2.8.3.0, Culture=neutral, PublicKeyToken=6042cbcb05cbc941, processorArchitecture=MSIL">
<HintPath>..\packages\Shouldly.2.8.3\lib\net451\Shouldly.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Xml" />
Expand Down
6 changes: 3 additions & 3 deletions SharpSimpleNLGTests/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FluentAssertions" version="4.9.0" targetFramework="net452" />
<package id="NUnit" version="3.2.1" targetFramework="net452" />
<package id="Shouldly" version="2.7.0" targetFramework="net452" />
<package id="FluentAssertions" version="4.19.3" targetFramework="net462" />
<package id="NUnit" version="3.7.1" targetFramework="net462" />
<package id="Shouldly" version="2.8.3" targetFramework="net462" />
</packages>
Binary file added UpgradeLog.htm
Binary file not shown.