You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
There seems to be some issue with building the CheckoutService using 1.1.2-sdk. I didn't spend enough time checking what is going on, usually something in csproj is at fault. Below are the steps I followed.
I have the latest master cloned (hash 81af523).
From clone directory I tried to do docker-compose -f .\docker-compose.dev.yml build, and I noticed the CheckoutService does not build.
I moved to the checkoutService directory and ran docker build -t checkout:latest .
Still the build broke.
Installing MongoDB.Driver.Core 2.4.3.
Generating MSBuild file /app/obj/CheckoutService.csproj.nuget.g.props.
Generating MSBuild file /app/obj/CheckoutService.csproj.nuget.g.targets.
Restore completed in 5.48 sec for /app/CheckoutService.csproj.
---> 3c29412175d6
Removing intermediate container 413264aef346
Step 5/7 : COPY . ./
---> 505be56cc6c3
Removing intermediate container 1c17d5ea9ecd
Step 6/7 : RUN dotnet publish -c Release -o out
---> Running in b88f2cc309c3
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
/usr/share/dotnet/sdk/1.1.0/Sdks/Microsoft.NET.Sdk/build/Microsoft.PackageDependencyResolution.targets(308,5): error : Assets file
'/app/c:/prj/react/StickerApp/checkoutService/obj/project.assets.json' not found. Run a NuGet package restore to generate this file
. [/app/CheckoutService.csproj]
/usr/share/dotnet/sdk/1.1.0/Sdks/Microsoft.NET.Sdk/build/Microsoft.PackageDependencyResolution.targets(157,5): error : Assets file
'/app/c:/prj/react/StickerApp/checkoutService/obj/project.assets.json' not found. Run a NuGet package restore to generate this file
. [/app/CheckoutService.csproj]
/tmp/.NETCoreApp,Version=v1.1.AssemblyAttributes.cs(4,20): error CS0400: The type or namespace name 'System' could not be found in
the global namespace (are you missing an assembly reference?) [/app/CheckoutService.csproj]
obj/Release/netcoreapp1.1/CheckoutService.AssemblyInfo.cs(10,12): error CS0246: The type or namespace name 'System' could not be fo
und (are you missing a using directive or an assembly reference?) [/app/CheckoutService.csproj]
obj/Release/netcoreapp1.1/CheckoutService.AssemblyInfo.cs(11,12): error CS0246: The type or namespace name 'System' could not be fo
und (are you missing a using directive or an assembly reference?) [/app/CheckoutService.csproj]
obj/Release/netcoreapp1.1/CheckoutService.AssemblyInfo.cs(12,12): error CS0246: The type or namespace name 'System' could not be fo
und (are you missing a using directive or an assembly reference?) [/app/CheckoutService.csproj]
obj/Release/netcoreapp1.1/CheckoutService.AssemblyInfo.cs(13,12): error CS0246: The type or namespace name 'System' could not be fo
und (are you missing a using directive or an assembly reference?) [/app/CheckoutService.csproj]
obj/Release/netcoreapp1.1/CheckoutService.AssemblyInfo.cs(14,12): error CS0246: The type or namespace name 'System' could not be fo
und (are you missing a using directive or an assembly reference?) [/app/CheckoutService.csproj]
Restore happened with no issues, however publish fails for some reason.
I changed the base image to microsoft/dotnet:2.0-sdk, ran the docker build command. Everything now works fine.
If you want to keep the service at 1.1.2 then can you please see why it fails?
I'm off playing with the demo ;)
The text was updated successfully, but these errors were encountered:
This is due to having restored the project on your local filesystem before building the image. The Dockerfile indiscriminately copies everything from the checkoutService directory; this would include props and assets files from your local filesystem with paths like c:/prj/react/StickerApp. Thanks for reporting this, I'll fix it.
Hi,
There seems to be some issue with building the CheckoutService using 1.1.2-sdk. I didn't spend enough time checking what is going on, usually something in csproj is at fault. Below are the steps I followed.
I have the latest master cloned (hash 81af523).
From clone directory I tried to do docker-compose -f .\docker-compose.dev.yml build, and I noticed the CheckoutService does not build.
I moved to the checkoutService directory and ran docker build -t checkout:latest .
Still the build broke.
Restore happened with no issues, however publish fails for some reason.
I changed the base image to microsoft/dotnet:2.0-sdk, ran the docker build command. Everything now works fine.
If you want to keep the service at 1.1.2 then can you please see why it fails?
I'm off playing with the demo ;)
The text was updated successfully, but these errors were encountered: