GitHub Actions dotnet发布指定带有点的项目。

huangapple go评论128阅读模式
英文:

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 with a "." in the name...

Edit To Include final answer:

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

英文:

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"

答案1

得分: 0

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

英文:

Final Answer:

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

huangapple
  • 本文由 发表于 2023年2月18日 11:15:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/75490960.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定