Hello,
we user the Elements v 11 within the Visual Studio for more than a year already. Mostly without significant problems. But now, im experimenting with the Visual Studio 2022 only installed (without 2019 at the same machine)
Im having an issue, where the VS 2022 tells me that .net framework v 4.0 is not installed (which is true but i dont need id) and doesn’t allow me to load the elements. project:
The issue is caused by the <TargetFramework>.NETFramework4.6</TargetFramework>
which we have in a separate targets file and imported it into main project .elements file. Normally the TargetFrameowrk prop is presented at the main file.
The Import appears to be correctly managed during the build, but incorrectly at the Visual Studio Solution load.This forces our developers to have a VS 2019 (delivers the netframework 4.0) installed along with the VS 2022.
We use the imports because is much eaiser to switch the target framework when it is declared only in one file instead of hundreds…
Using Elements 11.0.0.2807. The DEMO is here: ClassLibrary1.zip (15.8 KB)
Could you make that work for us ?
Thanks for your reply.