You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/share/dotnet/sdk/7.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets(201,5): error MSB4063: The "CheckForDuplicateItems" task could not be initialized with its input parameters. [/src/Automate/Automate.csproj]
Steps to reproduce this issue
Dockerfile with net7 app
Qemu to build image for platform arm64 on GitHub Actions
name: Docker Image CIon:
push:
branches: [ main ]tags:
- 'v*'jobs:
build:
runs-on: ubuntu-lateststeps:
- name: Checkout codeuses: actions/checkout@v2
- name: Login to DockerHubuses: docker/login-action@v1with:
username: ${{ secrets.DOCKER_USERNAME }}password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up QEMUuses: docker/setup-qemu-action@v2with:
platforms: all
- name: Set up Docker Buildxid: docker_buildxuses: docker/setup-buildx-action@v1
- name: Build and push amd64 & arm64uses: docker/build-push-action@v2with:
builder: ${{ steps.docker_buildx.outputs.name}}context: .file: ./Automate/Dockerfilepush: trueplatforms: linux/amd64, linux/arm64tags: ${{ steps.meta.outputs.tags }}labels: ${{ steps.meta.outputs.labels }}
Dockerfile
FROM mcr.microsoft.com/dotnet/runtime:7.0-jammy AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy AS build
WORKDIR /src
COPY ["Automate/Automate.csproj", "Automate/"]
COPY ["Automate.Domain/Automate.Domain.csproj", "Automate.Domain/"]
COPY ["Automate.Infrastructure/Automate.Infrastructure.csproj", "Automate.Infrastructure/"]
RUN dotnet restore "Automate/Automate.csproj"
COPY . .
WORKDIR "/src/Automate"
RUN dotnet build "Automate.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Automate.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Automate.dll"]
Logs
first paragraph
Regards
The text was updated successfully, but these errors were encountered:
Thank you @crazy-max for your comment and help. I updated my initial post with my dockerfile which is almost the same as the template provided by VS2022 at project creation time.
did anyone figure this out? I added the DOTNET_EnableWriteXorExecute=0 and it took 30m to build vs the normal 3m or so - BUT with no errors! Any updates would be greatly appreciated! 30m on a GitHub runner adds up over time 😄
Behaviour
/usr/share/dotnet/sdk/7.0.103/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.DefaultItems.Shared.targets(201,5): error MSB4063: The "CheckForDuplicateItems" task could not be initialized with its input parameters. [/src/Automate/Automate.csproj]
Steps to reproduce this issue
Dockerfile
Logs
first paragraph
Regards
The text was updated successfully, but these errors were encountered: