converting a barn into a residential house...
First, the technical aspect: a barn in this project would only serve as a donor of exterior walls and, if lucky, also a usable roof, both of which would have to be energetically upgraded according to current standards. This significantly reduces the value of the gifted property.
Furthermore, barns are often built on property boundaries, which would require a building encumbrance registration with the neighbor for a residential house.
The whole thing is then supposed to be built on a kind of leasehold property, and it is unclear to me for what service (it cannot be the friend's contribution to construction costs) you want to be registered in the in-laws' land register.
You need very, very extensive advice – from a lawyer and a tax advisor.
Assuming we marry... and the house is already standing. How does the situation then behave?
In any case, not with less complexity; it remains delicate. Then a joint prenuptial gain would be brought into the marriage (refinement of the barn into a residential house, starting from the outfitting), as well as a (in-law) parental gift (barn up to shell construction, on foreign land). One of the few situations in which even businessmen understand how only three lawyers can come to seven opinions.