Closed grahamehorner closed 7 years ago
That shouldn't happen, but sometimes, the first time you clone the code until the dependencies are properly restored you could have dependency errors. Can you try to compile project by project instead of a global re-build and see if still happens? Please, post your results here after trying further so we know the state. Thanks,
I've built each project (Services,Web) individually which worked ok; but when running the build fails; below is the results in the build output window: -
Build started ... WebSPA -> C:\DEV\eShopOnContainers\src\Web\WebSPA\bin\Debug\netcoreapp1.1\WebSPA.dll Identity.API -> C:\DEV\eShopOnContainers\src\Services\Identity\Identity.API\bin\Debug\netcoreapp1.1\Identity.API.dll docker-compose -f "C:\DEV\eShopOnContainers\docker-compose.yml" -f "C:\DEV\eShopOnContainers\docker-compose.override.yml" -f "C:\DEV\eShopOnContainers\docker-compose.vs.debug.yml" -p dockercompose3381633763 config networks: {} services: basket.api: build: args: source: obj/Docker/empty/ context: C:\DEV\eShopOnContainers\src\Services\Basket\Basket.API dockerfile: Dockerfile depends_on:
I'm not able to reproduce those errors in our dev machines.. Weird.. Looks that only the Ordering microservice is failing at runtime. Could be related to a Dependency Injection issue... not sure.. Please, first, make sure that the Ordering.API microservice compiles, including the Ordering.Domain and Ordering..Infrastructure libraries. Second, make sure that you have the Ordering.API dependencies to AutoFac right. We're using Autofac as the IoC container for the Ordering microservice in order to show a full IoC container's usage. However, the Ordering.Domain classes are not being injected, and you also get dependency errors to the Ordering.Domain.. Can you try to follow the CLI procedure and see if you get the same errors or if it works through the CLI compilation?. Here: https://github.com/dotnet/eShopOnContainers/wiki/03.-Setting-the-eShopOnContainers-solution-up-in-a-Windows-CLI-environment-(dotnet-CLI,-Docker-CLI-and-VS-Code)
@CESARDELATORRE I'm able to build each of the projects from the git repo each in turn; building the solution fails, also running after a build of the projects in turn fails; I have not changed any code or add anything to the solution, so I'm not quite sure why Autofac dependencies would be an issue or why your not able to reproduce, I am using the release version of VisualStudio 2017 if that makes any difference?
I will perform a build following the CLI on a clean developer system and report back the result
OK, so I've used a clean build development system and have cloned the git repo and used docker to build; getting the following error: -
...\eShopOnContainers>Docker-compose -f docker-compose.ci.build.yml up ERROR: client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
however docker is reporting that I have the current version and no updates are available ?
..\eShopOnContainers>docker-compose version docker-compose version 1.11.2, build f963d76f docker-py version: 2.1.0 CPython version: 2.7.13 OpenSSL version: OpenSSL 1.0.2j 26 Sep 2016
..\eShopOnContainers>docker version Client: Version: 17.03.0-ce API version: 1.26 Go version: go1.7.5 Git commit: 60ccb22 Built: Thu Feb 23 10:40:59 2017 OS/Arch: windows/amd64
Server: Version: 17.03.0-ce API version: 1.26 (minimum version 1.24) Go version: go1.7.5 Git commit: 60ccb22 Built: Thu Feb 23 10:40:59 2017 OS/Arch: windows/amd64 Experimental: true
Are you able to build, deploy and run to your Docker host other different Docker projects that eShopOnContainers, like if you create a brand new ASP.NET Core web app in VS 2017? Looks like a particular environment issue, we're not able to reproduce your issues in our tests. IT is currently working and deploying in quite a few machines we're working on. I'll do some more tests over the weekend trying to reproduce your errors, though. Thanks for your feedback, I hope it can be solve soon! :)
other docker ASP.NET core applications work fine; but I'm assisting at present with a docker issues with volume sharing; the issues may docker related which is odd given the error message I've seen ?
ok after working with docker about the issue, looks like the corporate VPN software (checkpoint VPN) was causing some issues even when not connection to the VPN ? everything now builds
Client: Version: 17.03.0-ce API version: 1.26 Go version: go1.7.5 Git commit: 60ccb22 Built: Thu Feb 23 10:40:59 2017 OS/Arch: windows/amd64
Server: Version: 17.03.0-ce API version: 1.26 (minimum version 1.12) Go version: go1.7.5 Git commit: 3a232c8 Built: Tue Feb 28 07:52:04 2017 OS/Arch: linux/amd64 Experimental: true
C:\DEV\eShopOnContainers>docker-compose -f docker-compose.ci.build.yml up Creating network "eshoponcontainers_default" with the default driver Pulling ci-build (microsoft/aspnetcore-build:1.0-1.1)... 1.0-1.1: Pulling from microsoft/aspnetcore-build 693502eb7dfb: Pull complete 081cd4bfd521: Pull complete 5d2dc01312f3: Pull complete 585880aea240: Pull complete 3905d0c644ea: Pull complete c59037c90022: Pull complete 2e88f58b12c5: Pull complete 4ee4f569b7ba: Pull complete bfa5b3e57cc1: Pull complete 0e3ed557407d: Pull complete 58c690812cef: Pull complete Digest: sha256:449c7516dc01c0949636a89cccc6435f36d0a2dc19d411e4f1d848d7d7eadbc9 Status: Downloaded newer image for microsoft/aspnetcore-build:1.0-1.1 Creating eshoponcontainers_ci-build_1 Attaching to eshoponcontainers_ci-build_1 ci-build_1 | /src/src/Web/WebSPA /src ci-build_1 | /src /src/src/Web/WebSPA /src ci-build_1 | Restoring packages for /src/src/Services/Catalog/Catalog.API/Catalog.API.csproj... ci-build_1 | Restoring packages for /src/src/Services/Basket/Basket.API/Basket.API.csproj... ci-build_1 | Installing Microsoft.AspNetCore.DataProtection.Abstractions 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Cryptography.Internal 1.1.0. ci-build_1 | Installing Microsoft.DotNet.PlatformAbstractions 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Razor 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Localization.Abstractions 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Routing.Abstractions 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Cryptography.Internal 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.DataProtection.Abstractions 1.0.0. ci-build_1 | Installing Microsoft.Extensions.ObjectPool 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.WebUtilities 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.DataProtection 1.1.0. ci-build_1 | Installing Microsoft.Extensions.DependencyModel 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.ResponseCaching.Abstractions 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Authorization 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Routing 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Abstractions 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Options 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Razor.Runtime 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Localization.Abstractions 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Globalization.CultureInfoCache 1.1.0. ci-build_1 | Installing Microsoft.Extensions.WebEncoders 1.0.0. ci-build_1 | Installing Microsoft.Extensions.Localization 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Routing 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Abstractions 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Authorization 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Http 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Cors 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Antiforgery 1.1.0. ci-build_1 | Installing Microsoft.Extensions.WebEncoders 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Html.Abstractions 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.JsonPatch 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Core 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Razor.Host 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Localization 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Localization 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Routing.Abstractions 1.1.0. ci-build_1 | Installing Microsoft.Extensions.FileProviders.Embedded 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.StaticFiles 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.DataAnnotations 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.ApiExplorer 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Core 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Formatters.Json 1.0.0. ci-build_1 | Installing Microsoft.NETCore.Jit 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Caching.Abstractions 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.DataAnnotations 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Cors 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.ViewFeatures 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Formatters.Json 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.ApiExplorer 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Razor 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Localization 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.TagHelpers 1.1.0. ci-build_1 | Installing Swashbuckle.SwaggerUi 6.0.0-beta902. ci-build_1 | Installing Swashbuckle.SwaggerGen 6.0.0-beta902. ci-build_1 | Installing Swashbuckle.Swagger 6.0.0-beta902. ci-build_1 | Installing Microsoft.DiaSymReader.Native 1.4.0. ci-build_1 | Installing Microsoft.NETCore.Runtime.CoreCLR 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Caching.Memory 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Hosting 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Http 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.HttpOverrides 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.WebUtilities 1.1.0. ci-build_1 | Installing Microsoft.EntityFrameworkCore.Relational.Design 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Configuration.Binder 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Options 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Configuration 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc 1.1.0. ci-build_1 | Installing Swashbuckle 6.0.0-beta902. ci-build_1 | Installing Microsoft.NETCore.App 1.1.0. ci-build_1 | Installing Microsoft.EntityFrameworkCore 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Server.Kestrel 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Server.IISIntegration 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Diagnostics 1.1.0. ci-build_1 | Installing Microsoft.EntityFrameworkCore.Design 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Options.ConfigurationExtensions 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Configuration.FileExtensions 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Configuration.EnvironmentVariables 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Configuration.Json 1.1.0. ci-build_1 | Installing Microsoft.EntityFrameworkCore.Relational 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Logging.Debug 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Configuration.UserSecrets 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Diagnostics.Abstractions 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Logging.Console 1.1.0. ci-build_1 | Installing Microsoft.EntityFrameworkCore.SqlServer 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Logging 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.DataProtection 1.0.0. ci-build_1 | Installing Microsoft.Extensions.Caching.Abstractions 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Authentication 1.0.0. ci-build_1 | Installing IdentityModel 2.0.0. ci-build_1 | Installing Microsoft.Extensions.Caching.Memory 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Authentication.JwtBearer 1.0.0. ci-build_1 | Installing IdentityModel.AspNetCore.OAuth2Introspection 1.0.1. ci-build_1 | Installing IdentityModel.AspNetCore.ScopeValidation 1.0.0. ci-build_1 | Installing IdentityServer4.AccessTokenValidation 1.0.1-rc3. ci-build_1 | Installing StackExchange.Redis 1.1.608. ci-build_1 | Generating MSBuild file /src/src/Services/Basket/Basket.API/obj/Basket.API.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/src/Services/Basket/Basket.API/obj/Basket.API.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/src/Services/Basket/Basket.API/obj/project.assets.json ci-build_1 | Restore completed in 8.81 sec for /src/src/Services/Basket/Basket.API/Basket.API.csproj. ci-build_1 | Restoring packages for /src/src/Services/Identity/Identity.API/Identity.API.csproj... ci-build_1 | Generating MSBuild file /src/src/Services/Catalog/Catalog.API/obj/Catalog.API.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/src/Services/Catalog/Catalog.API/obj/Catalog.API.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/src/Services/Catalog/Catalog.API/obj/project.assets.json ci-build_1 | Restore completed in 10.14 sec for /src/src/Services/Catalog/Catalog.API/Catalog.API.csproj. ci-build_1 | Restoring packages for /src/src/Services/Ordering/Ordering.API/Ordering.API.csproj... ci-build_1 | Installing Microsoft.AspNetCore.Http.Abstractions 1.0.1. ci-build_1 | Installing Microsoft.Net.Http.Headers 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.WebUtilities 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Http.Features 1.0.1. ci-build_1 | Installing Microsoft.Extensions.Configuration.Abstractions 1.0.1. ci-build_1 | Installing Microsoft.Extensions.DependencyInjection.Abstractions 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Http.Extensions 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Hosting.Abstractions 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Http 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Hosting.Server.Abstractions 1.0.1. ci-build_1 | Installing Microsoft.Extensions.Configuration 1.0.1. ci-build_1 | Installing Microsoft.Extensions.DependencyInjection 1.0.1. ci-build_1 | Installing Microsoft.Extensions.Options 1.0.1. ci-build_1 | Installing Microsoft.Extensions.Logging 1.0.1. ci-build_1 | Installing Autofac 4.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Hosting 1.0.1. ci-build_1 | Installing Microsoft.EntityFrameworkCore.SqlServer.Design 1.1.0. ci-build_1 | Installing MediatR.Extensions.Microsoft.DependencyInjection 1.1.0. ci-build_1 | Installing Dapper 1.50.2. ci-build_1 | Installing Microsoft.AspNetCore.Server.Kestrel 1.0.2. ci-build_1 | Installing System.ValueTuple 4.3.0. ci-build_1 | Installing MediatR 2.1.0. ci-build_1 | Installing Autofac.Extensions.DependencyInjection 4.0.0. ci-build_1 | Generating MSBuild file /src/src/Services/Ordering/Ordering.API/obj/Ordering.API.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/src/Services/Ordering/Ordering.API/obj/Ordering.API.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/src/Services/Ordering/Ordering.API/obj/project.assets.json ci-build_1 | Restore completed in 3.84 sec for /src/src/Services/Ordering/Ordering.API/Ordering.API.csproj. ci-build_1 | Restoring packages for /src/src/Services/Ordering/Ordering.Domain/Ordering.Domain.csproj... ci-build_1 | Generating MSBuild file /src/src/Services/Ordering/Ordering.Domain/obj/Ordering.Domain.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/src/Services/Ordering/Ordering.Domain/obj/Ordering.Domain.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/src/Services/Ordering/Ordering.Domain/obj/project.assets.json ci-build_1 | Restore completed in 155.85 ms for /src/src/Services/Ordering/Ordering.Domain/Ordering.Domain.csproj. ci-build_1 | Restoring packages for /src/src/Services/Ordering/Ordering.Infrastructure/Ordering.Infrastructure.csproj... ci-build_1 | Generating MSBuild file /src/src/Services/Ordering/Ordering.Infrastructure/obj/Ordering.Infrastructure.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/src/Services/Ordering/Ordering.Infrastructure/obj/Ordering.Infrastructure.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/src/Services/Ordering/Ordering.Infrastructure/obj/project.assets.json ci-build_1 | Restore completed in 234.57 ms for /src/src/Services/Ordering/Ordering.Infrastructure/Ordering.Infrastructure.csproj. ci-build_1 | Restoring packages for /src/src/Web/WebMVC/WebMVC.csproj... ci-build_1 | Installing Microsoft.Composition 1.0.27. ci-build_1 | Installing Microsoft.CodeAnalysis.Workspaces.Common 1.3.0. ci-build_1 | Installing Microsoft.CodeAnalysis.CSharp.Workspaces 1.3.0. ci-build_1 | Installing NuGet.Frameworks 3.5.0-rc1-final. ci-build_1 | Installing Microsoft.Extensions.CommandLineUtils 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Cryptography.KeyDerivation 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Cryptography.KeyDerivation 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Cors 1.0.0. ci-build_1 | Installing Microsoft.Extensions.DependencyInjection 1.0.0. ci-build_1 | Installing Microsoft.EntityFrameworkCore.Relational.Design 1.0.1. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.Utils 1.1.0-msbuild3-final. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration 1.1.0-msbuild3-final. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.Core 1.1.0-msbuild3-final. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGenerators.Mvc 1.1.0-msbuild3-final. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore 1.1.0-msbuild3-final. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.Templating 1.1.0-msbuild3-final. ci-build_1 | Installing Microsoft.AspNetCore.Identity 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Identity 1.0.0. ci-build_1 | Installing IdentityServer4 1.0.0-rc3. ci-build_1 | Installing AutoMapper 5.1.1. ci-build_1 | Installing Microsoft.EntityFrameworkCore 1.0.1. ci-build_1 | Installing Microsoft.EntityFrameworkCore.Relational 1.0.1. ci-build_1 | Installing Microsoft.EntityFrameworkCore.Design 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Authentication 1.1.0. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.Design 1.1.0-msbuild3-final. ci-build_1 | Installing Microsoft.AspNetCore.Identity.EntityFrameworkCore 1.1.0. ci-build_1 | Installing IdentityServer4.AspNetIdentity 1.0.0-rc3. ci-build_1 | Installing IdentityServer4.EntityFramework 1.0.0-rc3. ci-build_1 | Installing Microsoft.EntityFrameworkCore.Tools 1.0.0-msbuild3-final. ci-build_1 | Installing Microsoft.AspNetCore.Authentication.Cookies 1.1.0. ci-build_1 | Installing Microsoft.VisualStudio.Web.BrowserLink.Loader 14.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.StaticFiles 1.1.0. ci-build_1 | Installing Microsoft.Extensions.Configuration 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Abstractions 1.1.1. ci-build_1 | Installing Microsoft.IdentityModel.Logging 1.1.0. ci-build_1 | Installing Microsoft.EntityFrameworkCore.SqlServer 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Hosting 1.0.0. ci-build_1 | Installing Microsoft.Extensions.CommandLineUtils 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Razor 1.0.0. ci-build_1 | Installing Microsoft.IdentityModel.Protocols 2.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Core 1.1.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Razor.Host 1.1.1. ci-build_1 | Installing Microsoft.IdentityModel.Tokens 5.1.0. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.Utils 1.0.0-msbuild3-final. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.EntityFrameworkCore 1.0.0-msbuild3-final. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.Core 1.0.0-msbuild3-final. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration 1.0.0-msbuild3-final. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.Templating 1.0.0-msbuild3-final. ci-build_1 | Generating MSBuild file /src/src/Services/Identity/Identity.API/obj/Identity.API.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/src/Services/Identity/Identity.API/obj/Identity.API.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/src/Services/Identity/Identity.API/obj/project.assets.json ci-build_1 | Restore completed in 10.07 sec for /src/src/Services/Identity/Identity.API/Identity.API.csproj. ci-build_1 | Restoring packages for /src/src/Web/WebSPA/WebSPA.csproj... ci-build_1 | Installing Microsoft.AspNetCore.Mvc 1.1.1. ci-build_1 | Installing Microsoft.AspNetCore.Authentication.JwtBearer 1.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Authentication.OpenIdConnect 1.1.0. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.Design 1.0.0-msbuild3-final. ci-build_1 | Installing System.IdentityModel.Tokens.Jwt 5.1.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Localization 1.1.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.TagHelpers 1.1.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Razor 1.1.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Formatters.Json 1.1.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.ApiExplorer 1.1.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Cors 1.1.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.DataAnnotations 1.1.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.ViewFeatures 1.1.1. ci-build_1 | Installing Microsoft.IdentityModel.Protocols.OpenIdConnect 2.1.0. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGenerators.Mvc 1.0.0-msbuild3-final. ci-build_1 | Generating MSBuild file /src/src/Web/WebMVC/obj/WebMVC.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/src/Web/WebMVC/obj/WebMVC.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/src/Web/WebMVC/obj/project.assets.json ci-build_1 | Restore completed in 5.89 sec for /src/src/Web/WebMVC/WebMVC.csproj. ci-build_1 | Restoring packages for /src/test/Services/FunctionalTests/FunctionalTests.csproj... ci-build_1 | Installing xunit.abstractions 2.0.1. ci-build_1 | Installing System.ComponentModel.EventBasedAsync 4.0.11. ci-build_1 | Installing System.Xml.XPath.XmlDocument 4.0.1. ci-build_1 | Installing System.Diagnostics.TextWriterTraceListener 4.0.0. ci-build_1 | Installing xunit.extensibility.core 2.2.0-beta5-build3474. ci-build_1 | Installing xunit.extensibility.execution 2.2.0-beta5-build3474. ci-build_1 | Installing Microsoft.TestPlatform.ObjectModel 15.0.0-preview-20170106-08. ci-build_1 | Installing xunit.core 2.2.0-beta5-build3474. ci-build_1 | Installing xunit.assert 2.2.0-beta5-build3474. ci-build_1 | Installing Microsoft.TestPlatform.TestHost 15.0.0-preview-20170106-08. ci-build_1 | Installing Microsoft.TestPlatform.ObjectModel 11.0.0. ci-build_1 | Installing xunit 2.2.0-beta5-build3474. ci-build_1 | Installing Microsoft.NET.Test.Sdk 15.0.0-preview-20170106-08. ci-build_1 | Installing xunit.runner.visualstudio 2.2.0-beta5-build1225. ci-build_1 | Installing Microsoft.AspNetCore.TestHost 1.1.0. ci-build_1 | Generating MSBuild file /src/test/Services/FunctionalTests/obj/FunctionalTests.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/test/Services/FunctionalTests/obj/FunctionalTests.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/test/Services/FunctionalTests/obj/project.assets.json ci-build_1 | Restore completed in 6.49 sec for /src/test/Services/FunctionalTests/FunctionalTests.csproj. ci-build_1 | Restoring packages for /src/test/Services/IntegrationTests/IntegrationTests.csproj... ci-build_1 | Installing Castle.Core 4.0.0-beta001. ci-build_1 | Installing Moq 4.6.38-alpha. ci-build_1 | Generating MSBuild file /src/test/Services/IntegrationTests/obj/IntegrationTests.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/test/Services/IntegrationTests/obj/IntegrationTests.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/test/Services/IntegrationTests/obj/project.assets.json ci-build_1 | Restore completed in 6.03 sec for /src/test/Services/IntegrationTests/IntegrationTests.csproj. ci-build_1 | Restoring packages for /src/test/Services/UnitTest/UnitTest.csproj... ci-build_1 | Installing System.Text.Encoding 4.0.0. ci-build_1 | Installing System.IO 4.0.0. ci-build_1 | Installing System.Reflection.Primitives 4.0.0. ci-build_1 | Installing System.Linq.Expressions 4.0.0. ci-build_1 | Installing System.ObjectModel 4.0.0. ci-build_1 | Installing System.Reflection 4.0.0. ci-build_1 | Installing System.Globalization 4.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Abstractions 1.0.1. ci-build_1 | Installing System.Dynamic.Runtime 4.0.0. ci-build_1 | Installing System.Resources.ResourceManager 4.0.0. ci-build_1 | Installing System.Runtime 4.0.0. ci-build_1 | Installing System.Threading.Tasks 4.0.0. ci-build_1 | Installing System.Runtime.Extensions 4.0.0. ci-build_1 | Installing System.Collections.Concurrent 4.0.0. ci-build_1 | Installing System.Collections 4.0.0. ci-build_1 | Installing System.Threading 4.0.0. ci-build_1 | Installing Webpack 3.0.0. ci-build_1 | Installing Microsoft.AspNetCore.AngularServices 1.0.0-beta-000014. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.TagHelpers 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.SpaServices 1.0.0-beta-000014. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Razor 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.NodeServices 1.0.0-beta-000014. ci-build_1 | Installing Microsoft.Extensions.FileProviders.Composite 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Razor.Host 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.ViewFeatures 1.0.1. ci-build_1 | Installing System.Threading.Tasks.Dataflow 4.5.25. ci-build_1 | Installing Microsoft.AspNetCore.Razor.Runtime 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Formatters.Json 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Html.Abstractions 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Diagnostics.Abstractions 1.0.0. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.DataAnnotations 1.0.1. ci-build_1 | Installing Microsoft.AspNetCore.Mvc.Core 1.0.1. ci-build_1 | Installing System.Linq 4.0.0. ci-build_1 | Installing System.Diagnostics.Tracing 4.0.0. ci-build_1 | Installing System.Diagnostics.Debug 4.0.0. ci-build_1 | Generating MSBuild file /src/src/Web/WebSPA/obj/WebSPA.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/src/Web/WebSPA/obj/WebSPA.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/src/Web/WebSPA/obj/project.assets.json ci-build_1 | Restore completed in 18.26 sec for /src/src/Web/WebSPA/WebSPA.csproj. ci-build_1 | Restoring packages for /src/src/Services/Identity/Identity.API/Identity.API.csproj... ci-build_1 | Generating MSBuild file /src/test/Services/UnitTest/obj/UnitTest.csproj.nuget.g.props. ci-build_1 | Generating MSBuild file /src/test/Services/UnitTest/obj/UnitTest.csproj.nuget.g.targets. ci-build_1 | Writing lock file to disk. Path: /src/test/Services/UnitTest/obj/project.assets.json ci-build_1 | Restore completed in 4.44 sec for /src/test/Services/UnitTest/UnitTest.csproj. ci-build_1 | Restoring packages for /src/src/Web/WebSPA/WebSPA.csproj... ci-build_1 | Installing Microsoft.NETCore.Jit 1.0.4. ci-build_1 | Installing Microsoft.NETCore.Runtime.CoreCLR 1.0.4. ci-build_1 | Installing Microsoft.NETCore.DotNetHostPolicy 1.0.1. ci-build_1 | Installing NUglify 1.5.5. ci-build_1 | Installing BundlerMinifier.Core 2.4.337. ci-build_1 | Restore completed in 2.01 sec for /src/src/Services/Identity/Identity.API/Identity.API.csproj. ci-build_1 | Restoring packages for /src/src/Services/Catalog/Catalog.API/Catalog.API.csproj... ci-build_1 | Installing Microsoft.NETCore.Jit 1.0.2. ci-build_1 | Installing Microsoft.NETCore.Runtime.CoreCLR 1.0.2. ci-build_1 | Installing Microsoft.DotNet.Watcher.Tools 1.0.0-msbuild3-final. ci-build_1 | Installing Microsoft.NETCore.App 1.0.0. ci-build_1 | Restore completed in 2.13 sec for /src/src/Web/WebSPA/WebSPA.csproj. ci-build_1 | Restoring packages for /src/src/Services/Identity/Identity.API/Identity.API.csproj... ci-build_1 | Installing Microsoft.EntityFrameworkCore.Tools.DotNet 1.0.0. ci-build_1 | Restore completed in 588.52 ms for /src/src/Services/Catalog/Catalog.API/Catalog.API.csproj. ci-build_1 | Restoring packages for /src/src/Web/WebMVC/WebMVC.csproj... ci-build_1 | Installing Microsoft.EntityFrameworkCore.Tools.DotNet 1.0.0-msbuild3-final. ci-build_1 | Restore completed in 708.48 ms for /src/src/Services/Identity/Identity.API/Identity.API.csproj. ci-build_1 | Restoring packages for /src/src/Web/WebSPA/WebSPA.csproj... ci-build_1 | Installing Microsoft.Extensions.Configuration.FileExtensions 1.0.1. ci-build_1 | Installing Microsoft.Extensions.Configuration.Json 1.0.1. ci-build_1 | Installing Microsoft.Extensions.Configuration.UserSecrets 1.0.1. ci-build_1 | Installing Microsoft.Extensions.SecretManager.Tools 1.0.0-msbuild3-final. ci-build_1 | Restore completed in 2.68 sec for /src/src/Web/WebMVC/WebMVC.csproj. ci-build_1 | Installing NuGet.Packaging.Core.Types 3.5.0-beta2-1484. ci-build_1 | Installing NuGet.Packaging.Core 3.5.0-beta2-1484. ci-build_1 | Installing NuGet.Common 3.5.0-beta2-1484. ci-build_1 | Installing NuGet.Versioning 3.5.0-beta2-1484. ci-build_1 | Installing NuGet.Frameworks 3.5.0-beta2-1484. ci-build_1 | Installing System.Runtime.Serialization.Xml 4.1.1. ci-build_1 | Installing System.Resources.Writer 4.0.0. ci-build_1 | Installing NuGet.Packaging 3.5.0-beta2-1484. ci-build_1 | Installing NuGet.RuntimeModel 3.5.0-beta2-1484. ci-build_1 | Installing Microsoft.Build.Utilities.Core 15.1.0-preview-000458-02. ci-build_1 | Installing Microsoft.Build.Tasks.Core 15.1.0-preview-000458-02. ci-build_1 | Installing Microsoft.Build.Framework 15.1.0-preview-000458-02. ci-build_1 | Installing Microsoft.Build 15.1.0-preview-000458-02. ci-build_1 | Installing Microsoft.DotNet.ProjectModel 1.0.0-rc3-003121. ci-build_1 | Installing Microsoft.Build.Runtime 15.1.0-preview-000458-02. ci-build_1 | Installing Microsoft.VisualStudio.Web.CodeGeneration.Tools 1.0.0-msbuild3-final. ci-build_1 | Restore completed in 4.88 sec for /src/src/Web/WebSPA/WebSPA.csproj. ci-build_1 | ci-build_1 | NuGet Config files used: ci-build_1 | /src/nuget.config ci-build_1 | /root/.nuget/NuGet/NuGet.Config ci-build_1 | ci-build_1 | Feeds used: ci-build_1 | https://dotnet.myget.org/F/aspnet-feb2017-patch/api/v3/index.json ci-build_1 | https://api.nuget.org/v3/index.json ci-build_1 | ci-build_1 | Installed: ci-build_1 | 88 package(s) to /src/src/Services/Basket/Basket.API/Basket.API.csproj ci-build_1 | 88 package(s) to /src/src/Services/Catalog/Catalog.API/Catalog.API.csproj ci-build_1 | 115 package(s) to /src/src/Services/Ordering/Ordering.API/Ordering.API.csproj ci-build_1 | 7 package(s) to /src/src/Services/Ordering/Ordering.Infrastructure/Ordering.Infrastructure.csproj ci-build_1 | 112 package(s) to /src/src/Services/Identity/Identity.API/Identity.API.csproj ci-build_1 | 109 package(s) to /src/src/Web/WebMVC/WebMVC.csproj ci-build_1 | 154 package(s) to /src/test/Services/FunctionalTests/FunctionalTests.csproj ci-build_1 | 135 package(s) to /src/test/Services/IntegrationTests/IntegrationTests.csproj ci-build_1 | 153 package(s) to /src/src/Web/WebSPA/WebSPA.csproj ci-build_1 | 161 package(s) to /src/test/Services/UnitTest/UnitTest.csproj ci-build_1 | Microsoft (R) Build Engine version 15.1.548.43366 ci-build_1 | Copyright (C) Microsoft Corporation. All rights reserved. ci-build_1 | ci-build_1 | Basket.API -> /src/src/Services/Basket/Basket.API/bin/Release/netcoreapp1.1/Basket.API.dll ci-build_1 | Catalog.API -> /src/src/Services/Catalog/Catalog.API/bin/Release/netcoreapp1.1/Catalog.API.dll ci-build_1 | AggregatesModel/BuyerAggregate/PaymentMethod.cs(9,21): warning CS0169: The field 'PaymentMethod._buyerId' is never used [/src/src/Services/Ordering/Ordering.Domain/Ordering.Domain.csproj] ci-build_1 | AggregatesModel/OrderAggregate/OrderItem.cs(14,25): warning CS0169: The field 'OrderItem._orderId' is never used [/src/src/Services/Ordering/Ordering.Domain/Ordering.Domain.csproj] ci-build_1 | Ordering.Domain -> /src/src/Services/Ordering/Ordering.Domain/bin/Release/netstandard1.6.1/Ordering.Domain.dll ci-build_1 | WebMVC -> /src/src/Web/WebMVC/bin/Release/netcoreapp1.1/WebMVC.dll ci-build_1 | Bundling with configuration from /src/src/Web/WebMVC/bundleconfig.json ci-build_1 | Processing wwwroot/css/site.min.css ci-build_1 | Processing wwwroot/js/site.min.js ci-build_1 | Identity.API -> /src/src/Services/Identity/Identity.API/bin/Release/netcoreapp1.1/Identity.API.dll ci-build_1 | Bundling with configuration from /src/src/Services/Identity/Identity.API/bundleconfig.json ci-build_1 | Processing wwwroot/css/site.min.css ci-build_1 | Processing wwwroot/js/site.min.js ci-build_1 | WebSPA -> /src/src/Web/WebSPA/bin/Release/netcoreapp1.1/WebSPA.dll
Awesome! closing this issue, then.
more build issues using docker-compose ? ci-build_1 | /usr/share/dotnet/sdk/1.0.1/Sdks/Microsoft.NET.Sdk/build/Microsoft.NET.Publish.targets(100,5): error MSB3030: Could not copy the file "/src/src/Web/WebSPA/wwwroot/dist/main.6304a07ff3224e9baeb1.bundle.js" because it was not found. [/src/src/Web/WebSPA/WebSPA.csproj] ci-build_1 | /usr/share/dotnet/sdk/1.0.1/Sdks/Microsoft.NET.Sdk/build/Microsoft.NET.Publish.targets(100,5): error MSB3030: Could not copy the file "/src/src/Web/WebSPA/wwwroot/dist/main.6304a07ff3224e9baeb1.bundle.map" because it was not found. [/src/src/Web/WebSPA/WebSPA.csproj] ci-build_1 | Ordering.Infrastructure -> /src/src/Services/Ordering/Ordering.Infrastructure/bin/Release/netstandard1.6.1/Ordering.Infrastructure.dll
I've followed the instruction at https://github.com/dotnet/eShopOnContainers/wiki/02.-Setting-eShopOnContainer-solution-up-in-a-Visual-Studio-2017-environment. The project fails to build, with 205 errors, I believe the below may be the root cause.
Severity Code Description Project File Line Suppression State Error Assets file 'C:\DEV\eShopOnContainers\src\Services\Ordering\Ordering.Infrastructure\obj\project.assets.json' doesn't have a target for '.NETStandard,Version=v1.6.1'. Ensure you have restored this project for TargetFramework='netstandard1.6.1' and RuntimeIdentifier=''. C:\DEV\eShopOnContainers\src\Services\Ordering\Ordering.Infrastructure\Ordering.Infrastructure.csproj C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.targets 92
Error Cannot find project info for 'C:\DEV\eShopOnContainers\src\Services\Ordering\Ordering.Domain\Ordering.Domain.csproj'. This can indicate a missing project reference. C:\DEV\eShopOnContainers\src\Services\Ordering\Ordering.API\Ordering.API.csproj C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.targets 92