Same change for NetPodsMauiBlazor

pull/55/head
Eric Erhardt 2022-03-24 12:41:17 -05:00
parent 12d8e73d2c
commit 9e33e66f57
3 changed files with 2 additions and 33 deletions

View File

@ -18,10 +18,10 @@ public static class MauiProgram
{
var builder = MauiApp.CreateBuilder();
builder
.RegisterBlazorMauiWebView()
.UseMauiApp<App>();
builder.Services.AddBlazorWebView();
builder.Services.AddMauiBlazorWebView();
builder.Services.AddHttpClient<PodcastService>(client =>
{
client.BaseAddress = new Uri(APIUrl);

View File

@ -61,6 +61,6 @@
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Web\Pages\Podcast.Pages.Maui.csproj" />
<ProjectReference Include="..\..\Web\Pages\Podcast.Pages.csproj" />
</ItemGroup>
</Project>

View File

@ -1,31 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFrameworks>net6.0;net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net6.0-windows10.0.19041</TargetFrameworks>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">14.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>Podcast.Pages</RootNamespace>
<PackageId>Podcast.Pages</PackageId>
<OutputType>Library</OutputType>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="browser" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Components\Podcast.Components.Maui.csproj" />
<ProjectReference Include="..\Shared\Podcast.Shared.csproj" />
</ItemGroup>
</Project>