Brady Kelly
Brady Kelly
Explore posts from servers
CC#
Created by Brady Kelly on 4/25/2024 in #help
✅ Strange version error with EF.Core
Thank you so much for your time.
21 replies
CC#
Created by Brady Kelly on 4/25/2024 in #help
✅ Strange version error with EF.Core
I'm not using the CLI at all. I'm using Rider's Publish command, which in turn calls does the build it's way, whatever that is.
21 replies
CC#
Created by Brady Kelly on 4/25/2024 in #help
✅ Strange version error with EF.Core
It turned out that I was just missing the EF binaries in the build output of my web api. Stupid of me to have overlooked that.
21 replies
CC#
Created by Brady Kelly on 4/24/2024 in #help
✅ Minimal API: Pass app config to IEndpointRouteBuilder
Thanks, it looks like it would be, as WebApplication also seems to implement IEndpointRouteBuilder, allowing me to call app.MapGroup. I'll have to have a look in a short while.
3 replies
CC#
Created by Brady Kelly on 4/22/2024 in #help
✅ Troubleshooting MAUI build errors
I asked on StackOverflow and someone more observant than me pointed out that the build error referred to a clr-namespace with assembly=DevExpress.Maui.DataGrid:dxg:AdvancedColumnLayout.RowDefinitions. Note the erroneously included xmlns prefix :dxg: in the assembly name.
2 replies
CC#
Created by Brady Kelly on 4/21/2024 in #help
✅ How to debug data binding for a control on a MAUI content page
Stupid me, I'm just tired.
2 replies
CC#
Created by Brady Kelly on 4/21/2024 in #help
Project skipped on Solution Build
Yes, it was, I'm think I would have got errors trying to use the types it exposes even before doing a solution build if it wasn't.
3 replies
CC#
Created by Brady Kelly on 4/21/2024 in #help
✅ MAUI CollectionView Not Displaying
On explicitly binding a viewmodel to the CollectionView, in Android only, my view is now binding:
var stream = await FileSystem.OpenAppPackageFileAsync("appList.json");
var streamReader = new StreamReader(stream);
var json = await streamReader.ReadToEndAsync();
// ViewModel.LoadFromJson(await streamReader.ReadToEndAsync());
var model = new ApplicationListViewModel();
model.LoadFromJson(json);
CollectionView.ItemsSource = model.Data;
var stream = await FileSystem.OpenAppPackageFileAsync("appList.json");
var streamReader = new StreamReader(stream);
var json = await streamReader.ReadToEndAsync();
// ViewModel.LoadFromJson(await streamReader.ReadToEndAsync());
var model = new ApplicationListViewModel();
model.LoadFromJson(json);
CollectionView.ItemsSource = model.Data;
3 replies
CC#
Created by Brady Kelly on 4/21/2024 in #help
✅ MAUI CollectionView Not Displaying
It would seem this is Android only. I have just created a new MAUI app targeting Windows only and my collection view does populate there.
3 replies
CC#
Created by Brady Kelly on 4/21/2024 in #help
Project skipped on Solution Build
Oh, sorry, I forgot to include them in the copy-paste. I moved the library classes back into the main project to work around that, and now if I add the library project back it builds this time, for Android and iOS targets. Although I think the main problem is that the errors were caused by the class library not building and that output being missing to the main project build. There was an error for Android and for iOS about the metadata file not being found. The classic error when a missing assembly is referenced. My question here was why was the library not building. That was what seemed to be cause of the errors.
3 replies
CC#
Created by Brady Kelly on 4/21/2024 in #help
✅ Add NuGet packages to Git
I was kind of hoping I could let Git look after my packages locally, without pushing, but that won't happen this year. Restoring from git remote or from nuget both need a connection anyway, so I might as well give up on this one.
3 replies
CC#
Created by Brady Kelly on 4/21/2024 in #help
✅ Add NuGet packages to Git
I'll look at that, thanks, rather than go back to packages.config.
3 replies
CC#
Created by Brady Kelly on 4/19/2024 in #help
✅ DataGrid Equivalent for MAUI
I'm not affiliate and normally find their products overly complex, but I found DevExpress is offering MAUI and Xamrin suites free of charge to anyone who registers for free on their site. Until end of May. It's not FOSS, but it's F.
2 replies
CC#
Created by Brady Kelly on 4/18/2024 in #help
✅ Architecture in a MAUI project
2 replies
CC#
Created by Brady Kelly on 4/18/2024 in #help
✅ Mock a .NET library to test a minimal web API.
Thanks, I get that much, but I've decided to add a new 'layer' to add interfaces and services. I guess that wraps up this question then, thanks for your time.
14 replies
CC#
Created by Brady Kelly on 4/18/2024 in #help
✅ Mock a .NET library to test a minimal web API.
I don't own the code yet is half my problems
14 replies
CC#
Created by Brady Kelly on 4/18/2024 in #help
✅ Mock a .NET library to test a minimal web API.
Thanks. I think I'l implement interfaces for services anyway, the DAL that I can't change has no services, just classes and methods
14 replies
CC#
Created by Brady Kelly on 4/16/2024 in #help
✅ MAUI with Rider
Thanks, I'll check those out for a clue or two, but they seem to target MacOS when I'm developing on Windows.
5 replies
CC#
Created by Brady Kelly on 3/18/2024 in #help
Dynamically generating C# classes for deserializing data
I would like to be able to recompile a text based module with a standard interface that my service uses for deserialized schema based classes. Where should I be looking next?
18 replies
CC#
Created by Brady Kelly on 3/18/2024 in #help
Dynamically generating C# classes for deserializing data
Maybe that's a cue for a dynamic language like TypeScript then. Or Python, but I've grown to love ES the last year or two, so much easier.
18 replies