Building WP 8.1 app with Microsoft.AdMediator, Microsoft.PlayerFramework, Microsoft.PlayerFramework.Xaml.Advertising issues

Hello,

I am trying to build our Dailymotion windows phone application, however it looks like I am having issues with reference that are located on my Machine like: Microsoft.AdMediator, Microsoft.PlayerFramework, Microsoft.PlayerFramework.Xaml.Advertising.

Is there anyway for me to fix this issue? or do i need to push to github these dlls so that AppVeyor can build the solution? or is there a way for me to install these reference on the AppVeyor build server?
http://i.imgur.com/F1LAYVF.png

C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.AdMediator81, Version=1.0". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.Media.AdaptiveStreamingClient, Version=1.0". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.PlayerFramework.Xaml, Version=2.0.0.0". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.PlayerFramework.Xaml.Adaptive, Version=2.0.0.0". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.PlayerFramework.Xaml.Advertising, Version=2.0.0.0". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "RateMyApp, Version=1.25". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.Media.AdaptiveStreamingClient, Version=1.0". [C:\projects\dailymotion-windows-universal\Dailymotion.Windows\Dailymotion.Windows\Dailymotion.Windows.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.PlayerFramework.Xaml, Version=2.0.0.0". [C:\projects\dailymotion-windows-universal\Dailymotion.Windows\Dailymotion.Windows\Dailymotion.Windows.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.PlayerFramework.Xaml.Adaptive, Version=2.0.0.0". [C:\projects\dailymotion-windows-universal\Dailymotion.Windows\Dailymotion.Windows\Dailymotion.Windows.csproj]
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.PlayerFramework.Xaml.Advertising, Version=2.0.0.0". [C:\projects\dailymotion-windows-universal\Dailymotion.Windows\Dailymotion.Windows\Dailymotion.Windows.csproj]
Command exited with code 1

  1. As far as I see you need these things installed:
    https://playerframework.codeplex.com/
    https://visualstudiogallery.msdn.microsoft.com/0170c67c-c183-4fee-8...
    https://visualstudiogallery.msdn.microsoft.com/401703a0-263e-4949-8...

    They could be installed with this PowerShell script (feel free to put it into separate file):

    Write-Host "Installing Microsoft Universal Ad Client SDK..."
    $msiPath = "$($env:USERPROFILE)\AdMediator.msi"
    (New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/401703a0-263e-4949-8f0f-738305d6ef4b/file/146057/6/AdMediator.msi', $msiPath)
    cmd /c start /wait msiexec /i $msiPath /quiet
    Write-Host "Installed" -ForegroundColor green
    
    Write-Host "Installing Microsoft Player Framework..."
    $vsixPath = "$($env:USERPROFILE)\Microsoft.PlayerFramework.vsix"
    (New-Object Net.WebClient).DownloadFile('http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=playerframework&DownloadId=1494476&FileTime=130891479935000000&Build=21031', $vsixPath)
    "`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
    & .\install-vsix.cmd
    Write-Host "Installed" -ForegroundColor green
    
    Write-Host "Microsoft Smooth Streaming Client SDK for Windows 8.1..."
    $vsixPath = "$($env:USERPROFILE)\AdaptiveStreamingClientSDK.8.1_1.0.1016.14.vsix"
    (New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/0170c67c-c183-4fee-8dd4-c2b44d710d40/file/105860/4/AdaptiveStreamingClientSDK.8.1_1.0.1016.14.vsix', $vsixPath)
    "`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
    & .\install-vsix.cmd
    Write-Host "Installed" -ForegroundColor green
    

    When installing VSIX pay attention to VSIXInstaller path which should have Microsoft Visual Studio 14.0 for VS 2015.

    It takes like a minute and half to install all dependencies: https://ci.appveyor.com/project/FeodorFitsner/simple-console/build/...

  2. Hello thanks for your help i am still getting these issues:

    C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.Media.AdaptiveStreamingClient, Version=1.0". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
    C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.PlayerFramework.Xaml, Version=2.0.0.0". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
    C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.PlayerFramework.Xaml.Adaptive, Version=2.0.0.0". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
    C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1886,5): error MSB3774: Could not find SDK "Microsoft.PlayerFramework.Xaml.Advertising, Version=2.0.0.0". [C:\projects\dailymotion-windows-universal\Dailymotion\Dailymotion.WindowsPhone\Dailymotion.WindowsPhone.csproj]
    Command exited with code 1

  3. here is the list of the references that i am using:
    http://i.imgur.com/qPEhuPE.png

    in the script i have add the PS code doe ratemyapp:

    Write-Host "Rate My App 125..."
    $vsixPath = "$($env:USERPROFILE)\RateMyApp125.vsix"
    (New-Object Net.WebClient).DownloadFile('https://github.com/Microsoft/rate-my-app/blob/master/Source_WPA81/VSix_InstallationPackage/RateMyApp125.vsix?raw=true', $vsixPath)
    "`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
    & .\install-vsix.cmd
    Write-Host "Installed" -ForegroundColor green

  4. Looks like more packages/SDKs are missing.

    I'd suggest logging in to build worker via RDP: http://www.appveyor.com/docs/how-to/rdp-to-build-worker

    and then installing missing packages one-by-one until the projects compiles. This way we could get precise list of missing packages.

  5. thanks for your help, in the end it was not downloading the correct version of the Playerframework i needed version 2 and not version 3 and i was missing the readyplayer for Windows Phone.

    here is the final script:

    Write-Host "Installing Microsoft Universal Ad Client SDK..."
    $msiPath = "$($env:USERPROFILE)\AdMediator.msi"
    (New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/401703a0-263e-4949-8f0f-738305d6ef4b/file/146057/6/AdMediator.msi', $msiPath)
    cmd /c start /wait msiexec /i $msiPath /quiet
    Write-Host "Installed" -ForegroundColor green
    
     
    Write-Host "Installing Microsoft Player Framework 2.0 ..."
    $vsixPath = "$($env:USERPROFILE)\Microsoft.PlayerFramework.vsix"
    (New-Object Net.WebClient).DownloadFile('http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=playerframework&DownloadId=845206&FileTime=130449531816430000&Build=21031', $vsixPath)
    "`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
    & .\install-vsix.cmd
    Write-Host "Installed" -ForegroundColor green
    
    
    
    Write-Host "MS AdaptiveStreaming Client SDK  for Windows PHONE 8.1..."
    $vsixPath = "$($env:USERPROFILE)\AdaptiveStreamingClientSDK.WP8.1_1.0.1016.14.vsix"
    (New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/b837ddf3-6884-436e-aeb7-35c6151a8933/file/129460/2/AdaptiveStreamingClientSDK.WP8.1_1.0.1016.14.vsix', $vsixPath)
    "`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
    & .\install-vsix.cmd
    Write-Host "Installed" -ForegroundColor green
    
    
    Write-Host "Microsoft Smooth Streaming Client SDK for Windows 8.1..."
    $vsixPath = "$($env:USERPROFILE)\SmoothStreamingClientSDK_1.0.417.13.vsix"
    (New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/04423d13-3b3e-4741-a01c-1ae29e84fea6/file/67747/15/SmoothStreamingClientSDK_1.0.417.13.vsix', $vsixPath)
    "`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
    & .\install-vsix.cmd
    Write-Host "Installed" -ForegroundColor green
    
    Write-Host "Microsoft.Media.PlayReadyClient for Phone"
    $vsixPath = "$($env:USERPROFILE)\Microsoft.Media.PlayReadyClient.Phone.vsix"
    (New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/477225f7-cb03-4fe6-8c5b-bfc76db7c09f/file/129044/2/Microsoft.Media.PlayReadyClient.Phone.vsix', $vsixPath)
    "`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
    & .\install-vsix.cmd
    Write-Host "Installed" -ForegroundColor green
    
    
    Write-Host "Rate My App 125..."
    $vsixPath = "$($env:USERPROFILE)\RateMyApp125.vsix"
    (New-Object Net.WebClient).DownloadFile('https://github.com/Microsoft/rate-my-app/blob/master/Source_WPA81/VSix_InstallationPackage/RateMyApp125.vsix?raw=true', $vsixPath)
    "`"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\VSIXInstaller.exe`" /q /a $vsixPath" | out-file ".\install-vsix.cmd" -Encoding ASCII
    & .\install-vsix.cmd
    Write-Host "Installed" -ForegroundColor green
    
  6. Great, thank you for the update and sharing the final script!

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac