Symptom
Case 1 :
When opening a solution in the SAP Cloud Applications Studio, you see the below warning:
The project C:\Users\XYZ\source\repos\PROD\YXXXXXXXY\YXXXXXXXY.myproj targets .NET framework 4.0, which is no longer supported.
You may notice that this is affecting newly configured laptops only.
Case 2 :
Message "The project file was unloaded."
In some production tenants, solution folder shows unloaded. And the user will not be allowed to perform any actions.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
- SAP Business ByDesign
- SAP Cloud for Customer
- SAP Cloud Applications Studio
Reproducing the Issue
Prerequisites:
- You are running Microsoft Visual Studio 2022 (Enterprise or Professional)
- You have installed the latest SAP Cloud Applications Studio Extension for Visual Studio 2022
Steps:
- Open view My Solutions and click Log On.
- Enter system details, credentials and click OK.
- Double-click to enter any solution.
Cause
Projects targeting .NET Framework 4.0 are no longer supported by default in Visual Studio 2022 as the .NET Framework 4.0 developer pack does not come with this installation alone. It also cannot be installed as a component for Visual Studio 2022 directly.
Resolution
Case 1 :
The easiest way to install the .NET Framework 4.0 targeting pack to your machine is to install any of the older versions of Visual Studio that come with your subscription, for example, Microsoft Visual Studio 2019. With these you can install the .NET Framework 4.0 developer pack to your machine.
See relevant component for Microsoft Visual Studio 2019:
If you do not have access to older versions of Microsoft Visual Studio, you can download the Reference Assemblies package manually. See external article on how to achieve this:
https://www.c-sharpcorner.com/article/open-legacy-projects-4-5-framework-in-visual-studio-2022/ (relevant nuget package: https://www.nuget.org/packages/Microsoft.NETFramework.ReferenceAssemblies.net40)
Case 2 :
- Open Tools menu , Go to Options
- Under 'Source Control', click on 'Plug-in Selection'
- Select 'None' from the 'Current source control plug-in' dropdown
- Now open the solution. The solution should load.
Note that the window to upgrade the myproj file to .NET Framework 4.8 would still come.
Keywords
PDI, SDK, VS2022, VS, reference assembles, legacy, 4.0, net40, DOTNET, 4.8, MSDN, EXTN, vsix, unloaded. , KBA , AP-RC-BDS-INS , ByDesign Studio Installer , Problem
SAP Knowledge Base Article - Public