Open and Save panel is unresponsive in macOS

First, I noticed, that Visual Studio is very slow: Later, I noticed, that the open and save panel in every application is very slow or unresponsive. When I quit OneDrive, all problems disappeared. Solution: Restart OneDrive, or if that does not help, quit OneDrive at least for the time you want to use the open …

Build a .NET Core C# application on a Linux computer

GitHub Actions usually run on Linux workers. GitHub provides worker configuration recommendations, and those are usually Linux based. To build our .NET Core C# application on a Linux machine Install the dotnet-sdk On MacOS On Ubuntu On Red Hat Build the application Open a terminal in the project’s directory Restore the NuGet packages Build the …

TARGETDIR property is ignored during application install

The C# Setup.msi installer can take an argument, TARGETDIR to set the install location of the application. If the application is already installed on the computer, and we try to change the install location without first uninstalling it, the installer ignores the value in the TARGETDIR property. To be able to install the application at …

Turn off “If the running task does not end when requested, force it to stop” with PowerShell

Windows scheduled tasks are used to automatically execute processes on a set schedule. To allow a long running process to continue, even if the scheduled task would start it again before the process completion, we need to uncheck the “If the running task does not end when requested, force it to stop” option. When we …

Working with SSIS packages in Visual Studio

To be able to create, edit, and test MSSQL SSIS package solutions in Visual Studio Community edition we need to install the SQL Server Data Tools under Data storage and processing in the list of workloads. Creating SQL Server Integration Services (SSIS) projects SSIS extension download locations Installation See Integration Services (SSIS) Projects and Solutions for more information

RuntimeIdentifier is required for native compilation. Try running dotnet publish with the -r option value specified.

When a C# project moved from an earlier version of Visual Studio to Visual Studio 2022, AOT (Ahead Of Time) publish starts to fail with the error message RuntimeIdentifier is required for native compilation. Try running dotnet publish with the -r option value specified. This is cuased by old settings in the project. To eliminate …

Comment2GPT AI extension in Visual Studio for multiple models

Visual Studio Community Edition is a free, popular IDE to develop C# business applications. AI assistance can enhance the development process and do the boilerplate creation. As of writing, the most popular free extension that supports multiple AI models is Comment2GPT by Merry Yellow. Installation For more information visit the Comment2GPT Visual Studio Marketplace page …

Data is Null. This method or property cannot be called on Null values.

When the .NET Entity Framework retrieves data from the database and parses it into the structure that we specify in our code, we have to make sure nullable columns are modeled with nullable properties in our code. When null values are retrieved and the structure in the code does not allow null value in any …