C# Program to Print the Current Assembly Name Using Getexecutingassembly() Method

You are currently viewing C# Program to Print the Current Assembly Name Using Getexecutingassembly() Method

C# program to print the current assembly name using GetExecutingAssembly() method

//C# program to print current assembly name 
//using GetExecutingAssembly() method.

using System;
using System.Reflection;

class Program
{
    static void Main(string[] args)
    {
        Assembly asm;
        asm     = Assembly.GetExecutingAssembly();

        Console.WriteLine(asm.FullName);
    }
}

Output

Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Press any key to continue . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply