<p>I am getting following error:</p>
<p>&quot;Specify a project or solution file. The current working directory does not contain a project or solution file.&quot;</p>
<p>While try to build the image and getting the shown in the image</p>
<p><a href="https://i.stack.imgur.com/x0XU6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x0XU6.png" alt="enter image description here" /></a></p>
<p>Following image shows my docker commands.</p>
<p>Also the images shows the code which i am trying to build. It shows the structure of the code which is src folder and a solution file outside the src folder.</p>
<p>I strongly belive issue is solution file is not in src.</p>
<p><a href="https://i.stack.imgur.com/GvFvh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GvFvh.png" alt="enter image description here" /></a></p>
<p>Please recommend what will be change in docker files to make a successfull build and push.</p>
<p>I also showing the deployment.yaml file which shows the steps of the build below image</p>
<pre><code>    name: test run 
jobs:
- job: Job_1
  displayName: Agent job 1
  pool:
    vmImage: ubuntu-18.04
  steps:
  - checkout: self
  - task: Docker@0
    displayName: Build an image
    inputs:
      azureSubscription: 'sc-abc'
      azureContainerRegistry:
      loginServer: acr.azurecr.io
      id: &quot;/subscriptions/4f76bb2f-c521-45d1-b311-xxxxxxxxxx/resourceGroups/eus-abc-rg/providers/Microsoft.ContainerRegistry/registries/acr&quot;
      imageName: acr.azurecr.io/ims-abc/dotnetapi:jp26052022v8
  - task: Docker@0
    displayName: Push an image
    inputs:
      azureSubscription: 'sc-abc'
      azureContainerRegistry: '{&quot;loginServer&quot;:&quot;acr.azurecr.io&quot;, &quot;id&quot; : &quot;/subscriptions/4f76bb2f-c521-45d1-b311-xxxxxxxxxx/resourceGroups/eus-icndp-rg/providers/Microsoft.ContainerRegistry/registries/acr&quot;}'
      action: Push an image
</code></pre>

SmartestVEGA
<p>Please move <code>WORKDIR /APP</code> before <code>COPY . .</code> so that in the directory, it can find the solution file.</p>
<p>You need to create the image in pipeline, then can publish the image to ACR. Please check <a href="https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/build/docker?view=azure-devops#build-and-push" rel="nofollow noreferrer">link</a> for your reference.</p>
