Cannot clone and build AppServiceBridgeSample on VM Win 10 + VS 2017 Community edition
dannyworkingft opened this issue · 1 comments
dannyworkingft commented
- I downloaded https://developer.microsoft.com/en-us/windows/downloads/virtual-machines for VirtualBox. Unpack, import and run the VM.
- Run VS Installer and update to the latest version: 15.7.4
- Install TortoiseGit + Git and clone this repository
- Launch VS 2017, log in with my MSDN/VS account.
- Open the AppServiceBridgeSample (C#) solution and, for UWP, VS update is required, so I target the latest UWP SDK: v1803 (10.0; Build 17134).
- If I look at the BackgroundProcess's References, the Windows has warning icon.
- When I build it [Config: DEBUG; CPU: Any], then it reports 5 errors:
Severity Code Description Project File Line Suppression State
Error CS0234 The type or namespace name 'Collections' does not exist in the namespace 'Windows.Foundation' (are you missing an assembly reference?) BackgroundProcess C:\git\DesktopBridgeToUWP-Samples\Samples\AppServiceBridgeSample\cs2\BackgroundProcess\Program.cs 16 Active
Error CS0234 The type or namespace name 'ApplicationModel' does not exist in the namespace 'Windows' (are you missing an assembly reference?) BackgroundProcess C:\git\DesktopBridgeToUWP-Samples\Samples\AppServiceBridgeSample\cs2\BackgroundProcess\Program.cs 17 Active
Error CS0246 The type or namespace name 'AppServiceConnection' could not be found (are you missing a using directive or an assembly reference?) BackgroundProcess C:\git\DesktopBridgeToUWP-Samples\Samples\AppServiceBridgeSample\cs2\BackgroundProcess\Program.cs 23 Active
Error CS0246 The type or namespace name 'AppServiceConnection' could not be found (are you missing a using directive or an assembly reference?) BackgroundProcess C:\git\DesktopBridgeToUWP-Samples\Samples\AppServiceBridgeSample\cs2\BackgroundProcess\Program.cs 79 Active
Error CS0246 The type or namespace name 'AppServiceRequestReceivedEventArgs' could not be found (are you missing a using directive or an assembly reference?) BackgroundProcess C:\git\DesktopBridgeToUWP-Samples\Samples\AppServiceBridgeSample\cs2\BackgroundProcess\Program.cs 79 Active
On my desktop, I have VS 2017 Pro, and I'm able to clone and build with no error.
- I tried to reference C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade\Windows.WinMD
which reduced the errors down to 3:
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'AppServiceConnection' could not be found (are you missing a using directive or an assembly reference?) BackgroundProcess C:\git\DesktopBridgeToUWP-Samples\Samples\AppServiceBridgeSample\cs\BackgroundProcess\Program.cs 23 Active
Error CS0246 The type or namespace name 'AppServiceConnection' could not be found (are you missing a using directive or an assembly reference?) BackgroundProcess C:\git\DesktopBridgeToUWP-Samples\Samples\AppServiceBridgeSample\cs\BackgroundProcess\Program.cs 79 Active
Error CS0246 The type or namespace name 'AppServiceRequestReceivedEventArgs' could not be found (are you missing a using directive or an assembly reference?) BackgroundProcess C:\git\DesktopBridgeToUWP-Samples\Samples\AppServiceBridgeSample\cs\BackgroundProcess\Program.cs 79 Active
9.When I copy over the folder [which built OK] from my desktop to VM, then it builds OK, too.
[10. I made changes to this solution and when I check in and out from repository, I get the same build problems on VM but not my desktop.]
So, my questions are: is this problem specific to VS2017 Community edition or just VM issue [only on VirtualBox?]? Or is there some setup/config needed that's missing in the VM environment?
AlonikiX commented
I have the same issue, it seems the console project fails to reference the Windows. Have you worked it out?