title: UWP App Compilation Error PRI175 with 0xdef00071
body: <p>We have a UWP app which is referring some UWP class libraries and some Portable Class Library (PCL) libraries.</p>
  
  <p>Recently we have converted some of these PCL libraries to .NET Standard 2.0 project and post to that, we are getting the below error on compiling the UWP app.</p>
  
  <pre><code>error PRI175 : 0x80070002 - Processing Resources failed with error : The system cannot find the file specified.
  GENERATEPROJECTPRIFILE : error PRI252: 0xdef00071 - File &lt;UWP Class Library Project Folder&gt;\bin\x64\Debug\&lt;UWP Class Library Project Name&gt;.pri not found.       
  </code></pre>
  
  <p>An additional thing is, there are 13 UWP class libraries in total referred (3 directly or 10 indirectly) by this UWP app project, and all these are giving the below build error on the build of solution (by setting UWP app project as the startup project) or build of the UWP app project itself:</p>
  
  <pre><code>CA0055 : Could not identify platform for '&lt;Corresponding UWP class library project folder&gt;\bin\x64\Debug\&lt;UWP class library name&gt;.dll'.
  CA0052 : No targets were selected.
  </code></pre>
  
  <p>But, these <code>CA0052</code> and <code>CA0055</code> errors goes off for all these projects, if all those are built independently afterwards. It looks like an issue only on the clean build and not on an incremental build. Not sure but, this maybe having something to do with this main error of the UWP app build.</p>
  
  <p><strong>Note:</strong> There is a point that for the PCL library converted to .NET Standard is having some resource files (.resx files) included in it. Similarly the UWP class library whose name appears in this error message have some other resource files (.resx files) included in it as well.</p>
  
  <p>I read another question on the similar ground at <a href="https://stackoverflow.com/questions/45392165/issue-building-uwp-app-using-msbuild-generateprojectprifile">Issue building UWP app using MSBuild (GENERATEPROJECTPRIFILE)</a>.
  But, the issue there is majorly related to Cake build. Issue here is happening with Visual Studio build itself. Solution posted in this post is not solving my issue.</p>