Posts

Showing posts from April, 2019

Find all DotNet Core Runtimes and DotNet Core SDKs installed on a system

##Find DotNet Core Runtimes
(dir (Get-Command dotnet).Path.Replace('dotnet.exe', 'shared\Microsoft.NETCore.App')).Name

##Find DotNet Core SDKs
(dir (Get-Command dotnet).Path.Replace('dotnet.exe', 'sdk')).Name

YAML Jump Start

Find Dead Code using the Code Analysis in your project.

https://stackoverflow.com/questions/30974433/get-list-of-zero-reference-codes-in-visual-studio/37579734
<?xml version="1.0" encoding="utf-8"?> <RuleSetName="Dead Code Rules"Description=" "ToolsVersion="12.0"> <RulesAnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis"RuleNamespace="Microsoft.Rules.Managed"> <RuleId="CA1801"Action=