Visual Studio – Build – Error – “Exception: The process cannot access the file – obj’ because it is being used by another process.

Background Ran into a little error while trying to build a Visual Studio Project. Error Error Item Image Textual TroubleShooting Outline Trigger PowerShell build\buildtasks.ps1 Get-ChildItem -Recurse bin, obj -Directory | Remove-Item -Recurse -Force Tools Identify which processes are using the targeted folder Microsoft SysInternals handle Trigger Powershell build\buildtasks.ps1 The buildtasks.ps1 script issues this command :- … Continue reading Visual Studio – Build – Error – “Exception: The process cannot access the file – obj’ because it is being used by another process.

Visual Studio – Build – Error “NETSDK1045: The current .NET SDK does not support targeting .NET Standard 2.1. Either target .NET Standard 2.0 or lower, or use a version of the .NET SDK that supports .NET Standard 2.1.”

Background Trying to build .Net Application, but running into an error. Error Error Image Error Text TroubleShooting Outline Project File Review .csproj file DotNet Installation Version dotnet application dotnet --info dotnet --list-runtimes dotnet --list-sdks Tasks Project File .csproj file Source Code Image Text Explanation Target Framework netstandard2.1 dotnet.exe dotnet.exe -- info Syntax Example Output Output … Continue reading Visual Studio – Build – Error “NETSDK1045: The current .NET SDK does not support targeting .NET Standard 2.1. Either target .NET Standard 2.0 or lower, or use a version of the .NET SDK that supports .NET Standard 2.1.”

NetCat – Visual Studio – Source Code Compilation

Background Wanted to use netcat (nc) on MS Windows. What is NetCat ? Wikipedia Link netcat is a computer networking utility for reading from and writing to network connections using TCP or UDP. The command is designed to be a dependable back-end that can be used directly or easily driven by other programs and scripts.  … Continue reading NetCat – Visual Studio – Source Code Compilation

File System – Folder Sizes in Powershell

Background Needing to get folder sizes, but did not want to remote desktop to the machine and get the folder size using MS Windows Explorer. Code PowerShell Link Link Body https://gist.github.com/DanielAdeniji/f8f91de6cdeb5e92edb43d20b03287c4 Output  

Powershell – Error – “Error formatting a string: Input string was not in a correct format..”

Background Here is another Powershell error message I received this morning. Error Error Image Code Code - Error Code - Correction Outline The issue is that our connection string contains control characters Database Connection String Original :- Driver={SQL Server};Server={0};Database={1};APP={2}" Revised :- Driver={{SQL Server}};Server={0};Database={1};APP={2}" We escaped { by repeating it Same for }, we escaped by … Continue reading Powershell – Error – “Error formatting a string: Input string was not in a correct format..”