cmake how to set C# project property Auto-generate binding redirects

cmake code:
set_property(TARGET Test PROPERTY AutoGenerateBindingRedirects TRUE)

don’t invalid,

Arbitrary Visual Studio properties are set (IIRC) via the VS_USER_PROPS property. This may require a dedicated property however; I’m not familiar enough with VS to know.

thank you so much.
but I still don’t know how to solve this problem.

See issue 21713: VS: How to set ‘Auto-generate binding redirects’ for CSharp?

thank you so much.
I have read this issue. this issue just describe about set this property in the .csproj file.
however. there is no mention of how to set in the cmake script.

@craigtao: If this functionality was present in CMake, that issue would have been closed :wink: The issue is still open because it is not implemented yet. AFAICS, adding this functionality is fairly trivial (assuming general C/C++ knowledge); feel free to give it a shot :slight_smile:

thank you very much