Metalama.Community.Costura
2023.3.10
Prefix Reserved
See the version list below for details.
dotnet add package Metalama.Community.Costura --version 2023.3.10
NuGet\Install-Package Metalama.Community.Costura -Version 2023.3.10
<PackageReference Include="Metalama.Community.Costura" Version="2023.3.10" />
paket add Metalama.Community.Costura --version 2023.3.10
#r "nuget: Metalama.Community.Costura, 2023.3.10"
// Install Metalama.Community.Costura as a Cake Addin #addin nuget:?package=Metalama.Community.Costura&version=2023.3.10 // Install Metalama.Community.Costura as a Cake Tool #tool nuget:?package=Metalama.Community.Costura&version=2023.3.10
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 (>= 2023.3.10)
- Metalama.Framework (>= 2023.3.10)
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 | 60 | 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 | 108 | 11/15/2024 |
2024.2.29 | 78 | 10/31/2024 |
2024.2.27 | 84 | 10/25/2024 |
2024.2.26 | 70 | 10/24/2024 |
2024.2.25 | 83 | 10/14/2024 |
2024.2.24 | 86 | 10/2/2024 |
2024.2.23 | 117 | 9/10/2024 |
2024.2.22 | 102 | 8/29/2024 |
2024.2.21 | 102 | 8/28/2024 |
2024.2.20 | 124 | 8/15/2024 |
2024.2.19 | 78 | 8/1/2024 |
2024.2.18 | 65 | 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 | 69 | 10/24/2024 |
2024.1.29 | 82 | 10/11/2024 |
2024.1.28 | 98 | 9/9/2024 |
2024.1.27 | 76 | 8/28/2024 |
2024.1.26 | 98 | 8/15/2024 |
2024.1.25 | 85 | 7/22/2024 |
2024.1.24 | 92 | 7/12/2024 |
2024.1.23 | 98 | 6/26/2024 |
2024.1.22 | 121 | 6/15/2024 |
2024.1.21 | 95 | 6/6/2024 |
2024.1.20 | 102 | 5/30/2024 |
2024.1.19 | 100 | 5/24/2024 |
2024.1.18 | 120 | 5/6/2024 |
2024.1.17 | 88 | 5/3/2024 |
2024.1.16 | 113 | 4/30/2024 |
2024.1.15 | 104 | 4/29/2024 |
2024.1.14 | 94 | 4/23/2024 |
2024.1.13 | 117 | 4/23/2024 |
2024.1.12 | 115 | 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 | 97 | 6/15/2024 |
2024.0.15 | 100 | 6/6/2024 |
2024.0.14 | 93 | 5/30/2024 |
2024.0.13 | 100 | 5/24/2024 |
2024.0.12 | 124 | 4/17/2024 |
2024.0.11 | 140 | 3/21/2024 |
2024.0.10 | 104 | 3/19/2024 |
2024.0.9 | 125 | 2/29/2024 |
2024.0.8 | 123 | 2/23/2024 |
2024.0.7 | 145 | 2/7/2024 |
2024.0.6 | 210 | 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 | 118 | 2/7/2024 |
2023.4.8 | 126 | 12/21/2023 |
2023.4.7 | 163 | 12/12/2023 |
2023.4.6 | 168 | 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 | 125 | 12/21/2023 |
2023.3.9 | 127 | 12/12/2023 |
2023.3.8 | 152 | 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 | 396 | 9/12/2023 |
2023.2.4 | 334 | 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 | 311 | 9/12/2023 |
2023.1.6 | 284 | 8/7/2023 |
2023.1.5 | 194 | 7/17/2023 |
2023.1.4 | 165 | 6/27/2023 |