Giter Club home page Giter Club logo

postsharp.community.packer's Introduction

  PostSharp.Community.Packer

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

This add-in only works under .NET Framework. In .NET Core, we recommend instead upgrading to .NET Core 3 or later and use the single file executable feature.

May 27, 2020. We've covered this add-in in a blog post.

This is an add-in for PostSharp. It modifies your assembly during compilation by using IL weaving.

CI badge

Example

Your project would normally result in MyProject.exe which requires Newtonsoft.Json.dll and Soothsilver.Random.dll as dependencies because you used those NuGet packages.

If you use this add-in, instead those two DLLs will be embedded into MyProject.exe as resources and loaded from there.

Installation

  1. Install the NuGet package: PM> Install-Package PostSharp.Community.Packer
  2. Get a free PostSharp Community license at https://www.postsharp.net/essentials
  3. When you compile for the first time, you'll be asked to enter the license key.
  4. Add [assembly: Packer] somewhere in your code.

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

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

Copyright notices

Published under the MIT license.

postsharp.community.packer's People

Contributors

silversharp avatar soothsilver avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.