[Publish] requires Build target to execute
- Dominant language
- C#
- Stars
- 2.1k
- Forks
- 579
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 252
Description
### Android application type
Android for .NET (net6.0-android, etc.)
### Affected platform version
CLI SDK 6.0.300-preview.22204.3
### Description
I want to achieve the standard .NET workflow:
1. Restore `dotnet restore`
2. Build `dotnet build --no-restore -f net6.0-android -o ""`
3. Test `dotnet test --no-restore`
4. Publish `dotnet publish --no-build -f net6.0-android /p:OutDir="" /p:PublishDir=""`
As long as `dotnet build` already produces apk:
1. why `dotnet publish --no-build` does not work and requires omit `--no-build`?
2. why it copies signed and not signed apks to the publish folder when `dotnet build` removes unsigned apk from a build output folder
### Steps to Reproduce
1. Create new MAUI app
2. Execute `dotnet build --no-restore -f:net6.0-android /p:OutDir="C:\Temp\B Android"`
3. Execute `dotnet publish --no-build -f:net6.0-android /p:OutDir="C:\Temp\B Android" /p:PublishDir="C:\Temp\A Android"`
### Did you find any workaround?
_No response_
### Relevant log output
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.