Description:
While using the default workflow generated by Azure, I am building my application using GitHub Actions and deploying it to an Azure Windows Web App. However, the process always fails during the publishing stage.
Run dotnet publish -c Release -o C:\Program Files\dotnet/myapp
dotnet publish -c Release -o C:\Program Files\dotnet/myapp
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
env:
AZURE_WEBAPP_NAME: RachanaDemo
AZURE_WEBAPP_PACKAGE_PATH: .
DOTNET_VERSION: 8.x
DOTNET_ROOT: C:\Program Files\dotnet
MSBUILD : error MSB1009: Project file does not exist.
Switch: Files\dotnet/myapp
Error: Process completed with exit code 1.
Task version:
actions/setup-dotnet@v4
Platform:
[ ] Ubuntu
[ ] macOS
[O] Windows
Runner type:
[O] Hosted
[ ] Self-hosted
Repro steps:
Create a simple "Hello World" .NET Web API application.
Push the project to a GitHub repository.
Create an Azure Windows Web App and connect it to the GitHub repository for CI/CD deployment.
Use the default workflow file generated by Azure.
Observe that the workflow fails at the publishing stage when using actions/setup-dotnet@v4.
Expected behavior:
The application should successfully build and publish without modifying the default workflow file.
Actual behavior:
The process fails during the publishing stage with the error message indicating that the project file does not exist. However, if the task version is downgraded to v2 or v1, the workflow succeeds.
Description: While using the default workflow generated by Azure, I am building my application using GitHub Actions and deploying it to an Azure Windows Web App. However, the process always fails during the publishing stage.
Run dotnet publish -c Release -o C:\Program Files\dotnet/myapp dotnet publish -c Release -o C:\Program Files\dotnet/myapp shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'" env: AZURE_WEBAPP_NAME: RachanaDemo AZURE_WEBAPP_PACKAGE_PATH: . DOTNET_VERSION: 8.x DOTNET_ROOT: C:\Program Files\dotnet MSBUILD : error MSB1009: Project file does not exist. Switch: Files\dotnet/myapp Error: Process completed with exit code 1.
Task version: actions/setup-dotnet@v4
Platform:
Runner type:
Repro steps:
Expected behavior: The application should successfully build and publish without modifying the default workflow file.
Actual behavior: The process fails during the publishing stage with the error message indicating that the project file does not exist. However, if the task version is downgraded to v2 or v1, the workflow succeeds.