-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Running the following command
dotnet typegen generate --project-folder .\Pickem.Shared\ --output-folder D:\Repos\pickem\Pickem.Shared\typescript --verbose
There are like 12 classes in this project with the [ExportTsClass] attribute on them.
[ExportTsClass]
public class TeamDTO
{
public string? Id { get; set; }
public SportType? Sport { get; set; }
public string? PartitionKey { get; set; }
public string? City { get; set; }
public string? Name { get; set; }
public string? Abbreviation { get; set; }
public string? Conference { get; set; }
public string? Division { get; set; }
public string Emoji { get; set; }
public Team ToTeam()
{
return new Team
{
Id = this.Id,
Sport = this.Sport,
PartitionKey = this.PartitionKey,
City = this.City,
Name = this.Name,
Abbreviation = this.Abbreviation,
Conference = this.Conference,
Division = this.Division,
Emoji = this.Emoji
};
}
}
Output:
dotnet typegen generate --project-folder .\Pickem.Shared\ --output-folder D:\Repos\pickem\Pickem.Shared\typescript --verbose
Attempting to resolve assembly 'Microsoft.Azure.Cosmos.Client, Version=3.35.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'...
Assembly 'Microsoft.Azure.Cosmos.Client, Version=3.35.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' found in: C:\Users\trieb\.nuget\packages\Microsoft.Azure.Cosmos\3.35.3\lib\netstandard2.0\Microsoft.Azure.Cosmos.Client.dll
Attempting to resolve assembly 'Microsoft.Extensions.Identity.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'...
Assembly 'Microsoft.Extensions.Identity.Core, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' found in: C:\Users\trieb\.nuget\packages\Microsoft.Extensions.Identity.Core\6.0.1\lib\net6.0\Microsoft.Extensions.Identity.Core.dll
Type 'PascalCaseToKebabCaseConverter' not found in assemblies: 'Pickem.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Falling back to TypeGen.Core.
Type 'PascalCaseToKebabCaseConverter' found in TypeGen.Core
Type 'PascalCaseToCamelCaseConverter' not found in assemblies: 'Pickem.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Falling back to TypeGen.Core.
Type 'PascalCaseToCamelCaseConverter' found in TypeGen.Core
Generating files for project ".\Pickem.Shared\"...
Files for project ".\Pickem.Shared\" generated successfully.
Metadata
Metadata
Assignees
Labels
No labels