MacBundle.DotNet 0.9.14

dotnet add package MacBundle.DotNet --version 0.9.14
                    
NuGet\Install-Package MacBundle.DotNet -Version 0.9.14
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MacBundle.DotNet" Version="0.9.14" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MacBundle.DotNet" Version="0.9.14" />
                    
Directory.Packages.props
<PackageReference Include="MacBundle.DotNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MacBundle.DotNet --version 0.9.14
                    
#r "nuget: MacBundle.DotNet, 0.9.14"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MacBundle.DotNet@0.9.14
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MacBundle.DotNet&version=0.9.14
                    
Install as a Cake Addin
#tool nuget:?package=MacBundle.DotNet&version=0.9.14
                    
Install as a Cake Tool

dotnet-bundle-mac

Command-line interface tools for bundling .NET Core projects into MacOS applications (.app)

Installation

Install MSBuild task via NuGet package: MacBundle.DotNet

NuGet

<PackageReference Include="MacBundle.DotNet" Version="*" />

Development

  • cd TestBundle
  • run dotnet msbuild -t:BundleAppMac -p:RuntimeIdentifier=osx-x64
  • verify Build/Debug/net5.0/osx-x64/publish contents

Using the tool

dotnet msbuild -t:BundleAppMac -p:RuntimeIdentifier=osx-x64 [-p: ...]

Properties

Define properties to override default bundle values

<PropertyGroup>
    <CFBundleName>AppName</CFBundleName> 
    <CFBundleDisplayName>App Name</CFBundleDisplayName>
    <CFBundleIdentifier>com.example</CFBundleIdentifier>
    <CFBundleVersion>1.0.0</CFBundleVersion>
    <CFBundlePackageType>APPL</CFBundlePackageType>
    <CFBundleSignature>????</CFBundleSignature>
    <CFBundleExecutable>AppName</CFBundleExecutable>
    <CFBundleIconFile>AppName.icns</CFBundleIconFile> 
    <NSPrincipalClass>NSApplication</NSPrincipalClass>
    <NSHighResolutionCapable>true</NSHighResolutionCapable>

    
    <NSRequiresAquaSystemAppearance>true</NSRequiresAquaSystemAppearance>
</PropertyGroup>

<ItemGroup>
    
    <CFBundleURLTypes Include="dummy"> 
        <CFBundleURLName>TestApp URL</CFBundleURLName>
        <CFBundleURLSchemes>testappurl;testappurl://</CFBundleURLSchemes> 
    </CFBundleURLTypes>
    <CFBundleURLTypes Include="dummy">
        <CFBundleURLName>TestApp URL2</CFBundleURLName>
        <CFBundleURLSchemes>test://</CFBundleURLSchemes>
    </CFBundleURLTypes>
</ItemGroup>

More info: https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.9.14 385 11/11/2023