I have a cross-platform game and I’m trying to build it for UWP now… but I get this error:
Library\PackageCache\com.unity.ads@3.3.1\Runtime\Monetization\Placeholder.cs(28,46): error CS0117: ‘Assembly’ does not contain a definition for ‘GetExecutingAssembly’
I don’t want to remove the unity-ads package from the project as it is needed for the android and ios versions…
do I have to configure anything for unity ads so that it is ignored for the windows build…?
You would need to downgrade to Ads version 3.0.1, after that version the UnityEngine.Monetization import settings incorrectly allow all platforms, instead of just Editor, Android, and iOS. Which means there will be build breaks on all other platforms. They obviously don’t test these changes very well, since it has been like this since version 3.0.2.
Update: I removed Ads via Packet Manager and installed it directly from Asset Store, now I can install and build with 3.4.1. Note, have not tried it on iOS or Android yet, just letting you know of a work around.