-
Notifications
You must be signed in to change notification settings - Fork 549
[msbuild] introduce _CompileAppManifestInputs
#22745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixes: #19607 The `_CompileAppManifest` MSBuild target currently runs on every build because it has no `Inputs` defined. In cases where the inputs are not discretely known, we can use a pattern we've used in dotnet/android: https://github.com/dotnet/android/blob/b61cac33ea1a1a8c4751b8f9f1eade8cf27313c6/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets#L960-L990 * Write a file with `<WriteLinesToFile WriteOnlyWhenDifferent="true">` to the `obj` directory with all the parameters to the `<CompileAppManifest/>` MSBuild task. * Use this file as the `Inputs` for the `_CompileAppManifest` target. * If any of the parameters change, the file will be different and `_CompileAppManifest` will run again. I updated `tests/dotnet/UnitTests/WindowsTest.cs` to verify this target is skipped appropriately.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Fixes:
error MSB4012: The expression "FontFilesToRegister=@(_FontFilesToRegister)" cannot be used in this context. Item lists cannot be concatenated with other strings where an item list is expected. Use a semicolon to separate multiple item lists.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The latest change, I removed the 1st build (I also had some old files in 2nd build: and then bonus (target from #22741): Logs: 22745.zip |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #22bb00e] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ API diff for current PR / commit.NET ( No breaking changes )✅ API diff vs stable.NET ( No breaking changes )✅ Generator diffGenerator diff is empty Pipeline on Agent |
✅ [CI Build #22bb00e] Build passed (Build packages) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ [CI Build #22bb00e] Build passed (Build macOS tests) ✅Pipeline on Agent |
💻 [CI Build #22bb00e] Tests on macOS X64 - Mac Sonoma (14) passed 💻✅ All tests on macOS X64 - Mac Sonoma (14) passed. Pipeline on Agent |
💻 [CI Build #22bb00e] Tests on macOS M1 - Mac Monterey (12) passed 💻✅ All tests on macOS M1 - Mac Monterey (12) passed. Pipeline on Agent |
💻 [CI Build #22bb00e] Tests on macOS arm64 - Mac Sequoia (15) passed 💻✅ All tests on macOS arm64 - Mac Sequoia (15) passed. Pipeline on Agent |
💻 [CI Build #22bb00e] Tests on macOS M1 - Mac Ventura (13) passed 💻✅ All tests on macOS M1 - Mac Ventura (13) passed. Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
🚀 [CI Build #22bb00e] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 119 tests passed 🎉 Tests counts✅ cecil: All 1 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
Fixes: #19607
The
_CompileAppManifestMSBuild target currently runs on every build because it has noInputsdefined.In cases where the inputs are not discretely known, we can use a pattern we've used in dotnet/android:
https://github.com/dotnet/android/blob/b61cac33ea1a1a8c4751b8f9f1eade8cf27313c6/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets#L960-L990
Write a file with
<WriteLinesToFile WriteOnlyWhenDifferent="true">to theobjdirectory with all the parameters to the<CompileAppManifest/>MSBuild task.Use this file as the
Inputsfor the_CompileAppManifesttarget.If any of the parameters change, the file will be different and
_CompileAppManifestwill run again.I updated
tests/dotnet/UnitTests/WindowsTest.csto verify this target is skipped appropriately.