Azure container app error with .NET SDK 8

Văn Huy Tuyên 0 Reputation points
2024-06-12T03:08:58.86+00:00

Hi all,

We plan to migrate on-premises internal apps to Azure using Azure container app. But when I deploy from image, it shows error:

The command could not be loaded, possibly because:

  • You intended to execute a .NET application: The application 'app.dll' does not exist.
  • You intended to execute a .NET SDK command: No .NET SDKs were found.

Download a .NET SDK:

https://aka.ms/dotnet/download

Learn about SDK resolution:

https://aka.ms/dotnet/sdk-not-found

This image work well with on-premises environment.

Please help!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,919 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
444 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jimmie Ulenius 0 Reputation points
    2024-07-12T11:26:52.7333333+00:00

    Hi!

    We encountered the same issue, e.g. it works in on-premise but not in Azure. The solution for us was to change the folder structure in the image.

    Not working:
    /jobs/<app files>
    /src/<app files>

    Working:
    /app/jobs/<app files>
    /app/src/<app files>

    Not sure if it is due to that splitting your files on multiple root folders is a bad idea or if /app folder has some special treatment.

    We also use .NET SDK 8.

    Hope this helps!

    0 comments No comments

  2. Rafael Caviquioli 20 Reputation points
    2024-10-01T15:03:56.0766667+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.