Skip to content

VS File Templates - New/Expanded #6976

Open

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions