Cannot build C# Firmware library in Visual Studio 2022

I am using Visual Studio 2022 and PLCnext Toolchain Windows 2023.0.
When I want to build a new function block C# library, I get the following error:
The reference assemblies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

This question was already raised, but topic was closed without provided public solution:
Forum - PLCnext Community PLCnext Technology from Phoenix Contact is a unique, open ecosystem for modern automation that is capable of meeting all the challenges of the IoT world. Is it possible to obtain PLCnext Toolchain 2023.6?

Since that earlier conversation, Toolchain version 2023.6 has been released.
The Toolchain is now available as a separate “product” on the website, not as a Download under the individual PLCnext Control devices. From now on the Toolchain will be available here:
https://www.phoenixcontact.com/en-pc/products/software-package-plcnext-technology-toolchain-1639782

Thank you, I wasn’t able to find it. For example, there is no information about 2023.6 Toolchain availability here:
https://www.plcnext-community.net/infocenter/tool_downloads/

Thank you, I wasn’t able to find it. For example, there is no information about 2023.6 Toolchain availability here:</p>[https://www.plcnext-community.net/infocenter/tool_downloads/</a></p>

Yes, you’re absolutely right. I have already asked for the Info Center to be updated, and it should be shown in the next Info Center update.

I am using Visual Studio 2022 and PLCnext Toolchain Windows 2023.0.</p>When I want to build a new function block C# library, I get the following error:</p>The reference assemblies for .NETFramework,Version=v4.0 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at [https://aka.ms/msbuild/developerpacks</a> </p>This question was already raised, but topic was closed without provided public solution:</p>[https://www.plcnext-community.net/forum/#/discussion/3518/cannot-build-c-firmware-library-in-visual-studio-2022</a></p>Is it possible to obtain PLCnext Toolchain 2023.6?</p>

A clean re-install of Visual Studio and the Toolchain solved that same problem for me.