this post was submitted on 23 Apr 2024
4 points (100.0% liked)

.NET MAUI

119 readers
8 users here now

founded 11 months ago
MODERATORS
 

I just created a couple of new MAUI libraries for the first time in a while, and when I've gone to link to them I've discovered neither has the shared folder there (I don't know if we still call them that in MAUI - that's what they were called in Xamarin). The 4 platform folders are there, but not the 5th one (screenshot from a different library, with all 5 folders there). I even deleted one and started again from scratch to be sure, and sure enough it was missing again. Does anyone know what is going on here? Is this a bug, or do I now link to dll's in a different folder? (I'm looking in bin\Release) This is using the current standard MAUI library template in VS.

top 1 comments
sorted by: hot top controversial new old
[–] SmartmanApps@programming.dev 2 points 6 months ago

Got quick feedback from Gerald on Mastodon. This is a change that went live with 8.0.3 in November (then we had all those fun and games with 8.0.3 not updating!), hence why the GA users are only just now running into it. If we need the folder - i.e. in order to have something to link to - then just manually add the net8.0 back into the csproj, do a dotnet restore, and then it will build.