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

Type is defined in an assembly that is not referenced…” #31

Open
AntoineBore opened this issue Jul 10, 2019 · 1 comment
Open

Type is defined in an assembly that is not referenced…” #31

AntoineBore opened this issue Jul 10, 2019 · 1 comment

Comments

@AntoineBore
Copy link

AntoineBore commented Jul 10, 2019

Hi,

When I try to generate the project, I have the error : "The type 'IBuffer' is defined in an assembly that is not referenced. You must add a reference to assembly 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'."

But when I try to resolve it by following this, I have the following error :
CS0433 C# The type exists in both and 'Windows, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'

What should I do ?

@AntoineBore AntoineBore changed the title Unable to open the project Type is defined in an assembly that is not referenced…” Jul 10, 2019
@MikeCley
Copy link

MikeCley commented Oct 7, 2022

If your code contains .ToArray() it probably case when studio magically added "using System.Runtime.InteropServices.WindowsRuntime". Remove it.

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

No branches or pull requests

2 participants