Skip to content

add class templates#29655

Merged
YuliiaKovalova merged 17 commits intodotnet:release/7.0.2xxfrom
YuliiaKovalova:dev/ykovalova/add_class-tempaltes_7.0.2
Dec 26, 2022
Merged

add class templates#29655
YuliiaKovalova merged 17 commits intodotnet:release/7.0.2xxfrom
YuliiaKovalova:dev/ykovalova/add_class-tempaltes_7.0.2

Conversation

@YuliiaKovalova
Copy link
Copy Markdown
Member

@YuliiaKovalova YuliiaKovalova commented Dec 22, 2022

Problem

Related to #28915 and #1713.

New C# item templates are added for creating:
class
interface
record
enum
struct
in existing project

Checks:

[*]Added unit tests
Added #nullable enable to all the modified files N/A

@YuliiaKovalova YuliiaKovalova requested a review from a team as a code owner December 22, 2022 17:56
@ghost
Copy link
Copy Markdown

ghost commented Dec 22, 2022

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@YuliiaKovalova YuliiaKovalova added the Area-dotnet new the item is related to dotnet new command label Dec 22, 2022
Comment thread template_feed/Microsoft.DotNet.Common.ItemTemplates/content/Enum-CSharp/Class1.cs Outdated
Copy link
Copy Markdown
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good.

I have just few comments I'd like to understand more background about them before signing off

Comment thread src/Tests/dotnet-new.Tests/DotnetClassTemplateTests.cs
Comment thread src/Tests/dotnet-new.Tests/DotnetClassTemplateTests.cs
@vlada-shubina vlada-shubina added the Area-Common templates Covers templates in the repo (classlib, console, common item templates) label Dec 23, 2022
Comment thread eng/template-engine.yml
vmImage: 'macOS-latest'
${{ if eq(variables['System.TeamProject'], 'public') }}:
helixTargetQueue: OSX.1015.Amd64.Open
helixTargetQueue: OSX.1100.Amd64.Open
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to the PR: we don't use helix - this should be removed. @GangWang01 could you please check it? Thank you.

Comment thread src/Tests/dotnet-new.Tests/DotnetClassTemplateTests.cs Outdated
Comment thread src/Tests/dotnet-new.Tests/DotnetClassTemplateTests.cs
Copy link
Copy Markdown
Member

@vlada-shubina vlada-shubina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just consider more test cases (but they can be also added later in separate PR).

Copy link
Copy Markdown
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Common templates Covers templates in the repo (classlib, console, common item templates) Area-dotnet new the item is related to dotnet new command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants