Skip to content

VS is buggy when there is a problem with "framework" parameter #73

@YegorStepanov

Description

@YegorStepanov

Bug 1

When the framework parameter is string, the templates are not shown. Only in this repository I find that framework must be a choice.

Bug 2

If we delete/rename a string framework parameter, build and publish a template, add it to the CLI, and open VS, the working template will be shown. If then we close VS, revert deleted lines in the template, update the template in the CLI, and close & open VS, the template will be shown, but it's broken: if we create a project via this template, the empty broken solution with one file( .sln ) will be created (also, there is no screen to set up the template's parameters).

The broken templates are shown in 17.6.2 and 17.6.3, but not in 17.7.0 preview 2.0.

Bug 3

When framework is a choice, but no one desired framework is installed. VS display an empty screen:
image

Bug 3.1

BenchmarkDotNet works with almost all frameworks. Should they all be added to the framework? In this case, help is very verbosity (I've added a bit). Maybe help can be overridden?:
image

Bug 3.2

What about platform-specific TFM, like net6.0-windows? No way to add them? (From the CLI, the user should still use -f net6.0-windows (backwards compatibility)).

Will these issues be fixed soon, or will we have to disallow templates to set platform-specific TFM? (Indeed, it's not a big problem)

[Edit] Maybe you will allow this parameter to be a string, and until then it's ok that BDN templates are broken in VS?

[Edit2]

FYI Rider behavior

for the string framework, it displays an inactive dropdown menu, and after building the project, it crashes :)
image
for the "Bug 3" case, all monikers are displayed, but after solution is created, an error is displayed that the framework is not installed (IMO it's a correct behavior).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions