diff --git a/csharp/.editorconfig b/csharp/.editorconfig index 01506a0e25041..7aa7f3e5b571f 100644 --- a/csharp/.editorconfig +++ b/csharp/.editorconfig @@ -163,6 +163,10 @@ csharp_space_between_method_declaration_parameter_list_parentheses = false csharp_space_between_parentheses = false csharp_space_between_square_brackets = false +# Ignore 'call site is reachable on all platforms' when using code generated +# from a single platform gir file +dotnet_diagnostic.CA1416.severity = none + # Xml project files [*.{csproj,props,targets}] indent_size = 2 diff --git a/csharp/generate_gobject_bindings.sh b/csharp/generate_gobject_bindings.sh index 27a82224a7110..7605f033c12a6 100755 --- a/csharp/generate_gobject_bindings.sh +++ b/csharp/generate_gobject_bindings.sh @@ -25,14 +25,16 @@ for os_name in ${os_names[@]}; do cp "${gircore_gir_dir}/${os_name}/${gir_dep}.gir" "${gir_dir}/${os_name}" done - # TODO: Make this work cross platform and merge all platforms in CI build - for index in ${!arrow_gobject_libs[*]}; do - arrow_lib=${arrow_gobject_libs[$index]} - cp "${arrow_gir_dir}/${arrow_lib}.gir" "${gir_dir}/${os_name}" - namespace=${namespaces[$index]} - sed -i.bak "s/