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

Can not build on Windows 10 with VS2017 #836

Closed
Buzzroid opened this issue Aug 15, 2018 · 8 comments
Closed

Can not build on Windows 10 with VS2017 #836

Buzzroid opened this issue Aug 15, 2018 · 8 comments

Comments

@Buzzroid
Copy link

I'm submitting a...


[ ] Regression 
[x ] Bug report  
[ ] Feature request

I'm using these versions

  • Windows version: Windows 10 Version 1803 Build 17134.165
  • Dopamine version: latest

Reproduction steps

  • Open and Build Dopamine.sln with VS2017
  • Step 2
  • Step 3

Observed behavior

Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'Media' does not exist in the namespace 'Windows' (are you missing an assembly reference?) Dopamine D:\Player-projects\C#-Players\Dopamine-projects\Dopamine\Dopamine\Services\Notification\LegacyNotificationService.cs 11 Active

Desired behavior

Log file

@digimezzo
Copy link
Owner

Please check the compile instructions here: https://github.com/digimezzo/Dopamine

@Buzzroid
Copy link
Author

I've done what the instruction tells, but I still have the errors:

'Media' does not exist in the namespace 'Windows',
when compiling LegacyNotificationService.cs

I'm using Windows 10 (1803) and VS 2017.

@digimezzo
Copy link
Owner

digimezzo commented Aug 26, 2018

Do you have this file on you computer?

C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd

If not, please check that you copied it to that location manually (see the compile instructions).

@Buzzroid
Copy link
Author

Sorry for keep bothering you.

I'm sure that I've done what your instructions tell.
But, the error still exists.

Let me ask your environments:

  • Your Windows version
  • Your VS version

@digimezzo
Copy link
Owner

digimezzo commented Aug 28, 2018

No problem. sorry for insisting :) My Windows and VS version are exactly the same as yours.

Let's check the "Windows" dependency in the main Dopamine project:

image

It is probably broken, like in the picture (I'm getting this error also when the Windows.winmd file is not in the expected location).
Try to add a new reference to the main project

image

and browse to the Windows.winmd file. That should fix the reference

image

image

If that works, I'll add it to the compile instructions.

@Buzzroid
Copy link
Author

It works!!
Thanks a lot.

@wfs1900
Copy link

wfs1900 commented Apr 19, 2023

The Windows.winmd file shoule be located at 'C:\Program Files (x86)\Windows Kits\10\UnionMetadata', it's the reason, thanks!

@Wei-Han1108
Copy link

In my computer, Windows.winmd file is in "C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Annotated" directory. I should copy it to “C:\Program Files (x86)\Windows Kits\10\UnionMetadata”. I hope this could help others.

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

4 participants