/Pythonnet_Integration

Simple Integration of Python Code into C# .Net Application using Pythonnet Package.

Primary LanguageC#MIT LicenseMIT

Pythonnet Integration

Integrate Python Code into C# .Net using Pythonnet Package.

Instructions to Setup Pythonnet for new Project

  1. Create new project in Visual Studio.
  2. Add Pythonnet package using the NuGet Package Manager.
  3. Add your pythonfile.py to the Project or create your own inside the directory.
  4. Important Step:
    On the Properties of the imported python file, change the Copy to Output Directory to copy always
  5. Build and Execute.