英文:
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"
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论