Create GlobalAssemblyInfo.cs file.txt 519 Bytes
Newer Older
Viet Hoang's avatar
Viet Hoang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
if (Test-Path .\GlobalAssemblyInfo.cs)
{
 remove-Item .\GlobalAssemblyInfo.cs
}

$content = '
using System.Reflection;

[assembly: AssemblyCompany("VietHoang")]
[assembly: AssemblyCopyright("Copyright © VietHoang 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyVersion("{0}")]
[assembly: AssemblyInformationalVersion("{0}")]
[assembly: AssemblyFileVersion("{0}")]
' -f "%vhs.AssemblyVersion%"

new-item -path .\ -name GlobalAssemblyInfo.cs -type "file" -value $content

Get-Content .\GlobalAssemblyInfo.cs