dotnet-architecture / eShopOnContainers

Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor. Moved to https://github.com/dotnet/eShop.
https://dot.net/architecture
24.54k stars 10.36k forks source link

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

Closed kmusick closed 7 years ago

kmusick commented 7 years ago

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?

davidbritch commented 7 years ago

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 commented 7 years ago

Updated the .csproj for the UWP app.