Skip to content

Commit

Permalink
Build and test the net30 target with the new project system
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Jul 16, 2017
1 parent 8dc2c10 commit 6fe6d56
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 439 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test_script:
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory=runtime-suite" "C:\projects\antlr4cs\runtime\CSharp\Antlr4.Runtime.Test\bin\%CONFIGURATION%\portable40-net40+sl5+win8+wp8+wpa81\Antlr4.Runtime.Test.dll"
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory=runtime-suite" "C:\projects\antlr4cs\runtime\CSharp\Antlr4.Runtime.Test\bin\%CONFIGURATION%\net40\Antlr4.Runtime.Test.dll"
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory=runtime-suite" "C:\projects\antlr4cs\runtime\CSharp\Antlr4.Runtime.Test\bin\%CONFIGURATION%\net35\Antlr4.Runtime.Test.dll"
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory=runtime-suite" "C:\projects\antlr4cs\runtime\CSharp\Antlr4.Runtime.Test\bin\net30\%CONFIGURATION%\Antlr4.Runtime.Test.net30.dll"
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory=runtime-suite" "C:\projects\antlr4cs\runtime\CSharp\Antlr4.Runtime.Test\bin\%CONFIGURATION%\net30\Antlr4.Runtime.Test.dll"
- vstest.console /logger:Appveyor /TestCaseFilter:"TestCategory=runtime-suite" "C:\projects\antlr4cs\runtime\CSharp\Antlr4.Runtime.Test\bin\net20\%CONFIGURATION%\Antlr4.Runtime.Test.net20.dll"
cache:
- C:\MavenRepo -> **\pom.xml
Expand Down
6 changes: 3 additions & 3 deletions build/Antlr4.Runtime.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\net20\$Configuration$\Antlr4.Runtime.pdb" target="lib\net20"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\net20\$Configuration$\Antlr4.Runtime.xml" target="lib\net20"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\net30\$Configuration$\Antlr4.Runtime.dll" target="lib\net30"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\net30\$Configuration$\Antlr4.Runtime.pdb" target="lib\net30"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\net30\$Configuration$\Antlr4.Runtime.xml" target="lib\net30"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\$Configuration$\net30\Antlr4.Runtime.dll" target="lib\net30"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\$Configuration$\net30\Antlr4.Runtime.pdb" target="lib\net30"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\$Configuration$\net30\Antlr4.Runtime.xml" target="lib\net30"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\$Configuration$\net35-client\Antlr4.Runtime.dll" target="lib\net35-client"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\$Configuration$\net35-client\Antlr4.Runtime.pdb" target="lib\net35-client"/>
Expand Down
2 changes: 2 additions & 0 deletions build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ if (-not $SkipKeyCheck) {
$assembly = Resolve-FullPath -Path "..\runtime\CSharp\Antlr4.Runtime\bin\$BuildConfig\$($pair.Key)\Antlr4.Runtime.dll"
} elseif ($pair.Key -eq 'net35-cf') {
$assembly = Resolve-FullPath -Path "..\runtime\CSharp\Antlr4.Runtime\bin\$BuildConfig\$($pair.Key)\Antlr4.Runtime.dll"
} elseif ($pair.Key -eq 'net30') {
$assembly = Resolve-FullPath -Path "..\runtime\CSharp\Antlr4.Runtime\bin\$BuildConfig\$($pair.Key)\Antlr4.Runtime.dll"
} else {
$assembly = Resolve-FullPath -Path "..\runtime\CSharp\Antlr4.Runtime\bin\$($pair.Key)\$BuildConfig\Antlr4.Runtime.dll"
}
Expand Down
16 changes: 15 additions & 1 deletion runtime/CSharp/Antlr4.Runtime.Test/Antlr4.Runtime.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<PropertyGroup>
<!-- Note: net452 is used for testing the netstandard1.1 target. -->
<TargetFrameworks>net35;portable40-net40+sl5+win8+wp8+wpa81;net40;net45;net452</TargetFrameworks>
<TargetFrameworks>net30;net35;portable40-net40+sl5+win8+wp8+wpa81;net40;net45;net452</TargetFrameworks>
<EnableDefaultNoneItems>False</EnableDefaultNoneItems>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>

Expand All @@ -23,6 +23,20 @@
</PropertyGroup>

<Choose>
<When Condition="'$(TargetFramework)' == 'net30'">
<PropertyGroup>
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<DefineConstants>$(DefineConstants);NET30;NET30PLUS;NET20PLUS</DefineConstants>
<MSTest2>False</MSTest2>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Antlr4.Runtime\Antlr4.Runtime.csproj">
<SetTargetFramework>TargetFramework=net30</SetTargetFramework>
</ProjectReference>
</ItemGroup>
</When>
<When Condition="'$(TargetFramework)' == 'net35'">
<PropertyGroup>
<DefineConstants>$(DefineConstants);NET35;NET35PLUS;NET30PLUS;NET20PLUS</DefineConstants>
Expand Down
129 changes: 0 additions & 129 deletions runtime/CSharp/Antlr4.Runtime.Test/Antlr4.Runtime.Test.net30.csproj

This file was deleted.

This file was deleted.

7 changes: 6 additions & 1 deletion runtime/CSharp/Antlr4.Runtime/Antlr4.Runtime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard1.1;net35-cf;net35-client;portable40-net40+sl5+win8+wp8+wpa81;net40-client;net45</TargetFrameworks>
<TargetFrameworks>netstandard1.1;net30;net35-cf;net35-client;portable40-net40+sl5+win8+wp8+wpa81;net40-client;net45</TargetFrameworks>
<EnableDefaultNoneItems>False</EnableDefaultNoneItems>

<AssemblyVersion>4.6.0.0</AssemblyVersion>
Expand Down Expand Up @@ -36,6 +36,11 @@
</PropertyGroup>

<Choose>
<When Condition="'$(TargetFramework)' == 'net30'">
<PropertyGroup>
<DefineConstants>$(DefineConstants);NET30;NET30PLUS;NET20PLUS</DefineConstants>
</PropertyGroup>
</When>
<When Condition="'$(TargetFramework)' == 'net35-cf'">
<PropertyGroup>
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
Expand Down
Loading

0 comments on commit 6fe6d56

Please sign in to comment.