Skip to content

Commit

Permalink
Tests and examples updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ky-one committed Jan 11, 2021
1 parent dabf0ce commit dff2b61
Show file tree
Hide file tree
Showing 27 changed files with 120 additions and 41 deletions.
4 changes: 2 additions & 2 deletions Examples/Angular/ModelFromAssembly/ModelFromAssembly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Annotations" Version="6.3.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Examples/Angular/ModelFromAssembly/Output/another-type.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// This code was generated with KY.Generator 6.3.0.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
Expand Down
2 changes: 1 addition & 1 deletion Examples/Angular/ModelFromAssembly/Output/type-to-read.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// This code was generated with KY.Generator 6.3.0.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// This code was generated with KY.Generator 6.3.0.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// This code was generated with KY.Generator 6.3.0.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Annotations" Version="6.3.0" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// This code was generated with KY.Generator 6.3.0.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// This code was generated with KY.Generator 6.3.0.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// This code was generated with KY.Generator 6.3.0.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Annotations" Version="6.3.0" />
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Angular" Version="6.2.2" />
<PackageReference Include="KY.Generator.AspDotNet" Version="6.2.2" />
<PackageReference Include="KY.Generator.Fluent" Version="6.2.2" />
<PackageReference Include="KY.Generator.Reflection" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Angular" Version="6.3.0" />
<PackageReference Include="KY.Generator.AspDotNet" Version="6.3.0" />
<PackageReference Include="KY.Generator.Fluent" Version="6.3.0" />
<PackageReference Include="KY.Generator.Reflection" Version="6.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// This code was generated with KY.Generator 6.3.0.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// This code was generated with KY.Generator 6.3.0.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Angular" Version="6.2.2" />
<PackageReference Include="KY.Generator.Fluent" Version="6.2.2" />
<PackageReference Include="KY.Generator.Reflection" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Angular" Version="6.3.0" />
<PackageReference Include="KY.Generator.Fluent" Version="6.3.0" />
<PackageReference Include="KY.Generator.Reflection" Version="6.3.0" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="5.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30709.132
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReflectionFromConstant", "ReflectionFromConstant\ReflectionFromConstant.csproj", "{1626FB68-8B5D-4615-A66B-4F8C86685FD6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1626FB68-8B5D-4615-A66B-4F8C86685FD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1626FB68-8B5D-4615-A66B-4F8C86685FD6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1626FB68-8B5D-4615-A66B-4F8C86685FD6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1626FB68-8B5D-4615-A66B-4F8C86685FD6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {92335A13-6A84-47EC-AB16-3D56F275B72F}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using KY.Generator;

namespace ReflectionFromConstant
{
[GenerateAngularModel("Output")]
public class Class1
{
public const string StringProperty = "Value-One";
public const int NumberProperty = 7;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated with KY.Generator 6.2.2.0
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// tslint:disable

export class Class1 {
public static readonly stringProperty: string = "Value-One";
public static readonly numberProperty: number = 7;

public constructor(init: Partial<Class1> = undefined) {
Object.assign(this, init);
}
}

// outputid:fae04ec0-301f-11d3-bf4b-00c04f79efbc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
</ItemGroup>

</Project>
12 changes: 12 additions & 0 deletions Examples/Reflection/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,16 @@ rmdir /S/Q Output
dotnet add package KY.Generator --prerelease
dotnet add package KY.Generator.Annotations --prerelease
dotnet build --no-incremental
cd ..
REM
REM ====================================
REM || ReflectionFromConstant ||
REM ====================================
REM
cd ReflectionFromConstant
rmdir /S/Q bin
rmdir /S/Q Output
dotnet add package KY.Generator --prerelease
dotnet add package KY.Generator.Annotations --prerelease
dotnet build --no-incremental
cd ..
4 changes: 2 additions & 2 deletions Tests/AnnotationAsync/AnnotationAsync.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Annotations" Version="6.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Tests/AnnotationAsyncAssembly/AnnotationAsyncAssembly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Annotations" Version="6.3.0" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Tests/AnnotationInNestedClass/AnnotationInNestedClass.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Annotations" Version="6.3.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Annotations" Version="6.3.0" />
</ItemGroup>

</Project>
8 changes: 4 additions & 4 deletions Tests/Fluent/Fluent.Generator/Fluent.Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Angular" Version="6.2.2" />
<PackageReference Include="KY.Generator.Fluent" Version="6.2.2" />
<PackageReference Include="KY.Generator.Reflection" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Angular" Version="6.3.0" />
<PackageReference Include="KY.Generator.Fluent" Version="6.3.0" />
<PackageReference Include="KY.Generator.Reflection" Version="6.3.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Tests/Types/Types.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Annotations" Version="6.3.0" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Tests/WebApiController/WebApiController.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

<ItemGroup>
<PackageReference Include="KY.Core.Common" Version="4.14.0" />
<PackageReference Include="KY.Generator" Version="6.2.2" />
<PackageReference Include="KY.Generator.Annotations" Version="6.2.2" />
<PackageReference Include="KY.Generator" Version="6.3.0" />
<PackageReference Include="KY.Generator.Annotations" Version="6.3.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.1.1" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.7" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion TypeScript/KY.Generator.TypeScript.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<Company>KY-Programming</Company>
<Authors>KY-Programming</Authors>
<Version>6.2.2</Version>
<Version>6.3.0</Version>
<Product>KY.Generator</Product>
<Description>TypeScript Module for KY-Generator
Download KY.Generator to use this module</Description>
Expand Down

0 comments on commit dff2b61

Please sign in to comment.