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 CommunityPLCnext 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?
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.