Skip to content

Commit

Permalink
Merge pull request #430 from AndreasReitberger/429-error-on-non-compi…
Browse files Browse the repository at this point in the history
…led-bindings

Throw error on non compiled bindings
  • Loading branch information
AndreasReitberger authored Feb 14, 2024
2 parents 677645d + 9c4838c commit 806ecf4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions common.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>

<!-- Warnings as error -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- https://github.com/dotnet/maui/pull/19360 -->
<WarningsAsErrors>XC0022,XC0023</WarningsAsErrors>
</PropertyGroup>

<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ public static class ServiceProvider
public static TService GetService<TService>()
=> Current.GetService<TService>();

public static IServiceProvider Current
=>
public static IServiceProvider Current => IPlatformApplication.Current.Services;
/*
#if WINDOWS10_0_17763_0_OR_GREATER
MauiWinUIApplication.Current.Services;
#elif ANDROID
Expand All @@ -19,5 +19,6 @@ public static IServiceProvider Current
#else
null;
#endif
*/
}
}

0 comments on commit 806ecf4

Please sign in to comment.