eShopOnContainers icon indicating copy to clipboard operation
eShopOnContainers copied to clipboard

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

Open kmusick opened this issue 9 years ago • 2 comments

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 avatar May 09 '17 20:05 kmusick

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 avatar May 11 '17 15:05 davidbritch

Updated the .csproj for the UWP app.

davidbritch avatar May 12 '17 13:05 davidbritch