Why can't Visual Studio find this file?
StorageFile renderingConstantsStorage = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///PelotonIDE\\Presentation\\RenderingConstants.json"));
StorageFile renderingConstantsStorage = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///PelotonIDE\\Presentation\\RenderingConstants.json"));
public static async Task<InterpreterParametersStructure?> GetPerTabInterpreterParameters()
{
StorageFile tabSettingStorage = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///PelotonIDE\\Presentation\\PerTabInterpreterParameters.json"));
string tabSettings = File.ReadAllText(tabSettingStorage.Path);
return JsonConvert.DeserializeObject<InterpreterParametersStructure>(tabSettings);
}
public static async Task<InterpreterParametersStructure?> GetPerTabInterpreterParameters()
{
StorageFile tabSettingStorage = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///PelotonIDE\\Presentation\\PerTabInterpreterParameters.json"));
string tabSettings = File.ReadAllText(tabSettingStorage.Path);
return JsonConvert.DeserializeObject<InterpreterParametersStructure>(tabSettings);
}
public static async Task<RenderingConstantsStructure?> GetJSONRenderingConstants()
{
StorageFile renderingConstantsStorage = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///PelotonIDE\\Presentation\\RenderingConstants.json")); // \Presentation\RenderingConstants.json
string renderingConstantsJson = File.ReadAllText(renderingConstantsStorage.Path);
return JsonConvert.DeserializeObject<RenderingConstantsStructure>(renderingConstantsJson);
}
public static async Task<RenderingConstantsStructure?> GetJSONRenderingConstants()
{
StorageFile renderingConstantsStorage = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///PelotonIDE\\Presentation\\RenderingConstants.json")); // \Presentation\RenderingConstants.json
string renderingConstantsJson = File.ReadAllText(renderingConstantsStorage.Path);
return JsonConvert.DeserializeObject<RenderingConstantsStructure>(renderingConstantsJson);
}
Directory of C:\Users\bugma\Source\Repos\Present\Ptarmigan\PelotonIDE\PelotonIDE\Presentation
11/03/2024 01:37 PM 496 FactorySettings.json
11/03/2024 12:37 PM 2,749,458 LanguageConfiguration.json
11/03/2024 01:38 PM 4,148 PerTabInterpreterParameters.json
11/03/2024 11:44 AM 126 RenderingConstants.json
4 File(s) 2,754,228 bytes
0 Dir(s) 250,172,039,168 bytes free
Directory of C:\Users\bugma\Source\Repos\Present\Ptarmigan\PelotonIDE\PelotonIDE\Presentation
11/03/2024 01:37 PM 496 FactorySettings.json
11/03/2024 12:37 PM 2,749,458 LanguageConfiguration.json
11/03/2024 01:38 PM 4,148 PerTabInterpreterParameters.json
11/03/2024 11:44 AM 126 RenderingConstants.json
4 File(s) 2,754,228 bytes
0 Dir(s) 250,172,039,168 bytes free
1 Reply
I would print out the folder contents with that same path, this will show you if you are in the right location