-
Notifications
You must be signed in to change notification settings - Fork 7
/
Test.csproj
57 lines (57 loc) · 1.58 KB
/
Test.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!-- Template generated code from trgen 0.10.0 -->
<Project Sdk="Microsoft.NET.Sdk" >
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<Antlr4 Include="JavaScriptLexer.g4">
</Antlr4>
<Antlr4 Include="JavaScriptParser.g4">
</Antlr4>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Antlr4.Runtime.Standard" Version ="4.9.3" />
<PackageReference Include="Antlr4BuildTasks" Version = "8.17" PrivateAssets="all" />
<PackageReference Include="AntlrTreeEditing" Version="4.0.0" />
</ItemGroup>
<PropertyGroup>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'" >
<NoWarn>1701;1702;3021</NoWarn>
</PropertyGroup>
<PropertyGroup>
<!--
need the CData since this blob is just going to
be embedded in a mini batch file by studio/msbuild
-->
<MyTester><![CDATA[
set ERR=0
for %%G in (..\examples\*) do (
setlocal EnableDelayedExpansion
set FILE=%%G
set X1=%%~xG
set X2=%%~nG
set X3=%%~pG
if !X1! neq .errors (
echo !FILE!
cat !FILE! | bin\Debug\net5.0\Test.exe
if not exist !FILE!.errors (
if ERRORLEVEL 1 set ERR=1
) else (
echo Expected.
)
)
)
EXIT %ERR%
]]></MyTester>
</PropertyGroup>
<Target Name="Test" >
<Message Text="testing" />
<Exec Command="$(MyTester)" >
<Output TaskParameter="ExitCode" PropertyName ="ErrorCode" />
</Exec>
<Message Importance="high" Text="$(ErrorCode)"/>
</Target>
</Project>