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

Cannot clone and build AppServiceBridgeSample on VM Win 10 + VS 2017 Community edition #66

Open
dannyworkingft opened this issue Jun 25, 2018 · 1 comment

Comments

@dannyworkingft
Copy link

  1. I downloaded https://developer.microsoft.com/en-us/windows/downloads/virtual-machines for VirtualBox. Unpack, import and run the VM.
  2. Run VS Installer and update to the latest version: 15.7.4
  3. Install TortoiseGit + Git and clone this repository
  4. Launch VS 2017, log in with my MSDN/VS account.
  5. Open the AppServiceBridgeSample (C#) solution and, for UWP, VS update is required, so I target the latest UWP SDK: v1803 (10.0; Build 17134).
  6. If I look at the BackgroundProcess's References, the Windows has warning icon.
  7. 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.

  1. 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
Copy link

AlonikiX commented Jul 4, 2018

I have the same issue, it seems the console project fails to reference the Windows. Have you worked it out?

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