dotnet / dotnet/macios

The "CreateAssetPack" task was not given a value for the required parameter "Source".

Open
#20,367 0 comments 0 reactions 0 assignees View on GitHub
copilot-candidate enhancement
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Repro by applying this diff:

```diff
diff --git a/tests/dotnet/MySimpleApp/iOS/MySimpleApp.csproj b/tests/dotnet/MySimpleApp/iOS/MySimpleApp.csproj
index 86d408734a..da99e53a0b 100644
--- a/tests/dotnet/MySimpleApp/iOS/MySimpleApp.csproj
+++ b/tests/dotnet/MySimpleApp/iOS/MySimpleApp.csproj
@@ -2,6 +2,12 @@


net$(BundledNETCoreAppTargetFrameworkVersion)-ios
+ Apple Distribution: Luis Aguilera (DPXCPAGVTZ)
+ WildCardiOSDistribution
+ true
+ true
+ ios-arm64
+ false



```

and then:

```
make build -C tests/dotnet/MySimpleApp/iOS
```

results in:

```
tools/msbuild/iOS/Xamarin.iOS.Common.targets(569,3): error MSB4044: The "CreateAssetPack" task was not given a value for the required parameter "Source".
```

the fix is to either succeed or show a better error.

binlog:
[build-2024-03-22-175439.binlog.zip](https://github.com/xamarin/xamarin-macios/files/14726000/build-2024-03-22-175439.binlog.zip)

Ref: https://developercommunity.visualstudio.com/t/MAUI-Net-Release-build-for-iOS-hangs/10615810#T-N10617287-N10617988

Workaround:

* Set `EmbedOnDemandResources=true` (or remove the property).

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.