P R Deltoid
Setting up MAUI example project, project won't build
I am trying to set up my environment to play around with the MAUI samples here: https://github.com/dotnet/maui-samples
I cloned the repo, navigated to
maui-samples\8.0\Apps\WeatherTwentyOne\src\
and opened the .sln file there in Rider.
I ran dotnet workload restore
per Rider's prompting and it installed the required workloads. But when I run the project using the UWP configuration, I receive this error:
I also have the same error for the net8.0-android
, net8.0-ios
, and net8.0-maccatalyst
targets. What am I doing wrong here?2 replies
Setting BaseURI for named HttpClient in DI not including trailing string
I am trying to use a named HttpClient setup in a Blazor WASM application. In my DI setup, I create it using the following:
However, when the HttpClient is injected into a Razor page and used to query my API using this code: it makes a request like so:
It seems to be dropping the "/api/v1/" portion of the base URI for the request but using the base host/port that I provided (the port running this web application is 5000, which I assume would be the HttpClient default if I hadn't provided a new BaseAddress in my configuration.)
Why is it dropping this portion and how can I get it to stop?
3 replies
✅ Compiling ASP.NET 7 app using Github Actions
I am trying to compile my ASP.NET 7 application solution using Github actions but am getting the following error:
error CS0234: The type or namespace name 'Authentication' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?)
when building a project that requires this package. My github action looks like this:
I figured the GitHub Action's dotnet setup would have included these files. I know this isn't exactly a C# question but I figured people here might have experience with this particular problem. I'm a little confused on how my local build could find these files but the Github Action build cannot
Probably related, but I am also receiving warnings:
Could not locate the assembly "Microsoft.AspNetCore.Http.Features"
Could not locate the assembly "Microsoft.AspNetCore.Authentication.Cookies"
108 replies