This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Description
Describe the bug
When cloning a repository template and subsequently compiling it, an exception may occur. The exception arises when multiple versions of VS2019/2022 are installed on the compilation PC in combination with multiple .NET frameworks. The repository does not explicitly specify which framework Visual Studio should use. Defining which .NET framework to use during compilation can be ensured by creating a global.json file at the project/solution level.
** Links **
https://learn.microsoft.com/en-us/dotnet/core/tools/global-json
Expected behavior
Compilation will works.
Desktop (please complete the following information):
- OS: Microsoft Windows Pro 11, 23H2
- Visual Studio version [Pro 2019 16.11.38 | Pro 2022 17.10.4]
- TwinCAT3 version [eg. 4024.55]
** dotnet --list-sdks **
6.0.100 [C:\Program Files\dotnet\sdk]
6.0.424 [C:\Program Files\dotnet\sdk]
7.0.404 [C:\Program Files\dotnet\sdk]
8.0.100 [C:\Program Files\dotnet\sdk]
8.0.303 [C:\Program Files\dotnet\sdk]