Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fixbug] CustomBridge 注入跨dll的delegate,InjectFix 时报错。 #103

Closed
wants to merge 2 commits into from

Conversation

treert
Copy link
Contributor

@treert treert commented Apr 17, 2020

同时添加下gitignore文件。
错误例子:

// 一个dll里定义这个
public delegate void TestDelegate(bool add);
// 另外一个dll,引用上面的TestDelegate
    [IFix.CustomBridge]
    public static class AdditionalBridge
    {
        static List<Type> bridge = new List<Type>()
        {
            typeof(TestDelegate),
        };
    }

Inject下面的dll时会报错:Unhandled Exception:System.ArgumentException: Member 'System.Boolean' is declared in another module and needs to be imported

@chexiongsheng
Copy link
Collaborator

gitignore是为了解决什么问题呢?

@treert
Copy link
Contributor Author

treert commented Apr 24, 2020

gitignore是为了解决什么问题呢?

不解决问题,就是方便git管理。
不加gitignore,git 命令会返回很多文件,比如git status

@chexiongsheng
Copy link
Collaborator

和本问题不相干的都别提交吧

@treert
Copy link
Contributor Author

treert commented Apr 25, 2020

和本问题不相干的都别提交吧

拆开了。

@treert treert closed this Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants