Skip to content

Commit 7a17d0c

Browse files
Update for Windows
1 parent 79949a6 commit 7a17d0c

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/HackerNews/App.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace HackerNews;
44

5-
class App : Application
5+
partial class App : Application
66
{
77
readonly AppShell _appShell;
88

src/HackerNews/AppShell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace HackerNews;
22

3-
class AppShell : Shell
3+
partial class AppShell : Shell
44
{
55
public AppShell(NewsPage newsPage)
66
{

src/HackerNews/HackerNews.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
2323
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
2424

25+
<!-- To develop, package, and publish an app to the Microsoft Store, see: https://aka.ms/MauiTemplateUnpackaged -->
26+
<WindowsPackageType>None</WindowsPackageType>
27+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2528
<WindowsSdkPackageVersion>10.0.19041.41</WindowsSdkPackageVersion>
2629
</PropertyGroup>
2730

@@ -51,4 +54,4 @@
5154
<PackageReference Include="Refit.HttpClientFactory" Version="9.0.2" />
5255
</ItemGroup>
5356

54-
</Project>
57+
</Project>

src/HackerNews/Pages/NewsPage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace HackerNews;
55

6-
class NewsPage : BaseContentPage<NewsViewModel>
6+
partial class NewsPage : BaseContentPage<NewsViewModel>
77
{
88
readonly IBrowser _browser;
99

0 commit comments

Comments
 (0)