X new getting 404s

I am not able to create several of the x tools template from the command line, have tried uninstallng/reinstalling etc.

It looks like it is trying to retrieve from api.github.com but actually should just be going to github.com

x -v new react-lite-corefx testproj

Verbose output snipped:

API: https://api.github.com/repos/NetCoreTemplates/react-lite-corefx

System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).

These URLs haven’t changed for years, and it still works with the normal .NET 6 but looks like it’s an issue with the -netfx and -corefx templates.

I’ll investigate, in the meantime all templates can be created from the servicestack.net/start page, e.g:
https://servicestack.net/start-corefx

This was due to the move from .NET HttpWebRequest to HttpClient which should now be resolved from the latest v6.0.5 that’s now on NuGet:

$ dotnet tool update -g x
1 Like