Skip to content

Commit d0620c0

Browse files
committed
Tests and examples updated
1 parent 940b33f commit d0620c0

File tree

17 files changed

+84
-14
lines changed

17 files changed

+84
-14
lines changed

Tests/AnnotationInNestedClass.sln

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30709.132
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AnnotationInNestedClass", "AnnotationInNestedClass\AnnotationInNestedClass.csproj", "{98B85044-9F73-43E4-9366-7E8636CB5A84}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{98B85044-9F73-43E4-9366-7E8636CB5A84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{98B85044-9F73-43E4-9366-7E8636CB5A84}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{98B85044-9F73-43E4-9366-7E8636CB5A84}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{98B85044-9F73-43E4-9366-7E8636CB5A84}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {DFA7AA3D-2DD5-423E-BF8D-1914702DE5CC}
24+
EndGlobalSection
25+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net5.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="KY.Generator" Version="5.5.1" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.5.1" />
10+
</ItemGroup>
11+
12+
</Project>
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using KY.Generator;
2+
3+
namespace AnnotationInNestedClass
4+
{
5+
public class Class1
6+
{
7+
[Generate(OutputLanguage.TypeScript, "Output")]
8+
public class Class2
9+
{ }
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// ------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated with KY.Generator 5.5.1.0
4+
// Manual changes to this file may cause unexpected behavior in your application.
5+
// Manual changes to this file will be overwritten if the code is regenerated.
6+
// </auto-generated>
7+
// ------------------------------------------------------------------------------
8+
// tslint:disable
9+
10+
export class Class2 {
11+
}

Tests/Types/Output/sub-type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/Types/Output/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/Types/Types.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator" Version="5.5.0" />
9-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.5.0" />
8+
<PackageReference Include="KY.Generator" Version="5.5.1" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.5.1" />
1010
</ItemGroup>
1111

1212
</Project>

Tests/WebApiController/ClientApp/src/app/fix-casing/models/casing-model.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/WebApiController/ClientApp/src/app/fix-casing/services/fix-casing.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/WebApiController/ClientApp/src/app/keep-casing/models/casing-model.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/WebApiController/ClientApp/src/app/keep-casing/services/keep-casing.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/WebApiController/ClientApp/src/app/produces/models/weather-forecast.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/WebApiController/ClientApp/src/app/produces/services/produces.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/WebApiController/ClientApp/src/app/versioned-api/models/weather-forecast.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/WebApiController/ClientApp/src/app/versioned-api/services/versioned-api.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 5.5.0.0
3+
// This code was generated with KY.Generator 5.5.1.0
44
// Manual changes to this file may cause unexpected behavior in your application.
55
// Manual changes to this file will be overwritten if the code is regenerated.
66
// </auto-generated>

Tests/WebApiController/WebApiController.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="KY.Core.Common" Version="4.14.0" />
17-
<PackageReference Include="KY.Generator" Version="5.5.0" />
18-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.5.0" />
17+
<PackageReference Include="KY.Generator" Version="5.5.1" />
18+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="5.5.1" />
1919
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.1.1" />
2020
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
2121
</ItemGroup>

Tests/build.cmd

+11
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,15 @@ dotnet add package KY.Generator.Reflection.Annotations
4040
dotnet build --no-incremental
4141
cd ..
4242

43+
REM ==========================================
44+
REM || AnnotationInNestedClass ||
45+
REM ==========================================
46+
REM
47+
cd AnnotationInNestedClass
48+
rmdir /S/Q Output
49+
dotnet add package KY.Generator
50+
dotnet add package KY.Generator.Reflection.Annotations
51+
dotnet build --no-incremental
52+
cd ..
53+
4354
PAUSE

0 commit comments

Comments
 (0)