I am able to replicate this issue, but don't know enough to be able to answer your question clearly, but maybe it may help someone more knowledgeable to help answer it.
It appears to be an issue related to a WPF application referencing a .NET Standard 2.0 class library.
Here are the steps to reproduce:
- Create a new Solution with a WPF App in Visual Studio 2017 with File > New Project> Visual c# > WPF App (.NET Framework)
- Build and Publish. The WPF App runs fine
- Add a new Project to the Solution with File > Add > New Project > Visual C# > .NET Standard > Class Library > .NET Standard (.NET Framework 4.6.1)
- Add a Reference from the WPF App to the .NET Standard Class Library.
- Build and Publish and attempt to install.
Get an Error "Unable to install or run the application. The Application requires that assembly System.Drawing.Primitives Version 4.0.2.0 be installed in the Global Assembly Cache first.
I have this simple project reproduced in git.
https://github.com/colhountech/WPF_With_NetStandard
Hope this helps someone to resolve it. I've got the same issue with a simple WPF project I am trying unsuccessfully to resolve.