title: AWS CodeDeploy deployment error with wrong file name in deployment-archive folder
body: <p>I have a .NET 6 project running with our CICD on aws CcodeDeploy, and here is the error from CodeDeploy deployment:</p>
  <blockquote>
  <p>The CodeDeploy agent did not find an AppSpec file within the unpacked revision directory at revision-relative path &quot;appspec.yml&quot;. The revision was unpacked to directory &quot;/opt/codedeploy-agent/deployment-root/{guid}/d-xxxxxxx/deployment-archive&quot;, and the AppSpec file was expected but not found at path &quot;/opt/codedeploy-agent/deployment-root/{guid}/d-xxxxxxx/deployment-archive/appspec.yml&quot;. Consult the AWS CodeDeploy Appspec documentation for more information at <a href="http://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file.html</a> View more.</p>
  </blockquote>
  <p>However, when I login into the <strong>LINUX</strong> instance and can find the files under <code>/opt/codedeploy-agent/deployment-root/0596c43c-d025-448a-8999-9675455ad44c/d-VE62UHKSH/deployment-archive</code>, but their file name all look like: <code>XXX\wwwroot\locales\zh.json</code>, <code>XXX\appspec.yml</code>. I have no idea why CodeDeloy unzip the file like this which I never ever meet before.</p>
  <p>Actually, the source code structure is:</p>
  <pre><code>RootFolder
  |
  | __ wwwroot
  |    |
  |    |__ locales
  |       |
  |       |__ zh.json
  |
  |____ Application.dll
  |____ appspec.yml
  </code></pre>
  <p>So, anyone who ever met such an issue?</p>