samples icon indicating copy to clipboard operation
samples copied to clipboard

VS File Templates - New/Expanded

Open ericwood8 opened this issue 1 year ago • 0 comments

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

ericwood8 avatar Jul 09 '24 15:07 ericwood8