'TeamCity Build with mixed (.Net Framework + .Net Core) projects solution - Is it possible?

Context: Consider a Visual Studio 2017 solution with number of projects targeting .NET 4.6.1; In TeamCity a MSBuild Runner is used for the build - A new .Net Core library project was introduced to this solution that obviously broke the build... The artefacts of this build are number of NuGet packages after successful NUnit test step.

My question is: Is it even possible and what is the best approach to have a mixed .NET Framework & .NET Core projects in the same solution?

Options:

  • I guess the obvious approach will be to separate the .NET Core code in pure VS .Net Core solution and use the TeamCity .NET Core build runner...

  • I am also exploring the option of creating a custom build script to execute from TeamCity that can handle the nature of both .NET package restore and build worlds... or may be this is not a good idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source