Skip to content
This repository was archived by the owner on May 31, 2019. It is now read-only.
This repository was archived by the owner on May 31, 2019. It is now read-only.

Upgrading to 2.1.101 SDK causes restore to fail with error MSB3202 #388

@WolfspiritM

Description

@WolfspiritM

Steps to reproduce the issue

Since the new image for 2.0.6 has been pushed to the docker registry the build has been broken for us.
Error: /usr/share/dotnet/sdk/2.1.101/NuGet.targets(229,5): error MSB3202: The project file "/src/docker-compose.dcproj" was not found. [/src/Solution.sln]

When I fix the version to 2.0.5-2.1.4 it works without issues again.

I wondered if using aspnetcore:2.0.5 as base might have caused the issue but as the problem happens within the build stage I doubt that.

The Solution contains the docker-compose project:

Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{695B1C67-0788-473E-9B72-A4AA9DD21B29}" 

And that file is obviously there.
docker-compose.dcproj:

<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|AnyCPU"> <Configuration>Debug</Configuration> <Platform>AnyCPU</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|AnyCPU"> <Configuration>Release</Configuration> <Platform>AnyCPU</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Test|AnyCPU"> <Configuration>Test</Configuration> <Platform>AnyCPU</Platform> </ProjectConfiguration> </ItemGroup> <PropertyGroup Label="Globals"> <ProjectVersion>2.1</ProjectVersion> <DockerTargetOS>Linux</DockerTargetOS> <ProjectGuid>615b1c67-0712-212e-1a31-c2ee9dd21b29</ProjectGuid> <DockerLaunchBrowser>True</DockerLaunchBrowser> <DockerServiceUrl>http://localhost:{ServicePort}</DockerServiceUrl> <DockerServiceName>app</DockerServiceName> </PropertyGroup> <ItemGroup> <None Include=".dockerignore" /> <None Include="docker-compose.ci.build.yml" /> <None Include="docker-compose.override.yml"> <DependentUpon>docker-compose.yml</DependentUpon> </None> <None Include="docker-compose.yml" /> </ItemGroup> </Project>

Dockerfile:

FROM microsoft/aspnetcore:2.0.5 AS base WORKDIR /app EXPOSE 80 FROM microsoft/aspnetcore-build:2.0 AS build WORKDIR /src COPY . . RUN dotnet restore -nowarn:msb3202,nu1503 RUN dotnet build --no-restore -c Release -o /app FROM build AS publish RUN npm rebuild node-sass RUN npm install RUN npm run build-prod RUN dotnet publish --no-restore -c Release -o /app FROM base AS final WORKDIR /app COPY --from=publish /app . ENTRYPOINT ["dotnet", "Server.dll"]

docker-compose.yml

version: '3.4' services: app: image: ${REPOSITORY-local}/app:${TAG} build: context: . dockerfile: src/Server/Dockerfile

Expected behavior

Build without issues...

Actual behavior

Building app Step 1/20 : FROM microsoft/aspnetcore:2.0.5 AS base 2.0.5: Pulling from microsoft/aspnetcore Digest: sha256:3dd91dfc75309d7b9b03e7ce2b5537fd0a8a51c74ba5af31f4688a600746be17 Status: Downloaded newer image for microsoft/aspnetcore:2.0.5 ---> b1a5de255274 Step 2/20 : WORKDIR /app Removing intermediate container f3bfe126d58b ---> 154d716c75c0 Step 3/20 : EXPOSE 80 ---> Running in e48677799540 Removing intermediate container e48677799540 ---> 0787550aa0c9 Step 4/20 : FROM microsoft/aspnetcore-build:2.0 AS build 2.0: Pulling from microsoft/aspnetcore-build Digest: sha256:565ebb615692f07afa181bf9db4891035c14a01030f48de24d01817a93fa4b67 Status: Downloaded newer image for microsoft/aspnetcore-build:2.0 ---> 203e3169173f Step 5/20 : WORKDIR /src Removing intermediate container 243ea94ec0e9 ---> af5e1127fd08 Step 6/20 : COPY . . ---> 0e5985f27a11 Step 7/20 : RUN dotnet restore -nowarn:msb3202,nu1503 ---> Running in bea2928ab246 /usr/share/dotnet/sdk/2.1.101/NuGet.targets(229,5): error MSB3202: The project file "/src/docker-compose.dcproj" was not found. [/src/Solution.sln] 

Metadata

Metadata

Assignees

Labels

bugclosed-externalClosed because the issue is external to the project in this repo.closed-fixedClosed because the issue has been fixed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions