Relative Content

Tag Archive for c#.netmsbuild

Build pulling in wrong framework version from ProjectReference

I have a solution which contains several projects. One of these (call it ProjectA) is set to build for <TargetFrameworks>net48;net6.0</TargetFrameworks>. There are a couple of other projects which are only .NET 4.8 and reference ProjectA and they build fine, but the unit test project gets an odd compile error when built via MSBuild on our Jenkins build agent (VS2022 builds just fine)