ironpython 引用类库_如何在内部使用IronPython引用独立的C#类库项目(Visual Studio 2010)...

该问题涉及一个C# WPF解决方案,其中包含一个主项目和几个类库项目,其中一个类库项目使用IronPython封装了Python代码。目标是使类库项目独立于完整的IronPython安装。遇到的问题是IronPython内置模块加载不正确,特别是在某些机器上。尝试的解决办法包括调整引用和使用AssemblyResolve事件,但未成功。最终解决方案建议确保IronPython相关DLL可用,并正确设置sys.path。
摘要由CSDN通过智能技术生成

This question is kind of lengthy but I try to provide you with the details that I think is necessary to find the answer.

I have a C# WPF solution (.Net 4) consisting of a main project, building a WPF windows app, which depends on a few class library projects residing in the same Visual Studio 2010 solution.

One of the class library projects encapsulates some previously developed python code that I want to make use of through IronPython and Microsoft Dynamic Language Runtime.

I would like the class library project to be self contained and not depend on a complete installation of IronPython.

The problem is that I don't know how to refer to the encapsulating library project holding the python code in a way that always work.

Normally I would just add a reference to the class library project as discussed in this question: Visual Studio 2010: How refer to a C# .Ne

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值