FHIR Chat · Problem building project with FHIR R4 · dotnet

Stream: dotnet

Topic: Problem building project with FHIR R4


view this post on Zulip Brian Carter (Nov 18 2019 at 01:35):

I am developing a feature in our clinical software to access a FHIR server. Our development is done in C# .NET targeting .NET Framework 4.7.2. We use Visual Studio 2017 as our development environment. Our final production builds are done using MSBuild in an automated build process on a separate build vm.
I have incorporated the FHIR R4 DLLs into our Visual Studio solution. This builds perfectly well in Visual Studio with no problem.

However, the automated MSBuild comes up with errors relating to a version mismatch with the FHIR DLLs.
*C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3258: The primary reference "Hl7.Fhir.Serialization" could not be resolved because it has an indirect dependency on the .NET Framework assembly "System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" which has a higher version "4.0.3.0" than the version "4.0.2.0" in the current target framework. *

I am hoping that someone might have some insight as to why this is happening. Any assistance would be appreciated.

view this post on Zulip Brian Postlethwaite (Nov 18 2019 at 08:20):

Have you tried comparing to other projects that use them, like the fhirpathtester and see if that builds in your environment.
I build heaps of projects in Azure build infrastructure and haven't had issues.
Do you have an issue with binding redirects in your app.config or web.config?

view this post on Zulip Brian Carter (Nov 21 2019 at 05:20):

Thanks for your reply Brian. Your comments led me to the path that eventually solved my puzzle. It turned out that we were using an old version of MSBuild. Once I changed to a newer version, my problems disappeared. Thanks again.


Last updated: Apr 12 2022 at 19:14 UTC