Stream: dotnet
Topic: Unable to build .NET FHIR API solution
raj (Mar 03 2020 at 13:50):
Have downloaded the Github code from below links and unable to restore packages through Visual Studio . When I try to install Hl7.Fhir nuget package from Manager console, it fails since there no files in Common project. For Eg:
The referenced project '..\..\common\src\Hl7.Fhir.Support.Tests\Hl7.Fhir.Support.Tests.csproj' does not exist.
This doesn't allow me to proceed further.
Can anyone confirm if I missing any other project or solution to build before I access the API and client. I tried with both of these projects
https://github.com/FirelyTeam/fhir-net-api/tree/release/1.5.0-stu3
https://github.com/FirelyTeam/fhir-net-api/tree/release/1.5.0-r4
Running the solution in Visual Studio 2019
Any help is appreciated
Michele Mottini (Mar 03 2020 at 14:09):
The common stuff is in a sub-repo, you have to get that as well (check git documentation on how to work with sub-repos)
Marco Visser (Mar 03 2020 at 15:50):
Indeed, we introduced a submodule, called fhir-net-common, containing this 'missing' projects. See here https://github.com/FirelyTeam/fhir-net-api/wiki/Clone-this-repository-with-submodule-common howto clone the fhir-net-api repository properly, including the submodules.
Josh Mandel (Mar 03 2020 at 16:25):
I'd suggest documenting how to clone
in README (PR).
Last updated: Apr 12 2022 at 19:14 UTC