Skip to content

dotnetthailand/iron-python-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run the project locally

Prerequisite

Prepare source code and environment

  • Clone the project.
git clone git@github.com:dotnetthailand/iron-python-examples.git
  • CD to iron-python-examples folder.
cd iron-python-examples
  • Double click IronPythonExamples.sln to open the project with Visual Studio.
  • The current project file/folder structure.
    iron-python-examples/
    ├── IronPythonClassLibraryTest.cs (the main test class)
    ├── IronPythonExamples.csproj
    ├── IronPythonExamples.sln
    ├── Math.py (Python code which will be compiled to Math.dll by ipyc.exe)
    

Build the project and run unit test

  • In the Solution Explorer window, select project IronPythonExamples node.
  • Press Ctrl+Shift+B to build the project.
  • Open IronPythonClassLibraryTest.cs, and click somewhere inside Sum_ValidInput_ReturnCorectValue test case.
  • Press Ctrl+R, T to run the test case.
  • The Test Explorer window will be automaticall opened and it will show a status of the running test case.
  • You should find a successful test result as the screenshot below.

Useful tools for COM

  • OleViewDotNet, search by ProgId "ThaiTranslite"
  • C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86\oleview.exe after you have installed "development with C++" from Visual Studio Installer.
  • RegDllView
  • RegistryFinder

Useful resource

About

IronPython code examples project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published