Resolve() public method

public Resolve ( Mono.Cecil.AssemblyNameReference assemblyNameReference ) : string
assemblyNameReference Mono.Cecil.AssemblyNameReference
return string
コード例 #1
0
    string GetReferences()
    {
        var referenceFinder = new ReferenceFinder(assemblyPath, projectPath);
        var builder         = new StringBuilder();

        var assemblyNameReferences = ModuleDefinition.ReadModule(assemblyPath).AssemblyReferences;

        foreach (var assemblyNameReference in assemblyNameReferences)
        {
            builder.Append(referenceFinder.Resolve(assemblyNameReference));
            builder.Append(";");
        }
        builder.Append(referenceFinder.Resolve("System"));
        builder.Append(";");
        builder.Append(referenceFinder.Resolve("System.Core"));
        builder.Append(";");
        return(builder.ToString());
    }
コード例 #2
0
    private IEnumerable <string> GetCopyLocal()
    {
        var referenceFinder = new ReferenceFinder(assemblyPath, projectPath);

        var assemblyNameReferences = ModuleDefinition.ReadModule(assemblyPath).AssemblyReferences;

        foreach (var assemblyNameReference in assemblyNameReferences)
        {
            if (!assemblyNameReference.FullName.Contains("PreEmbed"))
            {
                yield return(referenceFinder.Resolve(assemblyNameReference));
            }
        }
    }
コード例 #3
0
    string GetReferences()
    {
        var referenceFinder = new ReferenceFinder(assemblyPath, projectPath);
        var builder = new StringBuilder();

        var assemblyNameReferences = ModuleDefinition.ReadModule(assemblyPath).AssemblyReferences;
        foreach (var assemblyNameReference in assemblyNameReferences)
        {
            builder.Append(referenceFinder.Resolve(assemblyNameReference));
            builder.Append(";");
        }
        builder.Append(referenceFinder.Resolve("System"));
        builder.Append(";");
        builder.Append(referenceFinder.Resolve("System.Core"));
        builder.Append(";");
        return builder.ToString();
    }
コード例 #4
0
    private IEnumerable<string> GetCopyLocal()
    {
        var referenceFinder = new ReferenceFinder(assemblyPath, projectPath);

        var assemblyNameReferences = ModuleDefinition.ReadModule(assemblyPath).AssemblyReferences;
        foreach (var assemblyNameReference in assemblyNameReferences)
        {
            if (!assemblyNameReference.FullName.Contains("PreEmbed"))
            {
                yield return referenceFinder.Resolve(assemblyNameReference);
            }
        }
    }