Are generator expressions supported for the VS_DOTNET_REFERENCE_refname target property?
This is how I tried to use it:
# the `some` is a C# library which needs to refer to the DLL from the target `thing`
set_target_properties(some
PROPERTIES
VS_DOTNET_REFERENCE_thing "$<TARGET_FILE:thing>"
)
but that results in the following inside the generated some.csproj:
<ItemGroup>
<Reference Include="thing">
<CopyLocalSatelliteAssemblies>true</CopyLocalSatelliteAssemblies>
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
<Private>True</Private>
<HintPath>E:\path\to\my\project\$<TARGET_FILE:thing></HintPath>
</Reference>
</ItemGroup>
so it does not get evaluated (but at least it gets “HTML-encoded”, so the project file is not “broken”).
This apparently means that generator expressions are not supported for the VS_DOTNET_REFERENCE_<refname> target property? A follow-up question would be how can one know whether a particular target property supports generator expressions or not?