AWS Amplfy push Error Command failed with exit code 4294967295

0

Hello, I am having a problem with amplify i already changed my .csproj local files but the cloud .csproj is not updating and also I am looking for resources about an error and could not find anything about it

Command failed with exit code 4294967295: dotnet lambda package --framework netcoreapp3.1 --configuration Release --output-package C:\KY\Documents\Projects\GreenProjects\GreenProjects-BE\amplify\backend\function\InstallersFunction\dist\latest-build.zip Amazon Lambda Tools for .NET Core applications (5.3.0) Executing publish command ... invoking 'dotnet publish', working folder 'C:\Users\KY\Documents\Projects\GreenProjects\GreenProjects-BE\amplify\backend\function\InstallersFunction\src\bin\Release\netcoreapp3.1\publish' ... dotnet publish --output "C:\Users\KY\Documents\Projects\GreenProjects\GreenProjects-BE\amplify\backend\function\InstallersFunction\src\bin\Release\netcoreapp3.1\publish" --configuration "Release" --framework "netcoreapp3.1" /p:GenerateRuntimeConfigurationFiles=true --runtime linux-x64 --self-contained false ... publish: Microsoft (R) Build Engine version 17.2.2+038f9bae9 for .NET ... publish: Copyright (C) Microsoft Corporation. All rights reserved. ... publish: Determining projects to restore... ... publish: Restored C:\Users\KY\Documents\Projects\GreenProjects\GreenProjects-BE\amplify\backend\function\InstallersFunction\src\InstallersFunction.csproj (in 304 ms). ... publish: C:\Program Files\dotnet\sdk\6.0.310\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(267,5): error NETSDK1005: Assets file 'C:\Users\KY\Documents\Projects\GreenProjects\GreenProjects-BE\amplify\backend\function\InstallersFunction\src\obj\project.assets.json' doesn't have a target for 'netcoreapp3.1'. Ensure that restore has run and that you have included 'netcoreapp3.1' in the TargetFrameworks for your project. [C:\Users\KY\Documents\Projects\GreenProjects\GreenProjects-BE\amplify\backend\function\InstallersFunction\src\InstallersFunction.csproj] Failed to create application package

Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen