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

Resource class exists in both Caliburn.Micro.Core and Caliburn.Micro.Platform #669

Closed
KasperSK opened this issue Feb 20, 2020 · 1 comment · Fixed by #672
Closed

Resource class exists in both Caliburn.Micro.Core and Caliburn.Micro.Platform #669

KasperSK opened this issue Feb 20, 2020 · 1 comment · Fixed by #672
Labels

Comments

@KasperSK
Copy link
Member

When using the new release 4.0.105.48049 in a MonoAndroid project MSBuild complains that the class named "Resource" is defined in both Caliburn.Micro.Core and Caliburn.Micro.Platform. It gives compiler error CS0433.

If inspecting the assemblies with Jet Brains dotPeek tool it does indeed show the class in both assemblies.

The problem is that both classes are in the same namespace so the compiler does not know which one to use.

The Resource class is an auto generated class so I am assuming that some build task generated it for both Caliburn.Micro.Core and Caliburn.Micro.Platform when they where compiled for the MonoAndroid target.

I could resolve the problem by referencing the net standard version of Caliburn.Micro.Core.

I have made a small project that has the error in it: https://github.com/KasperSK/CaliburnTest

@nigel-sampson
Copy link
Contributor

Thanks for this, I've seen a similar bug in the Features examples project in this repo but haven't found a solution for it. Any help here would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants