Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created July 8, 2015 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/8c9764f7cb079ad0f34a to your computer and use it in GitHub Desktop.
Save Fhernd/8c9764f7cb079ad0f34a to your computer and use it in GitHub Desktop.
Información de versionamiento archivo csc.exe.
// 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