Category Archives: Software

Information related to software

PowerShell: Environment Variables

January 27, 2023

We can get a single variable. Or get all of them at once. However, since each environment variable result is truncated to a single line, you will not be able to see all of certain ones – like Path. Use below to wrap all the values to multiple lines. Set Environment Variables To set an environment variable for… Read More »

Pass Command Line Parameters to Inno Setup

August 31, 2023

Inno Setup is a great software installer creator. I use it with Visual Studio as a post-build step to package my software. This software is available as a NuGet package – Tools.InnoSetup.  Unfortunately some capabilities are not as clear as they should be. I needed to set the file path for an assembly that should be included in the… Read More »

What Version of .NET is Installed?

February 28, 2023

In order to determine which version(s) of the .NET framework and SDKs installed, use the dotnet command. Remember that this will not display .NET Framework information. SDK Versions Runtime Versions Standard Installation Folders It is possible that .NET is installed but not added to the PATH variable for your operating system or user profile. Here are standard folders… Read More »

C# Debug Exception Viewer

January 24, 2023

It’s simple enough to add a try/catch block around code to catch any exception. But when you are in the initial stages of generating code, you want quick feedback and it doesn’t exactly need to be pretty. In the catch block, pass the exception to this method to create a string with easy to read information. The Code… Read More »

Rendering Documents and Reports via API

February 28, 2023

The capability to display and print documents programmatically in Select has existed since Select version 4.1. The information below is the curation of multiple topics in the DevForum. Hopefully this presentation is easier to digest. Documents and Reports represent different things under the covers but are all treated in a similar manner. We will refer to all of… Read More »

Get IEnumValue Based Values

March 19, 2021

Select use dynamic “enumerations” to hold values that are user defined and maintained in the database. A partial list of these classes is IBillCode, IState, and ITitleStatus. Below is a static helper to get a member value. Here is an example of how to use the helper. Note that you can pass either an order instance to the… Read More »

Display Value in Engineering Notation

November 26, 2020

As all electrical engineers, I work with a large range of numbers for various components – from 22 pF capacitors (22* 1e-12) to 2 MΩ resistors (2* 1e+6). To make the work a little easier, we tend to use Engineering Notation. This ensures the SI prefixes are multiples of three. Just try quickly adding 4 deciFarad to 7… Read More »

Embed File in Assembly with MSBuild Targets

February 28, 2023

I have a problem – I want to automatically generate a license file then embed the file in my C# assembly. This solution works by creating a new MSBuild targets file and embedding it in my project (csproj) file. Let’s start by modifying my project file. I imported the new MSBuild targets file near the bottom of my… Read More »

Azure Pipeline Debugging Snippets

September 11, 2024

These are pipeline YAML snippets that I have found very handy. Print all Environmental Variables This is essential for debugging paths and composite variables. It generates an output similar to this. Notice that the environment variables are sorted and the trailing Format-Table with the -wrap parameter will ensure the values are not cut off at the end of… Read More »