MSBuildSdkExtras icon indicating copy to clipboard operation
MSBuildSdkExtras copied to clipboard

Can't add reference project in UWP targeting app

Open weitzhandler opened this issue 3 years ago • 4 comments

Hi,

When using a cross-targeted project with MSBuild.Sdk.Extras and a UWP target, the “Add Reference” UI on that project in VS fails with "Missing value for TargetPlatformWinMDLocation property".

Cross posted from here (by @jeromelaban).

weitzhandler avatar Oct 01 '20 03:10 weitzhandler

The problem with that property is the way it is defined in UWP's own targets, making it difficult to provide the proper value. A fix from the IDE would most likely be required.

jeromelaban avatar Oct 01 '20 11:10 jeromelaban

The thing is that when they close an issue on Dev Community it gets locked down to vote and comments or any further feedback.

weitzhandler avatar Oct 01 '20 11:10 weitzhandler

I opened this issue, asking for full support of UWP projects in SDK-style. Please vote.

weitzhandler avatar Oct 07 '20 04:10 weitzhandler

Noting there is a workaround which is to not list uap first in the list of TargetFrameworks. I found this tip here: https://developercommunity.visualstudio.com/content/problem/1170010/missing-value-for-targetplatformwinmdlocation-prop.html

sjb-sjb avatar Jan 18 '21 13:01 sjb-sjb