Metalama.Community.Costura
2024.0.14
Prefix Reserved
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
<PackageReference Include="Metalama.Community.Costura" Version="2024.0.14" />
paket add Metalama.Community.Costura --version 2024.0.14
#r "nuget: Metalama.Community.Costura, 2024.0.14"
// 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.
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
Install the NuGet package:
dotnet add package Metalama.Community.Costura
.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 | Versions 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. |
-
.NETStandard 2.0
- Metalama.Community.Costura.Redist (>= 2024.0.14)
- Metalama.Framework (>= 2024.0.14)
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 |
---|---|---|
2025.0.6-rc | 61 | 11/15/2024 |
2025.0.5-preview | 68 | 11/8/2024 |
2025.0.3-preview | 70 | 10/25/2024 |
2025.0.2-preview | 63 | 10/24/2024 |
2025.0.1-preview | 67 | 10/14/2024 |
2024.2.30 | 116 | 11/15/2024 |
2024.2.29 | 80 | 10/31/2024 |
2024.2.27 | 86 | 10/25/2024 |
2024.2.26 | 72 | 10/24/2024 |
2024.2.25 | 85 | 10/14/2024 |
2024.2.24 | 88 | 10/2/2024 |
2024.2.23 | 119 | 9/10/2024 |
2024.2.22 | 104 | 8/29/2024 |
2024.2.21 | 104 | 8/28/2024 |
2024.2.20 | 126 | 8/15/2024 |
2024.2.19 | 80 | 8/1/2024 |
2024.2.18 | 67 | 7/29/2024 |
2024.2.17-rc | 87 | 7/22/2024 |
2024.2.16-rc | 75 | 7/18/2024 |
2024.2.15-rc | 72 | 7/12/2024 |
2024.2.14-rc | 80 | 7/8/2024 |
2024.2.13-rc | 91 | 7/2/2024 |
2024.2.12-preview | 89 | 6/28/2024 |
2024.2.11-preview | 89 | 6/26/2024 |
2024.2.10-preview | 95 | 6/20/2024 |
2024.2.9-preview | 86 | 6/11/2024 |
2024.2.8-preview | 71 | 6/6/2024 |
2024.2.7-preview | 87 | 5/30/2024 |
2024.2.6-preview | 90 | 5/25/2024 |
2024.2.5-preview | 91 | 5/6/2024 |
2024.2.4-preview | 103 | 5/4/2024 |
2024.2.3-preview | 97 | 4/30/2024 |
2024.2.2-preview | 97 | 4/23/2024 |
2024.2.1-preview | 103 | 4/11/2024 |
2024.1.30 | 71 | 10/24/2024 |
2024.1.29 | 84 | 10/11/2024 |
2024.1.28 | 100 | 9/9/2024 |
2024.1.27 | 78 | 8/28/2024 |
2024.1.26 | 100 | 8/15/2024 |
2024.1.25 | 87 | 7/22/2024 |
2024.1.24 | 94 | 7/12/2024 |
2024.1.23 | 100 | 6/26/2024 |
2024.1.22 | 123 | 6/15/2024 |
2024.1.21 | 97 | 6/6/2024 |
2024.1.20 | 104 | 5/30/2024 |
2024.1.19 | 102 | 5/24/2024 |
2024.1.18 | 122 | 5/6/2024 |
2024.1.17 | 90 | 5/3/2024 |
2024.1.16 | 115 | 4/30/2024 |
2024.1.15 | 106 | 4/29/2024 |
2024.1.14 | 96 | 4/23/2024 |
2024.1.13 | 119 | 4/23/2024 |
2024.1.12 | 117 | 4/17/2024 |
2024.1.11-rc | 95 | 4/11/2024 |
2024.1.10-rc | 79 | 4/4/2024 |
2024.1.9-rc | 98 | 3/27/2024 |
2024.1.8-preview | 94 | 3/25/2024 |
2024.1.7-preview | 94 | 3/19/2024 |
2024.1.6-preview | 97 | 3/6/2024 |
2024.1.5-preview | 110 | 2/29/2024 |
2024.1.4-preview | 101 | 2/27/2024 |
2024.1.3-preview | 91 | 2/23/2024 |
2024.1.2-preview | 123 | 2/7/2024 |
2024.1.1-preview | 102 | 1/30/2024 |
2024.0.16 | 99 | 6/15/2024 |
2024.0.15 | 102 | 6/6/2024 |
2024.0.14 | 95 | 5/30/2024 |
2024.0.13 | 102 | 5/24/2024 |
2024.0.12 | 126 | 4/17/2024 |
2024.0.11 | 142 | 3/21/2024 |
2024.0.10 | 106 | 3/19/2024 |
2024.0.9 | 127 | 2/29/2024 |
2024.0.8 | 125 | 2/23/2024 |
2024.0.7 | 147 | 2/7/2024 |
2024.0.6 | 212 | 1/3/2024 |
2024.0.5-rc | 138 | 12/21/2023 |
2024.0.4-rc | 140 | 12/12/2023 |
2024.0.3-preview | 113 | 12/6/2023 |
2024.0.2-preview | 137 | 11/14/2023 |
2024.0.1-preview | 123 | 11/6/2023 |
2023.4.9 | 120 | 2/7/2024 |
2023.4.8 | 128 | 12/21/2023 |
2023.4.7 | 165 | 12/12/2023 |
2023.4.6 | 170 | 11/7/2023 |
2023.4.5-rc | 104 | 10/26/2023 |
2023.4.4-preview | 105 | 10/18/2023 |
2023.4.3-preview | 87 | 10/4/2023 |
2023.4.2-preview | 109 | 9/26/2023 |
2023.4.1-preview | 138 | 9/13/2023 |
2023.3.10 | 127 | 12/21/2023 |
2023.3.9 | 129 | 12/12/2023 |
2023.3.8 | 154 | 10/17/2023 |
2023.3.7-rc | 109 | 9/29/2023 |
2023.3.6-rc | 114 | 9/26/2023 |
2023.3.5-rc | 128 | 9/13/2023 |
2023.3.4-preview | 141 | 8/30/2023 |
2023.3.3-preview | 141 | 8/29/2023 |
2023.3.2-preview | 306 | 8/1/2023 |
2023.3.1-preview | 283 | 7/28/2023 |
2023.2.5 | 398 | 9/12/2023 |
2023.2.4 | 336 | 8/7/2023 |
2023.2.3-rc | 272 | 8/3/2023 |
2023.2.2-rc | 304 | 7/21/2023 |
2023.2.1-preview | 313 | 6/27/2023 |
2023.1.7 | 313 | 9/12/2023 |
2023.1.6 | 286 | 8/7/2023 |
2023.1.5 | 196 | 7/17/2023 |
2023.1.4 | 167 | 6/27/2023 |