Missing Directive or Assembly Reference error on a new added project

prajjwaldimri's Avatar

prajjwaldimri

Feb 13, 2016 @ 05:10 PM

Hi everyone. I am creating a Windows Universal app and have integrated AppVeyor. At starting AppVeyor was working great but when I added a new project for my Background Task, it is always showing errors in the build. I have attached log file of my latest build. As suggested somewhere else I have also built my app on other computer and it is building fine.
Can anyone suggest what could be the problem? Please

Thanks and Regards.

  1. prajjwaldimri closed this discussion on Feb 14, 2016 @ 02:59 PM.

  2. prajjwaldimri re-opened this discussion on Feb 14, 2016 @ 02:59 PM

  3. Support Staff 1 Posted by Feodor Fitsner on Feb 14, 2016 @ 09:11 PM

    Feodor Fitsner's Avatar

    Have you tried using RDP to debug the issue: http://www.appveyor.com/docs/how-to/rdp-to-build-worker

  4. 2 Posted by prajjwaldimri on Feb 15, 2016 @ 03:15 AM

    prajjwaldimri's Avatar

    Not connecting as the build lasts only 10 seconds and the server doesn’t let me connect to it.

  5. Support Staff 3 Posted by Feodor Fitsner on Feb 15, 2016 @ 03:24 AM

    Feodor Fitsner's Avatar

    Add $blockRdp = $true; to block on RDP:

    $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
    
  6. 4 Posted by prajjwaldimri on Feb 16, 2016 @ 05:05 PM

    prajjwaldimri's Avatar

    I have solved the errors. It was being caused by framework version incompatibility between the two projects. It is building in the VS 2015 on the server. However, the msbuild is still throwing all those errors on the appveyor console. One thing I noticed in VS on the server that I need to do a full nuget package restore to build it successfully. Can i enforce the nuget restore before build in appveyor? Thanks

  7. Support Staff 5 Posted by Feodor Fitsner on Feb 16, 2016 @ 05:19 PM

    Feodor Fitsner's Avatar

    Sure, you can add nuget restore <solution> command to "Before build" section of your project.

  8. 6 Posted by prajjwaldimri on Feb 16, 2016 @ 05:42 PM

    prajjwaldimri's Avatar

    It is fixed now. I just added a generated Temporary Key from package.appxmanifest. I am going to leave link to my repo here so anyone having the same problem can refer to my commits.

    https://github.com/prajjwaldimri/Friend-App/tree/beta

    Thanks :)

  9. Ilya Finkelshteyn closed this discussion on Aug 25, 2018 @ 02:04 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