dotnet / dotnet/macios

[XM] `CreateInstallerPackage` run again unnecessarily after full build with no changes

Open
#5,318 0 comments 0 reactions 0 assignees View on GitHub
enhancement macOS
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

### Steps to Reproduce

1. Create XM project
2. Open project options - `Build` -> `Mac Build`
3. Turn `Create installer package` on
4. Build it
5. Run it

### Expected Behavior
It runs right away. There is no build step because it was built just before that.

### Actual Behavior
It builds it again and run it only after that step.
Also `CreateInstallerPackage` task runs again.

### Environment

1. VSfM
https://gist.github.com/mykyta-bondarenko-gl/9069c7d5ad2c8c85bebae9104c4f6d82

### Build Logs

1. Without installer
- Build (`Time Elapsed 00:00:06.66`)
https://gist.github.com/mykyta-bondarenko-gl/acd2b74a73fdc0febb72abcde14f54c2
- Build before run (`Time Elapsed 00:00:00.15`)
https://gist.github.com/mykyta-bondarenko-gl/874329b8cc4bc0f7847d44545d5836b8
2. With installer
- Build (`Time Elapsed 00:00:08.79`)
https://gist.github.com/mykyta-bondarenko-gl/311cc2a37197c5c283eb9049ebd56adf
- Build before run (`Time Elapsed 00:00:04.31`)
https://gist.github.com/mykyta-bondarenko-gl/b6f5dd3bb3697a40cf6f2f7892bb6503

### Example Project

[MacInspector](https://github.com/xamarin/mac-samples/tree/master/MacInspector)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.