This file contains hidden or 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
$path = "C:\Path\To\Some.dll" | |
$versionInfo = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($path) | |
$assemblyName = [System.Reflection.AssemblyName]::GetAssemblyName($path) | |
Write-Host ("FileName: {0}" -f $versionInfo.FileName) | |
Write-Host ("AssemblyVersion: {0}" -f $assemblyName.Version) | |
Write-Host ("AssemblyFileVersion: {0}" -f $versionInfo.FileVersion) | |
Write-Host ("AssemblyInformationalVersion: {0}" -f $versionInfo.ProductVersion) |
This file contains hidden or 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
# To return a result string in which absent digits or leading zeroes are replaced by spaces, use | |
# the composite formatting feature and specify a field width | |
# https://docs.microsoft.com/en-us/dotnet/standard/base-types/composite-formatting | |
# specify 3 spaces | |
Write-Host ("{0,3:N0} 2345" -f 1) | |
# Output: | |
# 1 2345 |
This file contains hidden or 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
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace PopularBikes | |
{ |