question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[.NET 6] Don't support wildcard for the template version

See original GitHub issue

Describe the bug

Install a custom template using version with wildcard in .NET 6 is not working.

To Reproduce

Let’s consider that you have a custom template published to you Azure DevOps Package and you have below version:

  • PackageSample -> 3.0.0
  • PackageSample -> 3.0.1
  • PackageSample -> 3.10.0
  • PackageSample -> 5.0.0

Prior to .NET 6 if you want to install the latest version available for PackageSample version 3, you can do: dotnet new -i "PackageSample::3.*" It will install version 3.10.0 or any updated version available

Exceptions (if any)

But in the .NET 6 we get an error saying: The following template packages will be installed: PackageSample::3.* PackageSample::3.* is not supported.

Further technical details

  • Include the output of dotnet --info

.NET SDK (reflecting any global.json): Version: 6.0.101 Commit: ef49f6213a

Runtime Environment: OS Name: Windows OS Version: 10.0.19043 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.101\

Host (useful for support): Version: 6.0.1 Commit: 3a25a7f1cc

.NET SDKs installed: 3.1.202 [C:\Program Files\dotnet\sdk] 5.0.404 [C:\Program Files\dotnet\sdk] 6.0.101 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vlada-shubinacommented, Apr 27, 2022

@ltrochmann it will also be fixed in .NET 6.0.3xx

0reactions
ltrochmann-gcmlpcommented, Apr 27, 2022

@vlada-shubina thank you for the information, I will wait for it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

AssemblyVersion using * fails with error "wildcards, which ...
If you provide AssemblyVersion with wildcard, just don't include ... for support as it indicates age ( .7300 would be almost 6 months...
Read more >
SSL Connection Error with Wildcard Certificates and ...
The DotNetCore TLS certificate validation will return an error when accessing a host with an underscore in its name and a wildcard certificate....
Read more >
NET core 2.1.x , 2.2.x wildcard certificate handling issue
I have self hosted asp.net web api with wild card certificate ... Host (useful for support): Version: 2.2.0 Commit: 1249f08fed .NET Core ...
Read more >
Configure endpoints for the ASP.NET Core Kestrel web ...
ClientCertificateMode configures the client certificate requirements. The host name supports wildcard matching: Exact match. For example, a.
Read more >
global.json overview - .NET CLI
The version of the .NET SDK to use. This field: Doesn't have wildcard support; that is, you must specify the full version number....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found