Skip to content

Commit 90038bb

Browse files
authored
Merge pull request #133 from PositiveTechnologies/net-standard
Net Standard
2 parents d19095a + 7d042f2 commit 90038bb

File tree

162 files changed

+1553
-5685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+1553
-5685
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,4 @@ FakesAssemblies/
208208
# ANTLR Generated files
209209
**/Generated/*
210210

211+
launchSettings.json

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

PT.PM.Cli.nuspec

Lines changed: 0 additions & 25 deletions
This file was deleted.

PT.PM.nuspec

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,15 @@ UST). At present time C\#, Java, PHP, PL/SQL, T-SQL, and JavaScript
66
are supported. Patterns can be described within the code or using a
77
domain-specific language (DSL).
88

9-
| Windows Build Status | Linux Build Status |
10-
|---|---|
11-
| [![Windows Build Status](https://ci.appveyor.com/api/projects/status/vo0acpvek4q1x8yh?svg=true)](https://ci.appveyor.com/project/KvanTTT/pt-pm) | [![Linux/Mac Build Status](https://api.travis-ci.org/PositiveTechnologies/PT.PM.svg?branch=master)](https://travis-ci.org/PositiveTechnologies/PT.PM) |
9+
## Build Status (Windows & Linux)
1210

13-
## NuGet and Artifacts
11+
[![Windows & Linux Build Status](https://ci.appveyor.com/api/projects/status/vo0acpvek4q1x8yh?svg=true)](https://ci.appveyor.com/project/KvanTTT/pt-pm)
1412

15-
The last nightly packages can be found here: [https://ci.appveyor.com/nuget/pt-pm-mk0aj1y5uned](https://ci.appveyor.com/nuget/pt-pm-mk0aj1y5uned). See an article [Using nightly build feed](https://github.com/AvaloniaUI/Avalonia/wiki/Using-nightly-build-feed) for custom package source adding.
16-
17-
Artifacts also available: [https://ci.appveyor.com/project/KvanTTT/pt-pm/build/artifacts](https://ci.appveyor.com/project/KvanTTT/pt-pm/build/artifacts).
13+
Artifacts are also available.
1814

1915
## Documentation
2016

21-
See a [wiki section](https://github.com/PositiveTechnologies/PT.PM/wiki) and articles at [PT.Doc](https://github.com/PositiveTechnologies/PT.Doc).
17+
See a [Wiki Section](https://github.com/PositiveTechnologies/PT.PM/wiki) and articles at [PT.Doc](https://github.com/PositiveTechnologies/PT.Doc).
2218

2319
## License
2420

Sources/AssemblyInfoCommon.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
using System;
22
using System.Reflection;
33

4-
// General Information about an assembly is controlled through the following
5-
// set of attributes. Change these attribute values to modify the information
6-
// associated with an assembly.
74
[assembly: AssemblyCompany("Positive Technologies")]
85
[assembly: AssemblyProduct("PT.PM")]
9-
[assembly: AssemblyCopyright("Copyright © Positive Technologies 2015-2017")]
6+
[assembly: AssemblyCopyright("Copyright © Positive Technologies 2015-2018")]
107
[assembly: AssemblyTrademark("")]
118
[assembly: AssemblyCulture("")]
129
[assembly: CLSCompliant(false)]
13-
14-
// Version information for an assembly consists of the following four values:
15-
//
16-
// Major Version
17-
// Minor Version
18-
// Build Number
19-
// Revision
20-
//
21-
// You can specify all the values or you can default the Build and Revision Numbers
22-
// by using the '*' as shown below:
23-
// [assembly: AssemblyVersion("1.0.*")]
2410
[assembly: AssemblyVersion("1.0.0.0")]
25-
// [assembly: AssemblyFileVersion("1.0.5.*")]
Lines changed: 15 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,23 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.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')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
43
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{2B5519C9-4566-4743-A14A-66234299CDB8}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>PT.PM.AntlrUtils</RootNamespace>
11-
<AssemblyName>PT.PM.AntlrUtils</AssemblyName>
12-
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
146
</PropertyGroup>
15-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16-
<DebugSymbols>true</DebugSymbols>
17-
<DebugType>full</DebugType>
18-
<Optimize>false</Optimize>
7+
8+
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
199
<OutputPath>..\..\bin\Debug\</OutputPath>
20-
<DefineConstants>DEBUG;TRACE</DefineConstants>
21-
<ErrorReport>prompt</ErrorReport>
22-
<WarningLevel>4</WarningLevel>
2310
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25-
<DebugType>pdbonly</DebugType>
26-
<Optimize>true</Optimize>
11+
12+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
2713
<OutputPath>..\..\bin\Release\</OutputPath>
28-
<DefineConstants>TRACE</DefineConstants>
29-
<ErrorReport>prompt</ErrorReport>
30-
<WarningLevel>4</WarningLevel>
3114
</PropertyGroup>
15+
3216
<ItemGroup>
33-
<Reference Include="Antlr4.Runtime, Version=4.6.0.0, Culture=neutral, PublicKeyToken=09abb75b9ed49849, processorArchitecture=MSIL">
34-
<HintPath>$(SolutionDir)packages\Antlr4.Runtime.4.6.3\lib\net45\Antlr4.Runtime.dll</HintPath>
35-
</Reference>
36-
<Reference Include="System" />
37-
<Reference Include="System.Core" />
38-
<Reference Include="System.Xml.Linq" />
39-
<Reference Include="System.Data.DataSetExtensions" />
40-
<Reference Include="Microsoft.CSharp" />
41-
<Reference Include="System.Data" />
42-
<Reference Include="System.Xml" />
17+
<Compile Include="..\AssemblyInfoCommon.cs" Link="AssemblyInfoCommon.cs" />
18+
<PackageReference Include="Antlr4.Runtime" Version="4.6.5-beta002" />
19+
20+
<ProjectReference Include="..\PT.PM.Common\PT.PM.Common.csproj" />
4321
</ItemGroup>
44-
<ItemGroup>
45-
<Compile Include="AntlrParseTree.cs" />
46-
<Compile Include="AntlrCaseInsensitiveInputStream.cs" />
47-
<Compile Include="AntlrDumper.cs" />
48-
<Compile Include="AntlrUtils.cs" />
49-
<Compile Include="AntlrMemoryErrorListener.cs" />
50-
<Compile Include="AntlrParser.cs" />
51-
<Compile Include="AntlrConverter.cs" />
52-
<Compile Include="CaseInsensitiveType.cs" />
53-
<Compile Include="Properties\AssemblyInfo.cs" />
54-
<Compile Include="..\AssemblyInfoCommon.cs">
55-
<Link>Properties\AssemblyInfoCommon.cs</Link>
56-
</Compile>
57-
</ItemGroup>
58-
<ItemGroup>
59-
<ProjectReference Include="..\PT.PM.Common\PT.PM.Common.csproj">
60-
<Project>{0b10dbae-c18d-4007-b799-0b3b1e00376e}</Project>
61-
<Name>PT.PM.Common</Name>
62-
</ProjectReference>
63-
</ItemGroup>
64-
<ItemGroup>
65-
<None Include="packages.config" />
66-
</ItemGroup>
67-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
68-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
69-
Other similar extension points exist, see Microsoft.Common.targets.
70-
<Target Name="BeforeBuild">
71-
</Target>
72-
<Target Name="AfterBuild">
73-
</Target>
74-
-->
75-
</Project>
22+
23+
</Project>

Sources/PT.PM.AntlrUtils/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

Sources/PT.PM.AntlrUtils/packages.config

Lines changed: 0 additions & 4 deletions
This file was deleted.

Sources/PT.PM.CSharpParseTreeUst.Tests/CSharpConverterTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using NUnit.Framework;
55
using PT.PM.Common.Nodes.GeneralScope;
66
using System.IO;
7+
using System;
78

89
namespace PT.PM.CSharpParseTreeUst.Tests
910
{
@@ -25,7 +26,7 @@ public void Convert_CSharp_BaseTypesExist()
2526
bool result = ust.AnyDescendant(descendant =>
2627
{
2728
return descendant is TypeDeclaration typeDeclaration &&
28-
typeDeclaration.BaseTypes.Any(type => type.TypeText == "IDisposable");
29+
typeDeclaration.BaseTypes.Any(type => type.TypeText == nameof(IDisposable));
2930
});
3031
Assert.IsTrue(result, "Ust doesn't contain type declaration node with IDisposable base type");
3132
}

Sources/PT.PM.CSharpParseTreeUst.Tests/CSharpParserTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace PT.PM.CSharpParseTreeUst.Tests
88
[TestFixture]
99
public class CSharpParserTests
1010
{
11+
[Test]
1112
public void Parse_CSharpWithRoslyn()
1213
{
1314
TestUtility.CheckFile(Path.Combine(TestUtility.GrammarsDirectory, "csharp", "not-ready-examples", "AllInOne.cs"),

0 commit comments

Comments
 (0)