Cannot create Python Object in .NET with IronPython - c#

Newly I started working with IronPython in .NET but as I saw some few examples they're making engine with Python.CreateEngine() But the Python object isn't loaded for me however I imported these references.
using IronPython.Hosting;
using IronPython.Runtime;
using Microsoft.Scripting;
using Microsoft.Scripting.Hosting;
I searched around this topic but I couldn't find anything.
Peace Out!

Bit of a tangent, but by far the quickest way of getting going with IronPython is to download a copy of SharpDevelop and use a project template to start you off. You'll sidestep a lot of these initial environment issues.

Did you actually add the assemblies to your project?

Related

Importing dll - using add reference doesn't allow me to use the 'using' function in the code

I am using Visual Studio 2017, to create a c# class library (.dll).
I am modding a game and need to import the games .dll files.
I create my project, and add the dll files as a reference, and have checked the local copy box. Once done however I cannot seem to use them?
using System;
using UnityEngine;
What should be happening (as far as I know) is that I should be able to use the classes within the dll files I am 'using', however the second line of code (Unity Engine, a dll I have added as a reference) is greyed out while the system one is not.
I have looked online but all the answers I have found are for C++, and reference a 'linker' file which I do not know how to implement.
directly inherit the class name like this "System.Configuration.ConfigurationManager". If your facing problem by adding namespace.

Import Custom .NET Library into Blue Prism Automate Folder

I am trying to create a custom library in C# using Visual Studio and then be able to refer to it from code-stages in BP objects. I know that the .dll has to be placed in the Automate folder for BP to see it, but what about .exe, config and all other files? Just placing the .dll only in the Automate folder doesn't seem to work for me. I did reference it under Code Options on the Initialize page and also placed a Namespace under Namespace Imports. But BP still tells me that the library is missing. Do I need to package as NuGet or some other way? I have zero experience doing this, so I am sorry if this is basic.
I was wondering if someone could point out some tutorial or information on how to do this A-Z, or maybe share their experience doing this? Thank you.
If you want to create a DLL to be used with Blue Prism, the best thing to do is to compile the code with all its references and resources into a single DLL.
I have always used Costura Fody to achieve that for usage in BP several times.

C# using DevIL library in winforms

I want to use the ilLoadL function from the devIL library using C#. But when I try to add DevIL.dll to my project it gives me this error:
A reference to the "DevIL.dll" could not be added.Please make sure that the file is accessible and that it is a valid assembly or COM component.
Now i've been searching online for a while and it seems that DevIL does not support .NET? There is a .NET wrapper created for it. I tried that but it doesn't contain the ilLoadL function and such. Only the LoadBitmap and LoadILU.
Is there a way to use DevILs ilLoadL function in C#?
Have you tried using the nuget package? http://www.nuget.org/packages/DevIL.redist/

Microsoft.Speech Reference Missing C++/cli

I'm having a hard time finding any information on this so maybe someone here can enlighten me. I've coded a module in C++/Cli, everything is good, but for some reason in the reference list(When I right-click on the VS project to add a reference), I can't find Microsoft.Speech in the list.
There is another one that's equivalent, it's called System.Speech, but I absolutely need Microsoft.Speech. Since the module is pure managed code, shouldn't I have access to all the .NET modules? Or maybe there is a pack I can download to extend it?
Thanks.
Update:
I'm referring to these two calls:
using Microsoft.Speech.AudioFormat;
using Microsoft.Speech.Recognition;
Which can be found in the Kinect SDK samples. I need those in C++/CLI because I cannot access the kinect's recognizer if I use the System native version.
Just in case you are not able to find Microsoft.Speech.dll in the .NET tab, you can do the following:
Import Microsoft.Speech.dll from the following location:
C:\Windows\assembly\GAC_MSIL\Microsoft.Speech\11.0.0.0__31bf3856ad364e35\Microsoft.Speech.dll
Here's the solution :
#using "Microsoft.Speech.dll"
using namespace Microsoft::Speech;
using namespace Microsoft::Speech::Recognition;
Everything now works perfectly.

Using VAMP Plugins with C#

I am wondering how to use VAMP Plugins with C# for Visual Studio 2008? I have downloaded multiple VAMP Plugins already. Currently, I have tested them using Sonic Visualiser and it looks great! However, I am having some problems incorporating it to my C# program.
My problem is that whenever I try to reference the .dll file, it gives me an error, something about 'make sure you are referencing a valid assembly or COM object'. How do I get around this?
Thank you very much!
I think you mean these: http://www.vamp-plugins.org/
As far as I can see, they are written in C++, so you can't add them as reference. You need to use P/Invoke to use those plugins.

Categories

Resources