diff --git a/Examples/Angular/ModelFromAssembly/ModelFromAssembly.csproj b/Examples/Angular/ModelFromAssembly/ModelFromAssembly.csproj index 30aa40d1..62a47f4e 100644 --- a/Examples/Angular/ModelFromAssembly/ModelFromAssembly.csproj +++ b/Examples/Angular/ModelFromAssembly/ModelFromAssembly.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/Examples/Angular/ModelFromAssembly/Output/another-type.ts b/Examples/Angular/ModelFromAssembly/Output/another-type.ts index 4065626c..884562fe 100644 --- a/Examples/Angular/ModelFromAssembly/Output/another-type.ts +++ b/Examples/Angular/ModelFromAssembly/Output/another-type.ts @@ -1,6 +1,6 @@ // ------------------------------------------------------------------------------ // -// 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. // diff --git a/Examples/Angular/ModelFromAssembly/Output/type-to-read.ts b/Examples/Angular/ModelFromAssembly/Output/type-to-read.ts index 66fb5c54..0bc52e2a 100644 --- a/Examples/Angular/ModelFromAssembly/Output/type-to-read.ts +++ b/Examples/Angular/ModelFromAssembly/Output/type-to-read.ts @@ -1,6 +1,6 @@ // ------------------------------------------------------------------------------ // -// 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. // diff --git a/Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/models/weather-forecast.ts b/Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/models/weather-forecast.ts index ee67a3af..1159c202 100644 --- a/Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/models/weather-forecast.ts +++ b/Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/models/weather-forecast.ts @@ -1,6 +1,6 @@ // ------------------------------------------------------------------------------ // -// 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. // diff --git a/Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/services/weather-forecast.service.ts b/Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/services/weather-forecast.service.ts index c61adaa5..30429e46 100644 --- a/Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/services/weather-forecast.service.ts +++ b/Examples/Angular/ServiceFromAspNetCoreAnnotation/ClientApp/src/app/services/weather-forecast.service.ts @@ -1,6 +1,6 @@ // ------------------------------------------------------------------------------ // -// 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. // diff --git a/Examples/Angular/ServiceFromAspNetCoreAnnotation/ServiceFromAspNetCoreAnnotation.csproj b/Examples/Angular/ServiceFromAspNetCoreAnnotation/ServiceFromAspNetCoreAnnotation.csproj index f350c835..42bb1163 100644 --- a/Examples/Angular/ServiceFromAspNetCoreAnnotation/ServiceFromAspNetCoreAnnotation.csproj +++ b/Examples/Angular/ServiceFromAspNetCoreAnnotation/ServiceFromAspNetCoreAnnotation.csproj @@ -14,8 +14,8 @@ - - + + diff --git a/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/connection-status.ts b/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/connection-status.ts index 9f600e75..db81fe6a 100644 --- a/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/connection-status.ts +++ b/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/connection-status.ts @@ -1,6 +1,6 @@ // ------------------------------------------------------------------------------ // -// 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. // diff --git a/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/weather-forecast.ts b/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/weather-forecast.ts index ea22918f..76050a91 100644 --- a/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/weather-forecast.ts +++ b/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/models/weather-forecast.ts @@ -1,6 +1,6 @@ // ------------------------------------------------------------------------------ // -// 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. // diff --git a/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/services/weather-hub.service.ts b/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/services/weather-hub.service.ts index 6e19f1da..61455ca9 100644 --- a/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/services/weather-hub.service.ts +++ b/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ClientApp/src/app/services/weather-hub.service.ts @@ -1,6 +1,6 @@ // ------------------------------------------------------------------------------ // -// 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. // diff --git a/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ServiceFromAspNetCoreSignalRHub.csproj b/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ServiceFromAspNetCoreSignalRHub.csproj index c03c9b97..e5feafce 100644 --- a/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ServiceFromAspNetCoreSignalRHub.csproj +++ b/Examples/Angular/ServiceFromAspNetCoreSignalRHub/ServiceFromAspNetCoreSignalRHub.csproj @@ -14,8 +14,8 @@ - - + + diff --git a/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Generator/Generator.csproj b/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Generator/Generator.csproj index b43980a4..f1add544 100644 --- a/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Generator/Generator.csproj +++ b/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Generator/Generator.csproj @@ -5,11 +5,11 @@ - - - - - + + + + + diff --git a/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Service/ClientApp/src/app/models/weather-forecast.ts b/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Service/ClientApp/src/app/models/weather-forecast.ts index 881a2bdb..6c328217 100644 --- a/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Service/ClientApp/src/app/models/weather-forecast.ts +++ b/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Service/ClientApp/src/app/models/weather-forecast.ts @@ -1,6 +1,6 @@ // ------------------------------------------------------------------------------ // -// 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. // diff --git a/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Service/ClientApp/src/app/services/weather-forecast.service.ts b/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Service/ClientApp/src/app/services/weather-forecast.service.ts index 4a581a06..bbc0af08 100644 --- a/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Service/ClientApp/src/app/services/weather-forecast.service.ts +++ b/Examples/Angular/ServiceFromAspNetCoreViaFluentApi/Service/ClientApp/src/app/services/weather-forecast.service.ts @@ -1,6 +1,6 @@ // ------------------------------------------------------------------------------ // -// 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. // diff --git a/Examples/Angular/ServiceFromSignalRViaFluentApi/ServiceFromSignalRViaFluentApi.csproj b/Examples/Angular/ServiceFromSignalRViaFluentApi/ServiceFromSignalRViaFluentApi.csproj index 09b612df..8206e21b 100644 --- a/Examples/Angular/ServiceFromSignalRViaFluentApi/ServiceFromSignalRViaFluentApi.csproj +++ b/Examples/Angular/ServiceFromSignalRViaFluentApi/ServiceFromSignalRViaFluentApi.csproj @@ -13,10 +13,10 @@ - - - - + + + + diff --git a/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant.sln b/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant.sln new file mode 100644 index 00000000..5f6dcb3c --- /dev/null +++ b/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant.sln @@ -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 diff --git a/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant/Class1.cs b/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant/Class1.cs new file mode 100644 index 00000000..4dce55b0 --- /dev/null +++ b/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant/Class1.cs @@ -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; + } +} \ No newline at end of file diff --git a/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant/Output/class-1.ts b/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant/Output/class-1.ts new file mode 100644 index 00000000..9b0bc32a --- /dev/null +++ b/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant/Output/class-1.ts @@ -0,0 +1,19 @@ +// ------------------------------------------------------------------------------ +// +// 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. +// +// ------------------------------------------------------------------------------ +// tslint:disable + +export class Class1 { + public static readonly stringProperty: string = "Value-One"; + public static readonly numberProperty: number = 7; + + public constructor(init: Partial = undefined) { + Object.assign(this, init); + } +} + +// outputid:fae04ec0-301f-11d3-bf4b-00c04f79efbc diff --git a/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant/ReflectionFromConstant.csproj b/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant/ReflectionFromConstant.csproj new file mode 100644 index 00000000..5b014dce --- /dev/null +++ b/Examples/Reflection/ReflectionFromConstant/ReflectionFromConstant/ReflectionFromConstant.csproj @@ -0,0 +1,12 @@ + + + + net5.0 + + + + + + + + diff --git a/Examples/Reflection/build.cmd b/Examples/Reflection/build.cmd index 70f935a5..6c089b4b 100644 --- a/Examples/Reflection/build.cmd +++ b/Examples/Reflection/build.cmd @@ -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 .. \ No newline at end of file diff --git a/Tests/AnnotationAsync/AnnotationAsync.csproj b/Tests/AnnotationAsync/AnnotationAsync.csproj index d9770f2a..e429acf9 100644 --- a/Tests/AnnotationAsync/AnnotationAsync.csproj +++ b/Tests/AnnotationAsync/AnnotationAsync.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/Tests/AnnotationAsyncAssembly/AnnotationAsyncAssembly.csproj b/Tests/AnnotationAsyncAssembly/AnnotationAsyncAssembly.csproj index 6a7e700a..bed8918e 100644 --- a/Tests/AnnotationAsyncAssembly/AnnotationAsyncAssembly.csproj +++ b/Tests/AnnotationAsyncAssembly/AnnotationAsyncAssembly.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/Tests/AnnotationInNestedClass/AnnotationInNestedClass.csproj b/Tests/AnnotationInNestedClass/AnnotationInNestedClass.csproj index 99831d8b..fb0db6e3 100644 --- a/Tests/AnnotationInNestedClass/AnnotationInNestedClass.csproj +++ b/Tests/AnnotationInNestedClass/AnnotationInNestedClass.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/Tests/AnnotationsWithMultipleOutputs/AnnotationsWithMultipleOutputs.csproj b/Tests/AnnotationsWithMultipleOutputs/AnnotationsWithMultipleOutputs.csproj index ee1c3dec..0fbb39a3 100644 --- a/Tests/AnnotationsWithMultipleOutputs/AnnotationsWithMultipleOutputs.csproj +++ b/Tests/AnnotationsWithMultipleOutputs/AnnotationsWithMultipleOutputs.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/Tests/Fluent/Fluent.Generator/Fluent.Generator.csproj b/Tests/Fluent/Fluent.Generator/Fluent.Generator.csproj index 3d6a890e..da7adb88 100644 --- a/Tests/Fluent/Fluent.Generator/Fluent.Generator.csproj +++ b/Tests/Fluent/Fluent.Generator/Fluent.Generator.csproj @@ -6,10 +6,10 @@ - - - - + + + + diff --git a/Tests/Types/Types.csproj b/Tests/Types/Types.csproj index e2c7ca0f..9496f743 100644 --- a/Tests/Types/Types.csproj +++ b/Tests/Types/Types.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/Tests/WebApiController/WebApiController.csproj b/Tests/WebApiController/WebApiController.csproj index 86468c1d..8a604b76 100644 --- a/Tests/WebApiController/WebApiController.csproj +++ b/Tests/WebApiController/WebApiController.csproj @@ -15,8 +15,8 @@ - - + + diff --git a/TypeScript/KY.Generator.TypeScript.csproj b/TypeScript/KY.Generator.TypeScript.csproj index 3eb62d4d..9c478589 100644 --- a/TypeScript/KY.Generator.TypeScript.csproj +++ b/TypeScript/KY.Generator.TypeScript.csproj @@ -4,7 +4,7 @@ netstandard2.0 KY-Programming KY-Programming - 6.2.2 + 6.3.0 KY.Generator TypeScript Module for KY-Generator Download KY.Generator to use this module