Skip to content

Commit 06258e6

Browse files
committed
Configure sandbox projects as unpackable
1 parent ff4f97b commit 06258e6

File tree

5 files changed

+627
-622
lines changed

5 files changed

+627
-622
lines changed
Lines changed: 48 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,65 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net6.0-windows10.0.19041</TargetFrameworks>
6-
<OutputType>Exe</OutputType>
7-
<RootNamespace>SandboxMAUI</RootNamespace>
8-
<UseMaui>true</UseMaui>
9-
<SingleProject>true</SingleProject>
10-
<ImplicitUsings>enable</ImplicitUsings>
11-
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
3+
<PropertyGroup>
4+
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net6.0-windows10.0.19041</TargetFrameworks>
6+
<OutputType>Exe</OutputType>
7+
<RootNamespace>SandboxMAUI</RootNamespace>
8+
<UseMaui>true</UseMaui>
9+
<SingleProject>true</SingleProject>
10+
<ImplicitUsings>enable</ImplicitUsings>
11+
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
1212

13-
<!-- Display name -->
14-
<ApplicationTitle>SandboxMAUI</ApplicationTitle>
13+
<IsPackable>false</IsPackable>
1514

16-
<!-- App Identifier -->
17-
<ApplicationId>com.companyname.sandboxmaui</ApplicationId>
15+
<!-- Display name -->
16+
<ApplicationTitle>SandboxMAUI</ApplicationTitle>
1817

19-
<!-- Versions -->
20-
<ApplicationVersion>1</ApplicationVersion>
18+
<!-- App Identifier -->
19+
<ApplicationId>com.companyname.sandboxmaui</ApplicationId>
2120

22-
<!-- Required for C# Hot Reload -->
23-
<UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter>
21+
<!-- Versions -->
22+
<ApplicationVersion>1</ApplicationVersion>
2423

25-
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion>
26-
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">14.0</SupportedOSPlatformVersion>
27-
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion>
28-
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
29-
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
30-
</PropertyGroup>
24+
<!-- Required for C# Hot Reload -->
25+
<UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter>
3126

32-
<ItemGroup>
33-
<!-- App Icon -->
34-
<MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#512BD4" />
27+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-ios'">14.2</SupportedOSPlatformVersion>
28+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-maccatalyst'">14.0</SupportedOSPlatformVersion>
29+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net6.0-android'">21.0</SupportedOSPlatformVersion>
30+
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion>
31+
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion>
32+
</PropertyGroup>
3533

36-
<!-- Splash Screen -->
37-
<MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" />
34+
<ItemGroup>
35+
<!-- App Icon -->
36+
<MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#512BD4" />
3837

39-
<!-- Images -->
40-
<MauiImage Include="Resources\Images\*" />
38+
<!-- Splash Screen -->
39+
<MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" />
4140

42-
<!-- Custom Fonts -->
43-
<MauiFont Include="Resources\Fonts\*" />
41+
<!-- Images -->
42+
<MauiImage Include="Resources\Images\*" />
4443

45-
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
46-
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
47-
</ItemGroup>
44+
<!-- Custom Fonts -->
45+
<MauiFont Include="Resources\Fonts\*" />
4846

49-
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
50-
<!-- Required - WinUI does not yet have buildTransitive for everything -->
51-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
52-
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.30" />
53-
</ItemGroup>
47+
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
48+
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
49+
</ItemGroup>
50+
51+
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
52+
<!-- Required - WinUI does not yet have buildTransitive for everything -->
53+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
54+
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.30" />
55+
</ItemGroup>
5456

5557
<ItemGroup>
5658
<ProjectReference Include="..\..\src\InputKit.Maui\InputKit.Maui.csproj" />
5759
</ItemGroup>
58-
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">
59-
<OutputType>WinExe</OutputType>
60-
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
61-
</PropertyGroup>
62-
60+
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">
61+
<OutputType>WinExe</OutputType>
62+
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
63+
</PropertyGroup>
64+
6365
</Project>

0 commit comments

Comments
 (0)