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

UWP Systray - cannot find reference #54

Open
shimonAzulay opened this issue Nov 1, 2017 · 3 comments
Open

UWP Systray - cannot find reference #54

shimonAzulay opened this issue Nov 1, 2017 · 3 comments

Comments

@shimonAzulay
Copy link

shimonAzulay commented Nov 1, 2017

Hi, thanks for the samples. I have a reference problem in the UWP Systray sample
In SysSystrayComponent project
Windows.ApplicationModel; Windows.ApplicationModel.Core; Windows.ApplicationModel.AppService; Windows.Foundation.Collections;
Cannot be found in SystrayApplicationContext class.
Thanks

@jerriep
Copy link

jerriep commented Nov 29, 2017

I had the same problem. To fix this I had to edit the csproj file manually. Do this:

  1. Right-click on the SystrayComponent project, and select Unload Project
  2. Right-click on the project again and select Edit SystrayComponent.csproj
  3. In the project file, locate the <Reference Include="Windows"> element. Under that you will see a <HintPath> element. Point that to the correct path. In my case it looks as follows:
    <Reference Include="Windows">
      <HintPath>C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.15063.0\Windows.winmd</HintPath>
    </Reference>
    
  4. Save the project file and close it
  5. Right-click on the project again and select Reload Project*

That fixed it for me

@wickste
Copy link
Member

wickste commented Nov 29, 2017

Sorry about this guys. I have submitted a fix now.

Thanks,
Stefan Wick

@hansmbakker
Copy link

See #91 for an improved way to do this

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