Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

DpiAwareness: Type exists in two assemblies

$
0
0

Hi,

recent changes in VS2019 introduced DpiAwareness for VS Extensions. However, legacy/WinForms controls won't work out of the box: Currently, those controls are not rendered (they remain blank/transparent). Some info can be found here: Resharper-Blog_DpiAwareness

There is a proposed solution from Microsoft which sounds fine but doesn't work for me, because I get the error: "The Type DpiAwareness exists in both Microsoft.VisualStudio.DpiAwareness [...] and Microsoft.VisualStudio.Utilities [...]". Both of these references are, however, "part of the BulidSystem" and cannot be removed.

So how can I resolve this conflict? My project basicall references Microsoft.VisualStudio.SDK and Microsoft.VSSDK.BuildTools.

Or is there any other way to disable/change/whatever DpiAwareness so that my WinForm ToolWindows will show up again?

I am also aware of the Option "Optimize rendering for screens with different pixel densities...", but I don't want the customers to change settings to make my windows show...

Thanks and regards,

f_max


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>