actions / setup-dotnet

Set up your GitHub Actions workflow with a specific version of the .NET core sdk
MIT License
944 stars 465 forks source link

Issue with actions/setup-dotnet@v4 task, Dot Net application is not building MSBUILD : error MSB1009: Project file does not exist error #559

Open vedantpatel8367 opened 1 week ago

vedantpatel8367 commented 1 week ago

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.

vedantpatel8367 commented 1 week ago

image

priyagupta108 commented 1 week ago

Hi @vedantpatel8367 👋, Thank you for your report. We will investigate the issue and get back to you as soon as we have updates.