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

Xamarin UWP & Android won't build - "...Microsoft.Bcl.Build installed and packages.config..." #194

Closed
kmusick opened this issue May 9, 2017 · 2 comments
Assignees

Comments

@kmusick
Copy link

kmusick commented May 9, 2017

Master branch, Windows 10 Creators Update. Tried in both VS2017 and VS2015 with no luck.

Attempting to rebuild UWP project in the MobileApps solution gives the following build error:

Error: Could not locate C:\Development\eShopOnContainers\src\Mobile\eShopOnContainers\eShopOnContainers.Core\packages.config. Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file. (1, 1)

image

Tried the fix from stackoverflow that said to add <Properties>SkipValidatePackageReferences=true</Properties> with no luck as well.

Any guidance?

@kmusick kmusick changed the title Xamarin UWP won't build - "...Microsoft.Bcl.Build installed and packages.config..." Xamarin UWP & Android won't build - "...Microsoft.Bcl.Build installed and packages.config..." May 9, 2017
@davidbritch davidbritch self-assigned this May 10, 2017
@davidbritch
Copy link
Collaborator

davidbritch commented May 11, 2017

While VS2017 reports this error for the Android and UWP projects, it's a false error. In both cases the app builds and deploys.

Adding the Microsoft.Bcl.Build NuGet package to the UWP project doesn't help, as this package isn't required at all for UWP or any framework that supports project.json.

For peace of mind the build error can be removed by adding:

<SkipValidatePackageReferences>true</SkipValidatePackageReferences> to the first <PropertyGroup> in the appropriate .csproj.

I'll update the required .csproj files in MASTER.

@davidbritch
Copy link
Collaborator

Updated the .csproj for the UWP app.

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