Hi , by default my scripts open in Visual studio. great.

I am working on a managed dll in another visual studio project .

the codes in my solution project that unity generates uses the namespace which will also be use in my dll.

As things are I have to be working with two identical codes in both projects . In my unity project I work with the code which should be my dll code . I just want my unity project to read the code from my class library project.

I want to delete my script from unity, have my class library project link with my solution that unity generates so that the classes in my unity project that use the namespaces existing in the dll will have access to the namespaces .

How can I do this ?

Hi, @DMDev! I use Unity 5 and VS2015 so don’t sure about previous versions. The short answer is just put your dll into assets folder and add reference to it in your unity project. After that you can add “using classlibrary” string and work with this namespace.

In more details:

1 check that your library project use 3.5 .net.

2 set the building path to your unity asset folder in project settings

3 open your unity project and add your library project to solution so it will be available each time you open a script in unity

4 after editing code in library project you need to rebuild this project to have access to changes from unity project.