`dotnet workload install` should normalize pack directory name to lower case
See original GitHub issuedotnet workload install should normalize pack directory name to lower case
Original issue:
I discovered that even though the Xamarin.Android templates package (named Microsoft.Android.Templates.11.0.200-ci.main.216.nupkg
) was installed in dotnet/template-packs
, it wasn’t considered by dotnet new
. After running dotnet under strace
, I found that it checks for the presence of the following packages in template-packs
(apparently hardcoded?):
$ grep template-packs dotnet.log.381805 | grep lstat
lstat("dotnet/template-packs/microsoft.macos.templates.11.1.100-preview.3.1379.nupkg", 0x7f6864ce3350) = -1 ENOENT (No such file or directory)
lstat("dotnet/template-packs/microsoft.macos.templates.11.1.100-preview.3.1379.nupkg", 0x7f6864ce33d0) = -1 ENOENT (No such file or directory)
lstat("dotnet/template-packs/microsoft.android.templates.11.0.200-ci.main.216.nupkg", 0x7f6864ce3350) = -1 ENOENT (No such file or directory)
lstat("dotnet/template-packs/microsoft.android.templates.11.0.200-ci.main.216.nupkg", 0x7f6864ce33d0) = -1 ENOENT (No such file or directory)
lstat("dotnet/template-packs/microsoft.ios.templates.14.4.100-preview.3.1326.nupkg", 0x7f6864ce3350) = -1 ENOENT (No such file or directory)
lstat("dotnet/template-packs/microsoft.ios.templates.14.4.100-preview.3.1326.nupkg", 0x7f6864ce33d0) = -1 ENOENT (No such file or directory)
lstat("dotnet/template-packs/microsoft.maccatalyst.templates.14.3.100-preview.3.471.nupkg", 0x7f6864ce3350) = -1 ENOENT (No such file or directory)
lstat("dotnet/template-packs/microsoft.maccatalyst.templates.14.3.100-preview.3.471.nupkg", 0x7f6864ce33d0) = -1 ENOENT (No such file or directory)
lstat("dotnet/template-packs/microsoft.tvos.templates.14.3.100-preview.3.1379.nupkg", 0x7f6864ce3350) = -1 ENOENT (No such file or directory)
lstat("dotnet/template-packs/microsoft.tvos.templates.14.3.100-preview.3.1379.nupkg", 0x7f6864ce33d0) = -1 ENOENT (No such file or directory)
Copying our package to the dotnet/templates/
directory or renaming it to all lower case in dotnet/template-packs
made dotnet new
show the templates defined there.
I think for the best cross-platform support, dotnet new
should perform a case-insensitive check for the presence of template packages.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
dotnet workload install command - .NET CLI
The dotnet workload install command installs one or more optional workloads. Optional workloads can be installed on top of the .
Read more >NuGet Package Version Reference
In this article. Version basics; Semantic Versioning 2.0.0; Version ranges; Normalized version numbers; Where NuGetVersion diverges from ...
Read more >IBM Workload Scheduler: Troubleshooting Guide
IBM Workload Automation is the name of a family of products and components, ... case, try and reduce the size of the log...
Read more >5.1.8 Server System Variables
Most system variables can be set at server startup using options on the command line or in an option file. ... Some system...
Read more >Changelog.txt
... Sur) Don't allow folder names ending with dot character (Windows) Mitigate ERROR_ALREADY_ASSIGNED: Local Device Name Already in Use [Wnetaddconnection2] ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If it is a temporary issue, we can close.
Agree. That is not a supported scenario. Especially considering dotnet folder could be in program files.