We have a solution that contains both a Net 5 WPF application and a .Net Framework 4.7.1 class library that contains Com visible classes. This dll will be registered using regasm.exe to be used from an application developed in Visual Basic 6 (yes, truly).
The Net 5 application and the .Net Framework library share code in five class libraries. When I start up the Net 5 application I would like these dependent projects to be compiled against Net 5. And when I build the .Net Framework Com visible project I would like the dependent projects to be compiled against .Net Framework 4.7.1.
How can this be done? Is this a solution that will enable our team to hold on to our sanity? Or is a different approach better?