Giter Club home page Giter Club logo

tls-entrypoints's Introduction

Multiple Entry Points in .NET Applications.

This repository aims to show how it is possible to have multiple entry-points within an application, even to the extent that multiple applications can share an entry-point, via Shared Projects.

Build Configurations

I have included four different Build configurations:

  • IMPLICIT: - This flag is also included within Debug and Release configurations, and shows the OOBE behaviour.
  • EXPLICIT: - This sets the Startup Object to be $(AssemblyName).ExplicitEntryPoint. This entry point is within the same assembly.
  • SHARED: - This sets the Startup Object to be SharedEntryPoints.SharedProgram. This entry point is NOT within the same assembly.
  • TLS: - This sets the project to use the implicitly generated link to the TLS file within the assembly.

In each case, you can see that there is no Program.cs file in either assembly, or the Shared Project.

Top Level Statements are purely a language feature. We can see that all three projects, net7.0, net5.0, and netstandard2.0 all have TLS enabled, and active, when in TLS configuration. So long as the project is running C# version 9.0 or higher, then TLS will be the first default implicit entry point to be run. If no TLS files are found, then the first static void Main(...) class will be used.

By running each project, in each configuration, you can see how the entry-point shifts down the line.

tls-entrypoints's People

Stargazers

 avatar

Watchers

 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.