Skip to content

.net core assembly version Redirect #739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sunliusi opened this issue Sep 20, 2018 · 2 comments
Closed

.net core assembly version Redirect #739

sunliusi opened this issue Sep 20, 2018 · 2 comments

Comments

@sunliusi
Copy link

my package using .net core self contain. when i publish to server:

System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Thread, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。
at InQuant.OpenApi.Market.MarketWrapper..ctor(StrategyService strategySvr)
at InQuant.OpenApi.StrategyService..ctor()

import sys
import clr
import System
clr.AddReference('InQuant.OpenApi')
import InQuant.OpenApi

class StrategyTemplate(object):
def init(self):
self.__strategyService = InQuant.OpenApi.StrategyService()

the .net dll "InQuant.OpenApi" depend on System.Threading. i think i should to redirect assembly version. What should I do?

@sunliusi
Copy link
Author

The python.net maybe don't support .netcore, i just change to .net framework.

@den-run-ai
Copy link
Contributor

@sunliusi there is partial support for .net core in the master branch, but for extending use case it is required to use npython.exe instead of import clr at the moment.

closing this issue in favor of: #96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants