|
Listing 3-18 extracted from chapter Build, deploy and configure your .NET applications
Listing 3-17< > Listing 4-1
This listing can be compiled with the command line: csc.exe /out:Foo.exe /target:exe Example_3_18_to_rename_Foo.cs Errors: 0 Warnings: 0
Example_3_18_to_rename_Foo.cs
using System.Reflection;
using System.Windows.Forms;
class Program {
static void Main() {
Assembly asm = Assembly.GetExecutingAssembly();
MessageBox.Show("My CodeBase is:" + asm.CodeBase);
}
}
Copyright Patrick Smacchia 2006 2007
|