Ich versuche, eine .NET 8 -Funktions -App für einen Flex -Konsumplan für unser Azure -Abonnement bereitzustellen. Wenn ich jedoch die Aktion nach dem Build ausführe, erhalte ich den Fehler "Fehler: Ich konnte eine Version für die Plattform 'Dotnet' im Repo nicht erkennen." < /p>
name: Deploy DotNet project to Azure Function App
on:
push:
branches: ["main"]
env:
AZURE_FUNCTIONAPP_NAME: 'function app name'
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.'
DOTNET_VERSION: '8.0.x'
jobs:
build-and-deploy:
runs-on: windows-latest # For Linux, use ubuntu-latest
environment: dev
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
# If you want to use Azure RBAC instead of Publish Profile, then uncomment the task below
# - name: 'Login via Azure CLI'
# uses: azure/login@v1
# with:
# creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }} # set up AZURE_RBAC_CREDENTIALS secrets in your repository
- name: Setup DotNet ${{ env.DOTNET_VERSION }} Environment
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: 'Resolve Project Dependencies Using Dotnet'
shell: pwsh
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet build --configuration Release --output ./output
popd
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
sku: flexconsumption
remote-build: true
scm-do-build-during-deployment: false
enable-oryx-build: false
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
Ich habe die DOTNET -Version in der Workflow -Datei als Variable deklariert und die Lösung und die .csproj -Datei überprüft und enthalten auch die Dotnet -Version.
Ich versuche, eine .NET 8 -Funktions -App für einen Flex -Konsumplan für unser Azure -Abonnement bereitzustellen. Wenn ich jedoch die Aktion nach dem Build ausführe, erhalte ich den Fehler "Fehler: Ich konnte eine Version für die Plattform 'Dotnet' im Repo nicht erkennen." < /p> [code]name: Deploy DotNet project to Azure Function App
jobs: build-and-deploy: runs-on: windows-latest # For Linux, use ubuntu-latest environment: dev steps: - name: 'Checkout GitHub Action' uses: actions/checkout@v4
# If you want to use Azure RBAC instead of Publish Profile, then uncomment the task below # - name: 'Login via Azure CLI' # uses: azure/login@v1 # with: # creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }} # set up AZURE_RBAC_CREDENTIALS secrets in your repository
- name: 'Run Azure Functions Action' uses: Azure/functions-action@v1 id: fa with: sku: flexconsumption remote-build: true scm-do-build-during-deployment: false enable-oryx-build: false app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }} package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output' [/code] Ich habe die DOTNET -Version in der Workflow -Datei als Variable deklariert und die Lösung und die .csproj -Datei überprüft und enthalten auch die Dotnet -Version.
Ich habe den folgenden GitHub -Workflow, der nach Erwartung erstellt und bereitstellt. Result: Failure Exception: ModuleNotFoundError: No module named 'azure.storage'. Cannot find module. Please...
Ich habe eine VS 2022 -Lösung, die ich aus der Vorlage Angular und ASP.Net Core erstellt habe. Das grundlegende Ordnerlayout ist wie folgt:
-MySln
-angular.client
-webapi.server
Ich versuche, ein ASP.NET -Kern -Web -API -Projekt in meinem Linux -System (Ubuntu 22.04) zu erstellen und mit dem Befehl dotnet restore oder dotnet New ein Problem zu stellen: Der Prozess bleibt...
Ich habe eine .NET8.0 MAUI -Anwendung, die ich über Github -Aktionen mit Xcode 16 auf TestFlight hochladen möchte. Ich habe ein neues Unterschriftenzertifikat und ein Apple Store...