Skip to content
Advertisement

Tag: .net

Pass array to C# from C++ via mono

I need to pass an array from C++ to C# using mono. But I can’t get mono_array_set() to compile. So how can I pass an array from C++ to C#? I’ve tried mono_runtime_invoke() which compiles but gives a runtime error. Answer This works:

log4net cross platform XML config

I have a requirement to store my log files in a Logs sub folder. Normally you would do this my modifying the FileAppender in you App.config as follows: However this is not cross platform because if you run this on linux it will create a file called ‘LogsMyLog.log’ rather then a directory. This is because ” is not a path

Advertisement