VS10GENERATOR: C# Not longer possible to link based on configuration(debug/release)
With CMake 3.10 it was possible for C# projects to link a debug dll and a release dll to thier relative configurations. With a construct like this:
set_property(TARGET ${CURRENT_TARGET_NAME} PROPERTY VS_DOTNET_REFERENCES
"{OTHERLIBRARY_DEBUG_DLL}" Condition="'
(Configuration)' == 'Debug'"
"{OTHERLIBRARY_RELEASE_DLL}" Condition="'
(Configuration)' == 'Release'"
)
Due to hard escaping of " into " this is not longer possible, the generator will produce nonsense.
The above code was a hack that is clear.
I would suggest a new property VS_DOTNET_REFERENCEPROP_refname_ATTRIBUTE_attributename much like VS_DOTNET_REFERENCEPROP_refname_TAG_tagname just that it does not create a new xml element but an attribute on refname. A new property VS_DOTNET_REFERENCEPROP_refname_CONDITION that writes to the condition attribute would be even more straightforward to use for me, but i dont know if there are other attributes used by other people.
I could not add < and > on the properties, but please just image that refname, attributename and tagname are in < >