Metalama.Community.Costura 2024.1.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 prerelease version of this package available.
See the version list below for details.
dotnet add package Metalama.Community.Costura --version 2024.1.14
NuGet\Install-Package Metalama.Community.Costura -Version 2024.1.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.1.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.1.14
#r "nuget: Metalama.Community.Costura, 2024.1.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.1.14

// Install Metalama.Community.Costura as a Cake Tool
#tool nuget:?package=Metalama.Community.Costura&version=2024.1.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.2-preview 40 4/23/2024
2024.2.1-preview 71 4/11/2024
2024.1.14 47 4/23/2024
2024.1.13 45 4/23/2024
2024.1.12 86 4/17/2024
2024.1.11-rc 62 4/11/2024
2024.1.10-rc 65 4/4/2024
2024.1.9-rc 71 3/27/2024
2024.1.8-preview 66 3/25/2024
2024.1.7-preview 67 3/19/2024
2024.1.6-preview 68 3/6/2024
2024.1.5-preview 85 2/29/2024
2024.1.4-preview 66 2/27/2024
2024.1.3-preview 64 2/23/2024
2024.1.2-preview 93 2/7/2024
2024.1.1-preview 62 1/30/2024
2024.0.12 89 4/17/2024
2024.0.11 103 3/21/2024
2024.0.10 71 3/19/2024
2024.0.9 96 2/29/2024
2024.0.8 90 2/23/2024
2024.0.7 113 2/7/2024
2024.0.6 178 1/3/2024
2024.0.5-rc 109 12/21/2023
2024.0.4-rc 105 12/12/2023
2024.0.3-preview 89 12/6/2023
2024.0.2-preview 104 11/14/2023
2024.0.1-preview 93 11/6/2023
2023.4.9 81 2/7/2024
2023.4.8 95 12/21/2023
2023.4.7 130 12/12/2023
2023.4.6 137 11/7/2023
2023.4.5-rc 90 10/26/2023
2023.4.4-preview 80 10/18/2023
2023.4.3-preview 60 10/4/2023
2023.4.2-preview 81 9/26/2023
2023.4.1-preview 109 9/13/2023
2023.3.10 94 12/21/2023
2023.3.9 92 12/12/2023
2023.3.8 121 10/17/2023
2023.3.7-rc 78 9/29/2023
2023.3.6-rc 89 9/26/2023
2023.3.5-rc 102 9/13/2023
2023.3.4-preview 113 8/30/2023
2023.3.3-preview 111 8/29/2023
2023.3.2-preview 265 8/1/2023
2023.3.1-preview 242 7/28/2023
2023.2.5 351 9/12/2023
2023.2.4 290 8/7/2023
2023.2.3-rc 229 8/3/2023
2023.2.2-rc 259 7/21/2023
2023.2.1-preview 266 6/27/2023
2023.1.7 267 9/12/2023
2023.1.6 239 8/7/2023
2023.1.5 167 7/17/2023
2023.1.4 132 6/27/2023