MSBuild Github Project (dotnet cli using this msbuild)
You can pass build parameter to msbuild through dotnet build
or dotnet publish
docker run --privileged --cap-add sysptrace -it --rm swift swift |
using System.Threading.Tasks; | |
using System.Net; | |
using System.Net.Sockets; | |
async Task Main() | |
{ | |
var remoteEndPoint = new IPEndPoint(IPAddress.Loopback, 6000); | |
TaskScheduler.UnobservedTaskException += (sender, e) => { | |
e.Dump(); | |
}; |
async Task Main() | |
{ | |
var client = new HttpClient(); | |
await Task.WhenAll(Enumerable.Range(0, 100).Select(x => client.GetStringAsync("https://google.com"))); | |
} |
# All Files | |
Get-ChildItem | where {-not $_.PSIsContainer} | %{Rename-Item -Path $_ -NewName ($_.BaseName + ".json")} | |
# Only .txt files | |
Get-ChildItem | where Extension -eq ".txt" | %{Rename-Item -Path $_ -NewName ($_.BaseName + ".json")} | |
# .NET | |
Get-ChildItem | where Extension -eq ".txt" | %{[PSCustomObject]@{Path=$_;NewName=[System.IO.Path]::ChangeExtension($_.FullName, ".json")}} | %{Rename-Item -Path $_.Path -NewName $_.NewName} |
net_tools_deprecated_message () { | |
echo -n 'net-tools コマンドはもう非推奨ですよ?おじさんなんじゃないですか? ' | |
} | |
arp () { | |
net_tools_deprecated_message | |
echo 'Use `ip n`' | |
} | |
ifconfig () { | |
net_tools_deprecated_message |
{ | |
"terminal.integrated.shell.windows": "C:\\WINDOWS\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe", | |
"git.autofetch": true, | |
"git.enableSmartCommit": true, | |
"workbench.colorCustomizations": { | |
"activityBar.background": "#99CCFF" | |
} | |
} |
tzutil /s "Tokyo Standard Time" & reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f & net stop w32time & w32tm /config /syncfromflags:manual /manualpeerlist:"169.254.169.123" & w32tm /config /reliable:yes & net start w32time |
You can pass build parameter to msbuild through dotnet build
or dotnet publish
void Main() | |
{ | |
DetectEncodings(Directory.EnumerateFiles(@"PATH to your project", "*.cs", SearchOption.AllDirectories) | |
.Where(x => !x.Contains(@"\bin\") && !x.Contains(@"\obj\"))) | |
.Where(x => x.Charset != "UTF-8" && x.Charset != "ASCII" && x.Charset != null) | |
.Dump(); | |
} | |
IEnumerable<(string Path, string Charset)> DetectEncodings(IEnumerable<string> paths) | |
{ |
Unity 5.6.3p2 (Windows 10 64bit)