1 Replies - 609 Views - Last Post: 11 April 2018 - 06:42 AM Rate Topic: -----

#1 complete   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 116
  • Joined: 12-April 07

How Do I make Multiple "Entry Points" in a .NET CORE app?

Posted 10 April 2018 - 09:04 PM

I am new to .NET CORE but I have followed a few tutorials. The tutorials I have followed are basically "Hello World" types of programs where I make a small functional .Net Core application and I publish it. They are basically a DLL, I assume, and they run in some sort of system/container where they can run on any OS.

Even though the final product is a DLL, the code itself seems to be structured in a way where it is an actual executable application.

So how would I translate an actual C# DLL project into a .NET Core project? How would a project that is already designed to produce a DLL work in a .Net Core project?

Executables only have one entry point: static void Main.

.NET Libraries expose public methods which are all entry points in that sense.

An "entry point" in a program is where the operating system invokes an executable program file, the term does not apply to libraries. (and ASP.NET web-application files are really just libraries, the ASP.NET host just looks for certain exposed Page/Handler/Controller types). This applies to ASP.NET. Does it also apply to .NET Core? Also, when I ran my .NET Core applications, I did it from a special command line. So how would that work if I translated a DLL C# program into a .NET Core program?

Is This A Good Question/Topic? 0
  • +

Replies To: How Do I make Multiple "Entry Points" in a .NET CORE app?

#2 modi123_1   User is online

  • Suitor #2
  • member icon

Reputation: 14685
  • View blog
  • Posts: 58,681
  • Joined: 12-June 08

Re: How Do I make Multiple "Entry Points" in a .NET CORE app?

Posted 11 April 2018 - 06:42 AM

What sort of .NET core project did you start with?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1