GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - postsharp/PostSharp.Community.Packer: Packs all your .dlls into your main executable so it becomes standalone

This repository was archived by the owner on Jun 10, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
BuildProcess
BuildProcess
 
 
Client
Client
 
 
TestAssembly.WithReferences
TestAssembly.WithReferences
 
 
Tests.PostSharpUsingAssembly
Tests.PostSharpUsingAssembly
 
 
Tests.WPF
Tests.WPF
 
 
Tests
Tests
 
 
Weaver
Weaver
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
PostSharp.Community.Packer.nuspec
PostSharp.Community.Packer.nuspec
 
 
PostSharp.Community.Packer.sln
PostSharp.Community.Packer.sln
 
 
README.md
README.md
 
 
icon.png
icon.png
 
 
sign.cmd
sign.cmd
 
 
sign.json
sign.json
 
 

Repository files navigation

  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] into the beginning of one of your source files.

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.

Building the project

To build the project on your local machine, execute this from a VS 2019 command prompt:

msbuild /p:Configuration=Release
nuget pack PostSharp.Community.Packer.nuspec

For an official build:

  1. Install SignClient

    dotnet tool install --tool-path . SignClient
    
  2. Sign

    set SIGNSERVER_SECRET=****
    sign.cmd
    

Copyright notices

Published under the MIT license.

  • Copyright © PostSharp Technologies, Simon Cropp, and contributors
  • Icon by goescat, https://www.iconfinder.com/goescat, licensed under CC BY 3.0

About

Packs all your .dlls into your main executable so it becomes standalone

Resources

Readme
MIT license
Activity
Custom properties

Stars

10 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.