Plugin 'Microsoft.UnityPlugins.Advertising.dll' is used from several locations:
Assets/Plugins/WSA/x64/Microsoft.UnityPlugins.Advertising.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Advertising.dll
Assets/Plugins/WSA/x86/Microsoft.UnityPlugins.Advertising.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Advertising.dll
Assets/Plugins/Microsoft.UnityPlugins.Advertising.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Advertising.dll
Assets/Plugins/WSA/ARM/Microsoft.UnityPlugins.Advertising.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Advertising.dll
Plugin 'Microsoft.UnityPlugins.Common.dll' is used from several locations:
Assets/Plugins/WSA/x64/Microsoft.UnityPlugins.Common.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Common.dll
Assets/Plugins/WSA/ARM/Microsoft.UnityPlugins.Common.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Common.dll
Assets/Plugins/WSA/x86/Microsoft.UnityPlugins.Common.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Common.dll
Please fix plugin settings and try again.
UnityEditor.Modules.DefaultPluginImporterExtension:CheckFileCollisions(String)
UnityEditorInternal.PluginsHelper:CheckFileCollisions(BuildTarget) (at C:/buildslave/unity/build/Editor/Mono/Plugins/PluginsHelper.cs:25)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Check their settings in Plugin Inspector. Make sure they are set to be compatible only with their respective platforms/archs etc and all have placeholders set properly.
Plugin 'Microsoft.UnityPlugins.Advertising.dll' is used from several locations:
Assets/Plugins/WSA/x64/Microsoft.UnityPlugins.Advertising.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Advertising.dll
Assets/Plugins/WSA/x86/Microsoft.UnityPlugins.Advertising.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Advertising.dll
Assets/Plugins/WSA/ARM/Microsoft.UnityPlugins.Advertising.dll would be copied to <PluginPath>/Microsoft.UnityPlugins.Advertising.dll
Please fix plugin settings and try again.
UnityEditor.Modules.DefaultPluginImporterExtension:CheckFileCollisions(String)
UnityEditorInternal.PluginsHelper:CheckFileCollisions(BuildTarget) (at C:/buildslave/unity/build/Editor/Mono/Plugins/PluginsHelper.cs:25)
UnityEditor.HostView:OnGUI()
Microsoft.UnityPlugins.MicrosoftAdsBridge.InterstitialAdFactory = new Microsoft.UnityPlugins.MicrosoftAdsFactory();
However, I hoped that there was an easier way to get there and as I want to display a banner ad and not a video ad I guess I’m not done with headaches yet…
The ARM folder Microsoft.UnityPlugins.Advertising.dll is set to WSAPlayer and Placeholder is set to either “none” or to the Microsoft.UnityPlugins.Advertising.dll in the Plugins folder.
Error building Player: UnityException: Failed to run reference rewriter with command --target=“Temp\StagingArea\VideoAdsSample.Windows\Microsoft.UnityPlugins.Advertising.dll” --additionalreferences=“Temp\StagingArea\VideoAdsSample.Windows” --platform=“C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Windows.winmd” --support=“Temp\StagingArea\VideoAdsSample.Windows\WinRTLegacy.dll” --supportpartialns=Unity.Partial --system=System --dbg=pdb --framework=“C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5.1” --alt=System.Xml.Serialization --ignore=System.IConvertible,mscorlib.
Catastrophic failure while running rrw: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: ‘Microsoft.Advertising, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null’
at Unity.SearchPathAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
at Unity.SearchPathAssemblyResolver.Resolve(AssemblyNameReference name)
at Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
at Mono.Cecil.TypeReference.Resolve()
at Unity.ReferenceRewriter.RewriteTypeReferences.Visit(TypeReference type, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.Visit(TypeReference type, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.DispatchFields(TypeDefinition type, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch(TypeDefinition type)
at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch()
at Unity.ReferenceRewriter.RewriteTypeReferences.Run()
at Unity.ReferenceRewriter.RewriteOperation.Execute(RewriteContext context)
at Unity.ReferenceRewriter.Program.Main(String[ ] args)
UnityException: Failed to run reference rewriter with command --target=“Temp\StagingArea\VideoAdsSample.Windows\Microsoft.UnityPlugins.Advertising.dll” --additionalreferences=“Temp\StagingArea\VideoAdsSample.Windows” --platform=“C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Windows.winmd” --support=“Temp\StagingArea\VideoAdsSample.Windows\WinRTLegacy.dll” --supportpartialns=Unity.Partial --system=System --dbg=pdb --framework=“C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5.1” --alt=System.Xml.Serialization --ignore=System.IConvertible,mscorlib.
Catastrophic failure while running rrw: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: ‘Microsoft.Advertising, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null’
at Unity.SearchPathAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
at Unity.SearchPathAssemblyResolver.Resolve(AssemblyNameReference name)
at Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
at Mono.Cecil.TypeReference.Resolve()
at Unity.ReferenceRewriter.RewriteTypeReferences.Visit(TypeReference type, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.Visit(TypeReference type, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.DispatchFields(TypeDefinition type, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch(TypeDefinition type)
at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch()
at Unity.ReferenceRewriter.RewriteTypeReferences.Run()
at Unity.ReferenceRewriter.RewriteOperation.Execute(RewriteContext context)
at Unity.ReferenceRewriter.Program.Main(String[ ] args)
This part of error:
Catastrophic failure while running rrw: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: ‘Microsoft.Advertising, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null’
Microsoft.UnityPlugins.Advertising.dll is the one you had a failure with, because it references Microsoft.Advertising.dll. So place Microsoft.Advertising.dll alongside the Microsoft.UnityPlugins.Advertising.dll (the one used for WSA) and also set plugin settings for that dll to be WSA-only.
hey so I downloaded that package but it looks like the package is not complie to use in Unity. So i have to do some additional build inVS to get all the needed DLLs. its said that some powershall is needed… well Iam so confused
@TGKG I basically have the very same issue as you had. I found a Microsoft.Advertising.dll (which on did you use? I only found one in an x86 Folder) and this doesn’t help - very same issue. Could you walk me through? Which dll and what settings in which UnityFolder? Thanks!