1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
- <PropertyGroup >
4
- <TargetFrameworks >net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks >
5
- <TargetFrameworks Condition =" $([MSBuild]::IsOSPlatform('windows'))" >$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks >
6
- <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
7
- <!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
8
-
9
- <!-- Note for MacCatalyst:
10
- The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
11
- When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>.
3
+ <PropertyGroup >
4
+ <TargetFrameworks >net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks >
5
+ <TargetFrameworks Condition =" $([MSBuild]::IsOSPlatform('windows'))" >
6
+ $(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks >
7
+ <!-- Uncomment to also build the tizen app. You will need to install tizen by following
8
+ this: https://github.com/Samsung/Tizen.NET -->
9
+ <!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
10
+
11
+ <!-- Note for MacCatalyst:
12
+ The default runtime is maccatalyst-x64, except in Release config, in which case the default is
13
+ maccatalyst-x64;maccatalyst-arm64.
14
+ When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular
15
+ <RuntimeIdentifier>.
12
16
The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated;
13
17
either BOTH runtimes must be indicated or ONLY macatalyst-x64. -->
14
- <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
15
-
16
- <OutputType >Exe</OutputType >
17
- <RootNamespace >LockPDFyMaui</RootNamespace >
18
- <UseMaui >true</UseMaui >
19
- <SingleProject >true</SingleProject >
20
- <ImplicitUsings >enable</ImplicitUsings >
21
- <Nullable >enable</Nullable >
22
- <AndroidSdkDirectory >$(LOCALAPPDATA)\Android\Sdk</AndroidSdkDirectory >
23
-
24
- <!-- Display name -->
25
- <ApplicationTitle >LockPDFyMaui</ApplicationTitle >
26
-
27
- <!-- App Identifier -->
28
- <ApplicationId >com.companyname.lockpdfymaui</ApplicationId >
29
- <ApplicationIdGuid >1b2a444d-10cc-4c98-9be6-445700d74910</ApplicationIdGuid >
30
-
31
- <!-- Versions -->
32
- <ApplicationDisplayVersion >1.0</ApplicationDisplayVersion >
33
- <ApplicationVersion >1</ApplicationVersion >
34
-
35
- <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'" >11.0</SupportedOSPlatformVersion >
36
- <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'" >13.1</SupportedOSPlatformVersion >
37
- <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'" >21.0</SupportedOSPlatformVersion >
38
- <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" >10.0.17763.0</SupportedOSPlatformVersion >
39
- <TargetPlatformMinVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" >10.0.17763.0</TargetPlatformMinVersion >
40
- <SupportedOSPlatformVersion Condition =" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'" >6.5</SupportedOSPlatformVersion >
41
- <PackageLicenseExpression >AGPL</PackageLicenseExpression >
42
- <PackageRequireLicenseAcceptance >True</PackageRequireLicenseAcceptance >
43
- <DefaultLanguage >en-US</DefaultLanguage >
44
- </PropertyGroup >
45
-
46
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android|AnyCPU'" >
47
- <ApplicationTitle >LockPDFy</ApplicationTitle >
48
- </PropertyGroup >
49
-
50
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'" >
51
- <ApplicationTitle >LockPDFy</ApplicationTitle >
52
- </PropertyGroup >
53
-
54
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-maccatalyst|AnyCPU'" >
55
- <ApplicationTitle >LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle >
56
- </PropertyGroup >
57
-
58
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-windows10.0.19041.0|AnyCPU'" >
59
- <ApplicationTitle >LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle >
60
- </PropertyGroup >
61
-
62
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-android|AnyCPU'" >
63
- <ApplicationTitle >LockPDFy</ApplicationTitle >
64
- </PropertyGroup >
65
-
66
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios|AnyCPU'" >
67
- <ApplicationTitle >LockPDFy</ApplicationTitle >
68
- </PropertyGroup >
69
-
70
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-maccatalyst|AnyCPU'" >
71
- <ApplicationTitle >LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle >
72
- </PropertyGroup >
73
-
74
- <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-windows10.0.19041.0|AnyCPU'" >
75
- <ApplicationTitle >LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle >
76
- </PropertyGroup >
77
-
78
- <ItemGroup >
79
- <!-- App Icon -->
80
- <MauiIcon Include =" Resources\AppIcon\appicon.svg" ForegroundFile =" Resources\AppIcon\appiconfg.svg" Color =" #512BD4" />
81
-
82
- <!-- Splash Screen -->
83
- <MauiSplashScreen Include =" Resources\Splash\splash.svg" Color =" #512BD4" BaseSize =" 128,128" />
84
-
85
- <!-- Images -->
86
- <MauiImage Include =" Resources\Images\*" />
87
- <MauiImage Update =" Resources\Images\dotnet_bot.png" Resize =" True" BaseSize =" 300,185" />
88
-
89
- <!-- Custom Fonts -->
90
- <MauiFont Include =" Resources\Fonts\*" />
91
-
92
- <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
93
- <MauiAsset Include =" Resources\Raw\**" LogicalName =" %(RecursiveDir)%(Filename)%(Extension)" />
94
- </ItemGroup >
95
-
96
- <ItemGroup >
97
- <None Include =" ..\Logo\Logo-NoBorder.png" >
98
- <Pack >True</Pack >
99
- <PackagePath >\</PackagePath >
100
- </None >
101
- </ItemGroup >
102
-
103
- <ItemGroup >
104
- <PackageReference Include =" CommunityToolkit.Maui" Version =" 7.0.0" />
105
- <PackageReference Include =" Microsoft.Maui.Controls" Version =" $(MauiVersion)" />
106
- <PackageReference Include =" Microsoft.Maui.Controls.Compatibility" Version =" $(MauiVersion)" />
107
- <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 8.0.0" />
108
- </ItemGroup >
109
-
110
- <ItemGroup >
111
- <ProjectReference Include =" ..\LockPDFy\LockPDFy.csproj" />
112
- </ItemGroup >
113
-
114
- <ItemGroup >
115
- <Compile Update =" SettingsPage.xaml.cs" >
116
- <DependentUpon >SettingsPage.xaml</DependentUpon >
117
- </Compile >
118
- <Compile Update =" EncryptPage.xaml.cs" >
119
- <DependentUpon >EncryptPage.xaml</DependentUpon >
120
- </Compile >
121
- <Compile Update =" DecryptPage.xaml.cs" >
122
- <DependentUpon >DecryptPage.xaml</DependentUpon >
123
- </Compile >
124
- </ItemGroup >
125
-
126
- <ItemGroup >
127
- <MauiXaml Update =" SettingsPage.xaml" >
128
- <Generator >MSBuild:Compile</Generator >
129
- </MauiXaml >
130
- <MauiXaml Update =" EncryptPage.xaml" >
131
- <Generator >MSBuild:Compile</Generator >
132
- </MauiXaml >
133
- <MauiXaml Update =" DecryptPage.xaml" >
134
- <Generator >MSBuild:Compile</Generator >
135
- </MauiXaml >
136
- </ItemGroup >
137
-
138
- </Project >
18
+ <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
19
+
20
+ <OutputType >Exe</OutputType >
21
+ <RootNamespace >LockPDFyMaui</RootNamespace >
22
+ <UseMaui >true</UseMaui >
23
+ <SingleProject >true</SingleProject >
24
+ <ImplicitUsings >enable</ImplicitUsings >
25
+ <Nullable >enable</Nullable >
26
+
27
+ <!-- Display name -->
28
+ <ApplicationTitle >LockPDFyMaui</ApplicationTitle >
29
+
30
+ <!-- App Identifier -->
31
+ <ApplicationId >com.companyname.lockpdfymaui</ApplicationId >
32
+ <ApplicationIdGuid >1b2a444d-10cc-4c98-9be6-445700d74910</ApplicationIdGuid >
33
+
34
+ <!-- Versions -->
35
+ <ApplicationDisplayVersion >$(Version)</ApplicationDisplayVersion >
36
+ <MajorVersion >$(Version.Split('.')[0])</MajorVersion >
37
+ <ApplicationVersion >$(MajorVersion)</ApplicationVersion >
38
+
39
+ <SupportedOSPlatformVersion
40
+ Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'" >
41
+ 11.0</SupportedOSPlatformVersion >
42
+ <SupportedOSPlatformVersion
43
+ Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'" >
44
+ 13.1</SupportedOSPlatformVersion >
45
+ <SupportedOSPlatformVersion
46
+ Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'" >
47
+ 21.0</SupportedOSPlatformVersion >
48
+ <SupportedOSPlatformVersion
49
+ Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" >
50
+ 10.0.17763.0</SupportedOSPlatformVersion >
51
+ <TargetPlatformMinVersion
52
+ Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" >
53
+ 10.0.17763.0</TargetPlatformMinVersion >
54
+ <SupportedOSPlatformVersion
55
+ Condition=" $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'" >
56
+ 6.5</SupportedOSPlatformVersion >
57
+ <PackageLicenseExpression >AGPL</PackageLicenseExpression >
58
+ <PackageRequireLicenseAcceptance >True</PackageRequireLicenseAcceptance >
59
+ <DefaultLanguage >en-US</DefaultLanguage >
60
+ </PropertyGroup >
61
+
62
+ <PropertyGroup
63
+ Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android|AnyCPU'" >
64
+ <ApplicationTitle >LockPDFy</ApplicationTitle >
65
+ </PropertyGroup >
66
+
67
+ <PropertyGroup
68
+ Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'" >
69
+ <ApplicationTitle >LockPDFy</ApplicationTitle >
70
+ </PropertyGroup >
71
+
72
+ <PropertyGroup
73
+ Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-maccatalyst|AnyCPU'" >
74
+ <ApplicationTitle >LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle >
75
+ </PropertyGroup >
76
+
77
+ <PropertyGroup
78
+ Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-windows10.0.19041.0|AnyCPU'" >
79
+ <ApplicationTitle >LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle >
80
+ </PropertyGroup >
81
+
82
+ <PropertyGroup
83
+ Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-android|AnyCPU'" >
84
+ <ApplicationTitle >LockPDFy</ApplicationTitle >
85
+ </PropertyGroup >
86
+
87
+ <PropertyGroup
88
+ Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios|AnyCPU'" >
89
+ <ApplicationTitle >LockPDFy</ApplicationTitle >
90
+ </PropertyGroup >
91
+
92
+ <PropertyGroup
93
+ Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-maccatalyst|AnyCPU'" >
94
+ <ApplicationTitle >LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle >
95
+ </PropertyGroup >
96
+
97
+ <PropertyGroup
98
+ Condition=" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-windows10.0.19041.0|AnyCPU'" >
99
+ <ApplicationTitle >LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle >
100
+ </PropertyGroup >
101
+
102
+ <ItemGroup >
103
+ <!-- App Icon -->
104
+ <MauiIcon Include =" Resources\AppIcon\appicon.svg"
105
+ ForegroundFile=" Resources\AppIcon\appiconfg.svg" Color =" #512BD4" />
106
+
107
+ <!-- Splash Screen -->
108
+ <MauiSplashScreen Include =" Resources\Splash\splash.svg" Color =" #512BD4" BaseSize =" 128,128" />
109
+
110
+ <!-- Images -->
111
+ <MauiImage Include =" Resources\Images\*" />
112
+ <MauiImage Update =" Resources\Images\dotnet_bot.png" Resize =" True" BaseSize =" 300,185" />
113
+
114
+ <!-- Custom Fonts -->
115
+ <MauiFont Include =" Resources\Fonts\*" />
116
+
117
+ <!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
118
+ <MauiAsset Include =" Resources\Raw\**" LogicalName =" %(RecursiveDir)%(Filename)%(Extension)" />
119
+ </ItemGroup >
120
+
121
+ <ItemGroup >
122
+ <None Include =" ..\Logo\Logo-NoBorder.png" >
123
+ <Pack >True</Pack >
124
+ <PackagePath >\</PackagePath >
125
+ </None >
126
+ </ItemGroup >
127
+
128
+ <ItemGroup >
129
+ <PackageReference Include =" CommunityToolkit.Maui" Version =" 7.0.0" />
130
+ <PackageReference Include =" Microsoft.Maui.Controls" Version =" $(MauiVersion)" />
131
+ <PackageReference Include =" Microsoft.Maui.Controls.Compatibility" Version =" $(MauiVersion)" />
132
+ <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 8.0.0" />
133
+ </ItemGroup >
134
+
135
+ <ItemGroup >
136
+ <ProjectReference Include =" ..\LockPDFy\LockPDFy.csproj" />
137
+ </ItemGroup >
138
+
139
+ <ItemGroup >
140
+ <Compile Update =" SettingsPage.xaml.cs" >
141
+ <DependentUpon >SettingsPage.xaml</DependentUpon >
142
+ </Compile >
143
+ <Compile Update =" EncryptPage.xaml.cs" >
144
+ <DependentUpon >EncryptPage.xaml</DependentUpon >
145
+ </Compile >
146
+ <Compile Update =" DecryptPage.xaml.cs" >
147
+ <DependentUpon >DecryptPage.xaml</DependentUpon >
148
+ </Compile >
149
+ </ItemGroup >
150
+
151
+ <ItemGroup >
152
+ <MauiXaml Update =" SettingsPage.xaml" >
153
+ <Generator >MSBuild:Compile</Generator >
154
+ </MauiXaml >
155
+ <MauiXaml Update =" EncryptPage.xaml" >
156
+ <Generator >MSBuild:Compile</Generator >
157
+ </MauiXaml >
158
+ <MauiXaml Update =" DecryptPage.xaml" >
159
+ <Generator >MSBuild:Compile</Generator >
160
+ </MauiXaml >
161
+ </ItemGroup >
162
+
163
+ <PropertyGroup Condition =" '$(OS)' == 'Windows_NT' AND '$(AndroidSdkDirectory)' == ''" >
164
+ <!-- That PropertyGroup fixes the error below:
165
+ Xamarin.Android.Tooling.targets(70,5): error XA5300:
166
+ The Android SDK directory could not be found. Install the Android SDK by following the instructions at: https://aka.ms/dotnet-android-install-sdk To use a custom SDK path for a command line build, set the 'AndroidSdkDirectory' MSBuild property to the custom path.-->
167
+ <AndroidSdkDirectory >$(LOCALAPPDATA)\Android\Sdk</AndroidSdkDirectory >
168
+ <!-- <Message Text="AndroidSdkDirectory is set to $(AndroidSdkDirectory)" Importance="high" />-->
169
+ </PropertyGroup >
170
+
171
+ </Project >
0 commit comments