Hi everyone, i need help.
Accurately i need
*1) to get paths of the referenced assemblies in the assembly*
First I got this ("the assembly")
> *
> C:\Users\usrlocal\Desktop\shell\Library\ScriptAssemblies\Assembly-CSharp.dll
> *
>
with this :
> *asemdef.MainModule.FullyQualifiedName*
>
Then I got this ("the referenced assemblies")
> *______________________________
> mscorlib
> UnityEngine
> System
> System.Core
> Mono.Cecil
> UnityEditor
> ______________________________*
>
with this :
> * AssemblyDefinition asemdef =
> AssemblyDefinition.ReadAssembly(typeToCompile.Assembly.Location);*
>
and same with this
> *foreach (var t in asemdef.MainModule.Types)
> [...]
> t.Module.AssemblyReferences*
>
*
2) to know and get accurately the referenced assemblies* in a c# script (i
am working with Unity 3D)*
*the famous "using something" which for example correspond with
"somethingMain.dll"
For example I have a script that contains :
> *using UnityEngine;
> using System.Linq;
> using System;
>
> public class ThisIsMyClass : MonoBehaviour
> {
> public static string myString = "This is my string from my class in my
> assembly";
>
> public string Stuff
> {
> get { return stuff; }
> set { stuff = value; }
> }
>
> public int LogMyString()
> {
> Debug.Log(myString);
> UnityEditor.EditorApplication.Beep();
> return 2 + 2;
> }
> }*
>
So for this script i would like to get automatically
> *______________________________
> mscorlib
> UnityEngine
> System
> UnityEditor
> ______________________________*
>
instead of
> *______________________________
> mscorlib
> UnityEngine
> System
> System.Core
> Mono.Cecil
> UnityEditor
> ______________________________*
>
Thank you for answers
--
--
--
mono-cecil
---
You received this message because you are subscribed to the Google Groups
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.