UWP unit test compile errors

后端 未结 1 1298
青春惊慌失措
青春惊慌失措 2021-01-16 10:07

I\'m migrating WPF projects to UWP. While setting up new unit test projects in UWP I\'m running into errors when the new unit test targets a migrated project that in turn ha

相关标签:
1条回答
  • 2021-01-16 10:17

    I was finally able to fix this build error by singling out the problem project by including each project in a unit test (that failed each time with the same error.) As I added and removed projects from the test, I noticed that the one that seemed to cause the issue had the following reference:

    Reference Include="System.EnterpriseServices, Version=4.0.0.0
    

    The reference was added by Visual Studio automatically during the assist process when I was updating the code base to compile against UWP. Once I remove this reference the whole solution compiles w/o error.

    0 讨论(0)
提交回复
热议问题