Created
July 8, 2015 01:20
-
-
Save Fhernd/8c9764f7cb079ad0f34a to your computer and use it in GitHub Desktop.
Información de versionamiento archivo csc.exe.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OrtizOL - xCSw - http://ortizol.blogspot.com | |
using System; | |
using System.Diagnostics; | |
namespace Receta.CSharp.R0505 | |
{ | |
public class TamanioDirectorio | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine(Environment.NewLine); | |
// Especificamos la ruta del archivo a consultar, en este caso el | |
// el archivo `csc.exe`: | |
FileVersionInfo cscVerInfo = FileVersionInfo.GetVersionInfo( | |
@"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe"); | |
// Muestra en la salida estándar información | |
// de versionamiento: | |
Console.WriteLine("Nombre archivo: {0}.", cscVerInfo.FileName); | |
Console.WriteLine("Nombre producto: {0}.", cscVerInfo.ProductName); | |
Console.WriteLine("Versión de producto: {0}.", cscVerInfo.ProductVersion); | |
Console.WriteLine("Nombre compañía: {0}.", cscVerInfo.CompanyName); | |
Console.WriteLine(Environment.NewLine); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment