Build failing on reference to "Windows.UI.winmd"

Dennis's Avatar

Dennis

08 Oct, 2017 02:23 PM

Hello all,

I have added a reference to Windows.UI.winmd in my .NET desktop app to be able to send Toast Notications. On my PC this seems to build correctly, but it does not seems to work on appveyor.

The failing build can be found here: https://ci.appveyor.com/project/denxorz/hotchocolatey/build/6.0.1+17.build.17
The project file can be found here: https://github.com/denxorz/HotChocolatey/blob/master/HotChocolatey/HotChocolatey.csproj

Thanks for your help!
Dennis

  1. Support Staff 1 Posted by Ilya Finkelshte... on 09 Oct, 2017 05:31 PM

    Ilya Finkelshteyn's Avatar

    I am little bit confused because build you sent is triggered by commit, which did not introduce any references. You probably meant this commit, right? I am not familiar with this, but I wonder is it supposed to work on Windows Server? AppVeyor build VMs are Windows Server 2012R2 (for Visual Studio 2015 build worker image) and Windows Server 2016 (for Visual Studio 2017 build worker image) and not Windows 10 or Windows 8...

  2. 2 Posted by Dennis on 09 Nov, 2017 09:07 PM

    Dennis's Avatar

    Yeah, I indeed linked the build after the commit.

    I changed the TargetFrameworkVersion from 8.1 to 10.0.10586, switch should both be installed with VS2017. And the build with 10.0.10586 does work.

    The change that fixed it for me:
    https://github.com/denxorz/HotChocolatey/commit/d4003378ae6a100369a8532603dda4880b1b105d

    Dennis

  3. Support Staff 3 Posted by Ilya Finkelshte... on 09 Nov, 2017 09:34 PM

    Ilya Finkelshteyn's Avatar

    Thanks a lot for the update!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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