Skip to content
This repository has been archived by the owner on Nov 13, 2019. It is now read-only.

error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows' (are you missing an assembly reference?) #4

Open
Praveer1981 opened this issue Aug 14, 2019 · 2 comments

Comments

@Praveer1981
Copy link

Hi,
I was following the steps mentioned in readme.md->[## Building from Source]
I am not able to build BackgroundTaskRegisterer successfully.
below is the error which I got in VS2017
1>G:\Github_Downloads\electron-uwp-background\background-task-registerer\Program.cs(3,15,3,31): error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows' (are you missing an assembly reference?)
1>G:\Github_Downloads\electron-uwp-background\background-task-registerer\Program.cs(39,71,39,89): error CS0246: The type or namespace name 'IBackgroundTrigger' could not be found (are you missing a using directive or an assembly reference?)

Do I need to do any additional settings to get rid off this build error ?

@Praveer1981
Copy link
Author

Hi
Any Update on this ?

@plamenmetodiev
Copy link

plamenmetodiev commented Nov 4, 2019

Hi,

You can resolve this by clicking edit to your BackgroundTaskRegisterer.csproj file. There find the Windows reference and check the path of the file.
<Reference Include="Windows"> <HintPath>C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.16299.0\Windows.winmd</HintPath> </Reference>

This fixed it for me.

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

No branches or pull requests

2 participants