Cannot find "fabric-loader-0.13.3-1.16.5"
See original GitHub issueDescribe the bug When using the following code in version 3.3.5 of CmlLib.Core it throws an exception saying that “fabric-loader-0.13.3-1.16.5” is not found.
string fabricName = "fabric-loader-0.13.3-1.16.5";
// Handle fabric missing
var fabricVersionLoader = new FabricVersionLoader();
var fabricVersions = await fabricVersionLoader.GetVersionMetadatasAsync();
// Install fabric
if (versions.All(x => x.Name != fabricName))
{
try
{
var fabric = fabricVersions.GetVersionMetadata(fabricName); // Throws error (can't find it)
await fabric.SaveAsync(path);
// Update version list
await launcher.GetAllVersionsAsync();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
Environment.Exit(1);
}
}
Environment (please complete the following information):
- OS: Windows 10
- CmlLib.Core Version: 3.3.5
- .NET version: 6.0-windows
Additional context Occurs for other versions of fabric such as the example in the sample code.
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
No results found
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
Yeah you got it ! the way is to keep it alive is get the all metadata and search it (search “1.16.5” for fabric 1.16.5) that’s it !
Oh, I see what you mean-the older versions aren’t in the metadatas. Does this mean that obtaining older versions is not supported?