github-actionsmauidotnet-publish

GitHub Actions dotnet publish Specify a project with a Dot in the name


I am setting up my CICD for a MAUI app using GitHub actions. I'm using the dotnet publish command to publish the application but if I have a "." in the name of the project it can't find the project.

- name: Build
  run: dotnet publish AppTest.Maui/AppTest.Maui.csproj

Gives me the error:

MSBUILD : error MSB1009: Project file does not exist.

I've verified it's the period in the name, if I rename the project to AppTest it works fine

- name: Build
  run: dotnet publish AppTest/AppTest.csproj 

I have tried using "_" instead of a "." as well as several variations. Any help would be greatly appreciated. I just need to know the correct way to refer to a project w/ a "." in the name...

Edit To Include final answer:

dotnet publish "AppTest.Maui/AppTest.Maui.csproj"

Solution

  • Final Answer:

    dotnet publish "AppTest.Maui/AppTest.Maui.csproj"