Accessing custom library from dsl package fails

Hi,

I'm trying to put common functionality in a external library so I can reuse it for all my DSLs. When I try to reference the assembly I get an exception:

Could not load file or assembly 'MyClasses, Version=1.0.0.0, ...........' or one of its dependencies.

As a way of test I added a project to the DSL solution, named MyClasses, containing 1 class that looks as follows:

using System;

using System.Collections.Generic;

using System.Text;

namespace MyClasses

{

publicclassClass1

{

publicstring GetMyString(string x)

{

return x.ToUpper();

}

}

}

The I try to reference it from the DSL package:

MyClasses.Class1 test =new MyClasses.Class1();

string val = test.GetMyString("test string");

Console.WriteLine(val);

Hope this simple example shows my intentions and provide a way to reproduce the problem.

Thanks,

Max

[2024 byte] By [max01] at [2008-1-9]
# 1

Max,

Try to put the assembly in GAC (or public assemblies folder ..\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies). This is where DSL Tools is trying to load the assemblies from.

Edward

EdwardBakker at 2007-10-2 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 2

bedankt Edward!! werkt!!

max01 at 2007-10-2 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...

Visual Studio

Site Classified