GithubHelp home page GithubHelp logo

5x / gac-assembly-script Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8 KB

Simple automated script for building signed assemblies on .NET Framework.

License: MIT License

Python 100.00%
python script assemblies gac dotnet-framework global-assembly-cache

gac-assembly-script's Introduction

gac-assembly-script

Simple automated script for building signed assemblies on .NET Framework.

Script check installed versions of .NET Framework and select a recent possible version. Sign component with Strong Name Tool and compile C# module, after creating a linked assembly with optional opportunity install to GAC (require UAC, admin permission). Output assemblies placed in the assemblies subfolder of the working directory.

Usage example

[INFO] Available .Net versions: ['2.0.50727', '3.0', '3.5', '4', '4.0']
[INFO] DonNET SDK folder: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
[INFO] DonNET Framework Compiler path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe
[USER] Source files path
> D:\Projects\2017_ApplicationsCP\BankAccountLib
[INFO] Source files:
\Account.cs
\EnvInfo.cs
\IAccount.cs
\Properties\AssemblyInfo.cs
[USER] Enter component name(default BankAccountLib): NZEBankAccountComponent
[DONE] Check output directory: D:\Projects\2017_GAC\dist\out
[DONE] Strong key pair created: NZEBankAccountComponent.snk
[DONE] DotNET module compiled: NZEBankAccountComponent.netmodule
[DONE] Assembly successful linked: NZEBankAccountComponent.dll
[USER] Install to GAC(Default no)[Y, n]: Y
Assembly successfully added to the cache
[DONE] Install assembly to GAC.
The Global Assembly Cache contains the following assemblies:
  NZEBankAccountComponent, Version=1.0.0.0, Culture=neutral, PublicKeyToken=266683df4fb10a4f, processorArchitecture=MSIL

Number of items = 1
Success. 

Press ENTER to exit.

Build Windows Application

To create runnable execute application use next:

pyinstaller --onefile --console gac.py

More info about PyInstaller

Requirements

  • Python 3.4 or later
  • pyinstaller

Support & Contributing

Anyone is welcome to contribute. If you decide to get involved, please take a moment and check out the following:

License

The code is available under the MIT license.

gac-assembly-script's People

Contributors

5x avatar

Watchers

 avatar  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.