title: .Net 5 Dockerize "/ChatCase.Domain/ChatCase.Domain.csproj" not found
body: <p>I am new for dockerize a .Net Core project. I have been working on dockerizing my project, but when I build it, it returns an error.</p>
  <p>How can I fix this?</p>
  <pre><code>    FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
      WORKDIR /app
      EXPOSE 80
      EXPOSE 443
  
      FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
      WORKDIR /src
      COPY [&quot;ChatCase.Api/ChatCase.Api.csproj&quot;, &quot;ChatCase.Api/&quot;]
      COPY [&quot;ChatCase.Framework/ChatCase.Framework.csproj&quot;, &quot;ChatCase.Framework/&quot;]
      COPY [&quot;ChatCase.Business/ChatCase.Business.csproj&quot;, &quot;ChatCase.Business/&quot;]
      COPY [&quot;ChatCase.Repository/ChatCase.Repository.csproj&quot;, &quot;ChatCase.Repository/&quot;]
      COPY [&quot;ChatCase.Core/ChatCase.Core.csproj&quot;, &quot;ChatCase.Core/&quot;]
      COPY [&quot;ChatCase.Common/ChatCase.Common.csproj&quot;, &quot;ChatCase.Common/&quot;]
      COPY [&quot;ChatCase.Domain/ChatCase.Domain.csproj&quot;, &quot;ChatCase.Domain/&quot;]
      RUN dotnet restore &quot;ChatCase.Api/ChatCase.Api.csproj&quot;
      COPY . .
      WORKDIR &quot;/src/ChatCase.Api&quot;
      RUN dotnet build &quot;ChatCase.Api.csproj&quot; -c Release -o /app/build
  
      FROM build AS publish
      RUN dotnet publish &quot;ChatCase.Api.csproj&quot; -c Release -o /app/publish
  
      FROM base AS final
      WORKDIR /app
      COPY --from=publish /app/publish .
      ENTRYPOINT [&quot;dotnet&quot;, &quot;ChatCase.Api.dll&quot;]
              
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Ezcdz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ezcdz.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/EsDXg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EsDXg.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/F4N4O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F4N4O.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/yMH78.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yMH78.png" alt="enter image description here" /></a></p>