San
San

Reputation: 65

Code Metrics in UWP is throwing Assembly reference error (Windows.Phone.PhoneContract)

An error occurred while calculating code metrics for target file '[...]' in project [...]. The following error was encountered while reading module '[...]': Assembly reference cannot be resolved: Windows.Phone.PhoneContract, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null."

Upvotes: 0

Views: 143

Answers (1)

Joshua Todd Cowper
Joshua Todd Cowper

Reputation: 1

I had a similar error. Fixed it as follows:

Right click on References in your project, go to Add Reference, Universal Windows, Extensions, and tick Windows Mobile Extensions for the UWP.

Upvotes: 0

Related Questions