Title: Added configurable Python.Runtime.dll loader. by dmitriyse · Pull Request #244 · pythonnet/pythonnet · GitHub
Open Graph Title: Added configurable Python.Runtime.dll loader. by dmitriyse · Pull Request #244 · pythonnet/pythonnet
X Title: Added configurable Python.Runtime.dll loader. by dmitriyse · Pull Request #244 · pythonnet/pythonnet
Description: Added project that builds Python.Config.dll with different Python.Runtime.dll version stored in resources.
If you put bootstrap code:
static Program()
{
Console.WriteLine("Starting application...");
// Required to be placed in the static constructor for Mono.
PythonConfig.EnsureInitialized();
}
[STAThread]
private static int Main(string[] args)
{
// Mono workaround required to fix AssemblyResolve + EntryPoint class bug.
// Classes that was referenced from EntryPoint class cannot use assemblies resolved through "AssemblyResolve"
Action monoWorkaround = () =>
{
try
{
// You should put this initialized only if some component starting to use it before first application configuration file read attempt.
// So in rare cases.
PythonEngine.Initialize();
to your project and switch off "copy local" property on Python.Runtime.dll assembly, then different version of Python.Runtime.dll will be loaded.
You also should put version into configuration file:
Open Graph Description: Added project that builds Python.Config.dll with different Python.Runtime.dll version stored in resources. If you put bootstrap code: static Program() { Console.WriteLin...
X Description: Added project that builds Python.Config.dll with different Python.Runtime.dll version stored in resources. If you put bootstrap code: static Program() { Console.WriteLin...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/244
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2a38a6b2-6390-2fbe-19b7-162315b41f1c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EC82:AF14D:2815C29:384F8D8:6970FE34 |
| html-safe-nonce | 64c0b6698a67936a4e3b6e5b7bcb740210ee41830046bbfc7e6606055b8701c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzgyOkFGMTREOjI4MTVDMjk6Mzg0RjhEODo2OTcwRkUzNCIsInZpc2l0b3JfaWQiOiI3MTEzODkzMTEzMTE3MDgxMTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 06d62a29057ce3e134c74155f861ee3dc0dfd8640fc1e93a9e58449fbac7830e |
| hovercard-subject-tag | pull_request:78454642 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/pythonnet/pythonnet/pull/244/files |
| twitter:image | https://avatars.githubusercontent.com/u/10322215?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10322215?s=400&v=4 |
| og:image:alt | Added project that builds Python.Config.dll with different Python.Runtime.dll version stored in resources. If you put bootstrap code: static Program() { Console.WriteLin... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2d17fd2bbd784dc91f3a78a2f1d2c41d9f4f8ce86136d09833e3cf21b2bde1b7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e053d923fb27a9d948f8cefae8ba3bf43f7b938f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width