-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dotnet] Update the Mac Catalyst VB template to match the C# template. (
- Loading branch information
1 parent
d64f3d5
commit 067e32a
Showing
1 changed file
with
43 additions
and
1 deletion.
There are no files selected for viewing
44 changes: 43 additions & 1 deletion
44
.../Templates/Microsoft.MacCatalyst.Templates/maccatalyst/visualbasic/MacCatalystApp1.vbproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,51 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net7.0-maccatalyst</TargetFramework> | ||
<RuntimeIdentifier>maccatalyst-x64</RuntimeIdentifier> | ||
<!-- The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64. | ||
When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifer>. | ||
The App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated; | ||
either BOTH runtimes must be indicated or ONLY macatalyst-x64. --> | ||
<!-- ex. <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> --> | ||
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">MacCatalystApp1</RootNamespace> | ||
<OutputType>Exe</OutputType> | ||
<SupportedOSPlatformVersion>minOSVersion</SupportedOSPlatformVersion> | ||
</PropertyGroup> | ||
|
||
<!-- Notes about the values set below: | ||
1. For macOS it's possible to sign both the app bundle (EnableCodesigning=true) and the package (*.pkg) (EnablePackageSigning=true), | ||
and these are signed separately and with different certificates. | ||
CodesignKey: this is the signing key used for the app bundle | ||
PackageSigningKey: this is the signing key used for the package | ||
2. Publishing to the App Store requires signing both the app bundle and the package. | ||
Must be 'Apple Distribution: ...' for the app bundle. Note that apps signed like this will not execute locally. | ||
They have to be published to the App Store and then downloaded (Apple will resign the app with a different signing identity that allows for local execution). | ||
Must be '3rd Party Mac Developer Installer: ...' for the pkg | ||
3. Publishing outside of the App Store (i.e. only notarizing) requires: | ||
Must be 'Developer ID Application: ...' for the app bundle | ||
Must be 'Developer ID Installer: ...' for the pkg | ||
4. During development, use the 'Apple Development: ...' signing key (typically to verify that the app works when is signed and entitlements are enforced). | ||
5. Depending on the entitlements the app needs, a specific provisioning profile (CodesignProvision) might be needed. | ||
6. UseHardenedRuntime must be set to true when app sandbox is enabled in Info.plist. | ||
--> | ||
<!-- | ||
For Debug: (Note: Replace placeholder information before building) | ||
<PropertyGroup Condition="'$(Configuration)' == 'Debug'"> | ||
<CodesignKey>Apple Development: YOURNAME (*******)</CodesignKey> | ||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements> | ||
<CodesignProvision>YOUR PROFILE NAME</CodesignProvision> | ||
</PropertyGroup> | ||
--> | ||
<!-- | ||
For Release: (Note: Replace placeholder information before building) | ||
<PropertyGroup Condition="'$(Configuration)' == 'Release'"> | ||
<EnableCodeSigning>True</EnableCodeSigning> | ||
<ProvisionType>Manual</ProvisionType> | ||
<CreatePackage>true</CreatePackage> | ||
<EnablePackageSigning>true</EnablePackageSigning> | ||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements> | ||
<CodesignKey>Apple Development: YOURNAME (*******)</CodesignKey> | ||
<CodesignProvision>YOUR PROFILE NAME</CodesignProvision> | ||
<PackageSigningKey>3rd Party Mac Developer Installer: YOURNAME (*******)</PackageSigningKey> | ||
<UseHardenedRuntime>true</UseHardenedRuntime> | ||
</PropertyGroup>--> | ||
</Project> |
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.