Click here to Skip to main content
15,302,644 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when the application is published, the users require pfx certification authorization to use the console application on their machine.

What I have tried:

<Project Sdk="Microsoft.NET.Sdk">

    <!--Other Properties-->


//program.cs does not have startup.cs file
//how could I set up pfx certificate for this console app to enable user’s machine to use this published console application

 public static async Task<int> Main(string[] args)
Console.WriteLine("Hello, your are enable to use this console app, you passed .pfx certification");
lmoelleb 20-Sep-21 7:26am
The program starts executing by calling Main. Startup.cs sounds like the ASP.NET concept and is not relevant for anything but web sites. But you can create a class called Startup and call it from Main.

Not sure what you mean with "pfx certification". What is the goal of this .pfx authorization? I.e. "I have problem X, I want to solve it with pfx certification authorization" - what is X in this sentence? And who or what passed "pfx validation" how?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900