Skip to content

VS File Templates - New/Expanded #6976

@ericwood8

Description

@ericwood8

Enchancement - VS File Templates - New/Expanded - It would be nice if the file template user interface found in Visual Studio generate the code contained within here that is "the best", validated and issue free. Currently there seems to be a big disconnect from the VS team and these code samples. (You would need to write some user tests to confirm the best of these samples. I understand that some of these are user submitted or demo focused, but there is good work here.)

For example, I need a scoped background service at the moment. The "Worker Service" template by File > New > Project > "Worker Service" does not do anything as extensive as the options found here: https://github.com/dotnet/samples/tree/main/core/workers . The "Worker Service" template fails to: 1) have a "scoped services" checkbox like it should, 2) offer a dropdown of types of worker services (such as queue service, windows service, and this "standard" worker service).
Maybe there is a single consolidated service: cloud-service, signal completion service, timer service, and worker service. (I am thinking that the "scoped services" might be a checkbox because I could see that apply to multiple times of services.).

I am using the latest version of VS 2022.

For my specific example, you can also find code at:
https://learn.microsoft.com/en-us/dotnet/core/extensions/scoped-service?pivots=dotnet-6-0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions