# How to Connect Prolog with CSharp

**URL:** <https://swi-prolog.discourse.group/t/how-to-connect-prolog-with-csharp/5860>\
**Category:** Help!\
**Created:** [October 17, 2022, 10:52am UTC](https://swi-prolog.discourse.group/t/how-to-connect-prolog-with-csharp/5860 "2022-10-17T10:52:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [October 17, 2022, 11:44am UTC](https://swi-prolog.discourse.group/t/how-to-connect-prolog-with-csharp/5860/2 "2022-10-17T11:44:33Z")

</div>

Currently (10/17/2022) IMO there is no acceptable answer to this as the code for such may no longer be maintained, was not completely tested, etc.

* * *

Also when searching for an answer to this consider using the keyword `.NET` or `interop` or such instead of `CSharp`.

* * *

Baring an acceptable answer here is some related info:

- [Windows InteropServices for libswipl.dll](https://swi-prolog.discourse.group/t/windows-interopservices-for-libswipl-dll/4409)
- By Uwe Lesta
  - [SWI-Prolog interface to C# and F#](https://www.swi-prolog.org/contrib/CSharp.html)
  - [Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog - Table of Content](http://www.lesta.de/prolog/swiplcs/Generated/Index.aspx)

- [Package “swicli”](https://www.swi-prolog.org/pack/list?p=swicli)
- [NuGet Gallery | SWI.Prolog 1.1.5990](https://www.nuget.org/packages/SWI.Prolog) - Never tried it. Not sure if it can talk to SWI-Prolog but it is a [NuGet](https://www.nuget.org/) package so someone put it there for a reason.

Normally I would add HTH but in this case I think these will all be dead ends.

---

_[View the full topic](https://swi-prolog.discourse.group/t/how-to-connect-prolog-with-csharp/5860)._
