Skip to content

Commit cf360f4

Browse files
committed
Reflection
- examples updated to latest version
1 parent ba5beb4 commit cf360f4

File tree

17 files changed

+27
-31
lines changed

17 files changed

+27
-31
lines changed

Examples/Reflection/ReflectionFromAttributes/Output/type-to-read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 3.3.0.0
3+
// This code was generated with KY.Generator 4.0.0.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>

Examples/Reflection/ReflectionFromAttributes/ReflectionFromAttributes.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="KY.Generator.CLI.Standalone" Version="3.3.0" />
9-
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="3.3.0" />
8+
<PackageReference Include="KY.Generator" Version="4.0.0" />
9+
<PackageReference Include="KY.Generator.Reflection.Annotations" Version="4.0.0" />
1010
</ItemGroup>
1111

12-
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
13-
<Exec Command="&quot;%25USERPROFILE%25\.nuget\packages\ky.generator.cli.standalone\3.3.0\tools\KY.Generator.exe&quot; reflection -fromAttributes -language=typescript -skipNamespace -propertiesToFields -formatNames -assembly=&quot;$(TargetPath)&quot; -output=&quot;$(ProjectDir)Output&quot;" />
14-
</Target>
15-
1612
</Project>

Examples/Reflection/ReflectionFromAttributes/TypeToRead.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using KY.Generator.Reflection;
1+
using KY.Generator;
22

33
namespace ReflectionFromAttributes
44
{
5-
[Generate]
5+
[Generate(OutputLanguage.TypeScript, "Output")]
66
public class TypeToRead
77
{
88
public string StringProperty { get; set; }

Examples/Reflection/ReflectionFromCore/Output/type-to-read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 3.3.0.0
3+
// This code was generated with KY.Generator 4.0.0.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>

Examples/Reflection/ReflectionFromCore/ReflectionFromCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="KY.Generator.CLI.Core" Version="3.3.0" />
9+
<PackageReference Include="KY.Generator" Version="4.0.0" />
1010
</ItemGroup>
1111

1212
</Project>

Examples/Reflection/ReflectionFromExecutable/Output/type-to-read.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ------------------------------------------------------------------------------
22
// <auto-generated>
3-
// This code was generated with KY.Generator 3.3.0.0
3+
// This code was generated with KY.Generator 4.0.0.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>

Examples/Reflection/ReflectionFromExecutable/ReflectionFromExecutable.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
<PostBuildEvent>
6767
</PostBuildEvent>
6868
</PropertyGroup>
69-
<Import Project="..\packages\KY.Generator.CLI.3.3.0\build\KY.Generator.CLI.targets" Condition="Exists('..\packages\KY.Generator.CLI.3.3.0\build\KY.Generator.CLI.targets')" />
69+
<Import Project="..\packages\KY.Generator.4.0.0\build\KY.Generator.targets" Condition="Exists('..\packages\KY.Generator.4.0.0\build\KY.Generator.targets')" />
7070
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
7171
<PropertyGroup>
7272
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
7373
</PropertyGroup>
74-
<Error Condition="!Exists('..\packages\KY.Generator.CLI.3.3.0\build\KY.Generator.CLI.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\KY.Generator.CLI.3.3.0\build\KY.Generator.CLI.targets'))" />
74+
<Error Condition="!Exists('..\packages\KY.Generator.4.0.0\build\KY.Generator.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\KY.Generator.4.0.0\build\KY.Generator.targets'))" />
7575
</Target>
7676
</Project>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="KY.Generator.CLI" version="3.3.0" targetFramework="net461" />
3+
<package id="KY.Generator" version="4.0.0" targetFramework="net461" />
44
</packages>

Examples/Reflection/ReflectionFromIndex/IgnoredType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using KY.Generator.Reflection;
1+
using KY.Generator;
22

33
namespace ReflectionFromIndex
44
{

Examples/Reflection/ReflectionFromIndex/Index.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using KY.Generator.Reflection;
1+
using KY.Generator;
22

33
namespace ReflectionFromIndex
44
{
5-
[GenerateIndex]
5+
[GenerateIndex(OutputLanguage.Inherit, "Output")]
66
internal class Index
77
{
88
public TypeToRead type1;

0 commit comments

Comments
 (0)