Metalama.Community.Costura 2024.0.14

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Metalama.Community.Costura --version 2024.0.14
NuGet\Install-Package Metalama.Community.Costura -Version 2024.0.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="Metalama.Community.Costura" Version="2024.0.14" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Metalama.Community.Costura --version 2024.0.14
#r "nuget: Metalama.Community.Costura, 2024.0.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.
// Install Metalama.Community.Costura as a Cake Addin
#addin nuget:?package=Metalama.Community.Costura&version=2024.0.14

// Install Metalama.Community.Costura as a Cake Tool
#tool nuget:?package=Metalama.Community.Costura&version=2024.0.14

Metalama.Community.Costura

Embeds dependencies as resources so that you can have a standalone executable.

This source transformer only works under .NET Framework. In .NET Core, we recommend upgrading to .NET Core 3 or later and using the single file executable feature instead.

This is a Metalama aspect. It modifies your code during compilation by using source weaving.

CI badge

Example

Assume that MyProject has dependencies on the Newtonsoft.Json and Soothsilver.Random packages. Normally, MyProject.exe would require the files Newtonsoft.Json.dll and Soothsilver.Random.dll to work.

If you use this aspect, instead those two DLLs will be embedded into MyProject.exe as resources and loaded from there. The only file you need is MyProject.exe.

Installation
  1. Install the NuGet package: dotnet add package Metalama.Community.Costura.

  2. Add the following code somewhere in your code:

    using Metalama.Framework.Fabrics;
    using Metalama.Community.Costura;
    
    internal class Fabric : ProjectFabric
    {
        public override void AmendProject(IProjectAmender amender)
        {
            amender.UseCostura();
        }
    }
    

You can then distribute just the main output assembly file. It will be enough.

There are documented configuration options in the Costura attribute. Set them in your source code to change them from their defaults.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2024.2.12-preview 24 6/28/2024
2024.2.11-preview 33 6/26/2024
2024.2.10-preview 68 6/20/2024
2024.2.9-preview 59 6/11/2024
2024.2.8-preview 45 6/6/2024
2024.2.7-preview 73 5/30/2024
2024.2.6-preview 65 5/25/2024
2024.2.5-preview 82 5/6/2024
2024.2.4-preview 75 5/4/2024
2024.2.3-preview 69 4/30/2024
2024.2.2-preview 69 4/23/2024
2024.2.1-preview 77 4/11/2024
2024.1.23 37 6/26/2024
2024.1.22 88 6/15/2024
2024.1.21 70 6/6/2024
2024.1.20 72 5/30/2024
2024.1.19 73 5/24/2024
2024.1.18 92 5/6/2024
2024.1.17 53 5/3/2024
2024.1.16 79 4/30/2024
2024.1.15 73 4/29/2024
2024.1.14 82 4/23/2024
2024.1.13 81 4/23/2024
2024.1.12 91 4/17/2024
2024.1.11-rc 72 4/11/2024
2024.1.10-rc 70 4/4/2024
2024.1.9-rc 75 3/27/2024
2024.1.8-preview 69 3/25/2024
2024.1.7-preview 73 3/19/2024
2024.1.6-preview 70 3/6/2024
2024.1.5-preview 88 2/29/2024
2024.1.4-preview 68 2/27/2024
2024.1.3-preview 68 2/23/2024
2024.1.2-preview 94 2/7/2024
2024.1.1-preview 64 1/30/2024
2024.0.16 66 6/15/2024
2024.0.15 69 6/6/2024
2024.0.14 62 5/30/2024
2024.0.13 71 5/24/2024
2024.0.12 96 4/17/2024
2024.0.11 109 3/21/2024
2024.0.10 79 3/19/2024
2024.0.9 101 2/29/2024
2024.0.8 93 2/23/2024
2024.0.7 116 2/7/2024
2024.0.6 183 1/3/2024
2024.0.5-rc 111 12/21/2023
2024.0.4-rc 106 12/12/2023
2024.0.3-preview 90 12/6/2023
2024.0.2-preview 106 11/14/2023
2024.0.1-preview 94 11/6/2023
2023.4.9 86 2/7/2024
2023.4.8 99 12/21/2023
2023.4.7 139 12/12/2023
2023.4.6 142 11/7/2023
2023.4.5-rc 92 10/26/2023
2023.4.4-preview 81 10/18/2023
2023.4.3-preview 61 10/4/2023
2023.4.2-preview 83 9/26/2023
2023.4.1-preview 110 9/13/2023
2023.3.10 98 12/21/2023
2023.3.9 95 12/12/2023
2023.3.8 125 10/17/2023
2023.3.7-rc 80 9/29/2023
2023.3.6-rc 90 9/26/2023
2023.3.5-rc 103 9/13/2023
2023.3.4-preview 115 8/30/2023
2023.3.3-preview 112 8/29/2023
2023.3.2-preview 266 8/1/2023
2023.3.1-preview 244 7/28/2023
2023.2.5 356 9/12/2023
2023.2.4 294 8/7/2023
2023.2.3-rc 231 8/3/2023
2023.2.2-rc 261 7/21/2023
2023.2.1-preview 268 6/27/2023
2023.1.7 271 9/12/2023
2023.1.6 243 8/7/2023
2023.1.5 171 7/17/2023
2023.1.4 136 6/27/2023