title: How to run ASP.Net Core 5 WebApi project platform target x86 on windows container
body: <p>I have Asp.net core 5 webapi microservice comminicate with unmanaged C++ (32bit) code.
  C++ DLL code can be run only on Windows OS.
  I have configured my project x86 platform target and define Windows docker.
  When run applicaltion/microsrivice without Docker everything work fine.
  I guess that default docker configuration doesn't suite, because x86 platform configuration.
  Attempts to resolve issue:</p>
  <ol>
  <li>I have tried to configurate docker file with : --runtime win-x86 or --runtime win10-x86, but it failed.</li>
  <li>I have tried to configurate RID according to Microsoft: <a href="https://docs.microsoft.com/en-us/dotnet/core/rid-catalog" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/dotnet/core/rid-catalog</a></li>
  </ol>
  <p>Steps to reproduce issue:</p>
  <ol>
  <li>Create Empty Asp.net WebApi core 5 project with docker support checkbox</li>
  <li>From the project properties set &quot;Platform Target&quot; to x86</li>
  <li>Open Project file .proj and set &quot;Windows&quot;</li>
  </ol>
  <p>Here is my docker file:</p>
  <pre class="lang-none prettyprint-override"><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;Services/Calculation/Calculation.API/Calculation.API.csproj&quot;, &quot;Services/Calculation/Calculation.API/&quot;]
  COPY [&quot;Services/Calculation/Calculation.Application/Calculation.Application.csproj&quot;, &quot;Services/Calculation/Calculation.Application/&quot;]
  COPY [&quot;Services/Calculation/Calculation.Domain/Calculation.Domain.csproj&quot;, &quot;Services/Calculation/Calculation.Domain/&quot;]
  COPY [&quot;Services/Calculation/Calculation.Infrastructure/Calculation.Infrastructure.csproj&quot;, &quot;Services/Calculation/Calculation.Infrastructure/&quot;]
  RUN dotnet restore &quot;Services/Calculation/Calculation.API/Calculation.API.csproj&quot;
  COPY . .
  WORKDIR &quot;/src/Services/Calculation/Calculation.API&quot;
  RUN dotnet build &quot;Calculation.API.csproj&quot; -c Release -o /app/build 
  
  FROM build AS publish
  RUN dotnet publish &quot;Calculation.API.csproj&quot; -c Release -o /app/publish 
  
  FROM base AS final
  WORKDIR /app
  COPY --from=publish /app/publish .
  ENTRYPOINT [&quot;dotnet&quot;, &quot;Calculation.API.dll&quot;]
  </code></pre>