title: Published .Net Core App Warns to Install .Net Core but it's Already Installed
body: <p>I made a WPF and Console application for someone to use on their private server which I can't have access to. I used Visual Studio 2019's built-in "Publishing Wizard" to create Framework Dependant single-file apps. When the person opened the WPF app they were greeted with the standard warning:</p>
  
  <p><a href="https://i.stack.imgur.com/9ppxj.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/9ppxj.jpg" alt="A message box displaying the warning To run this application, you must install .Net Core. Would you like to download it now?"></a></p>
  
  <p>They clicked yes and to my understanding, they installed .Net Core 3.1 which is what the applications target.</p>
  
  <p>After they restarted the computer they got the exact same warning again. I wasn't sure what was going on so I repackaged the apps as self-contained since the installed version of .Net Core was the same as what my applications were targeting.</p>
  
  <p>That seemed to work for a little bit. We ran into some unrelated issues that I had to fix in the code on my end and then I re-published the projects and sent them out.</p>
  
  <p>They tried to use the WPF application and they got the install warning again.</p>
  
  <p>Now no matter what combination of options I pick in the "Publish Wizard" they keep getting the warning.</p>
  
  <p>I'm not sure what to do.</p>
  
  <p>Here's a picture of my publish settings</p>
  
  <p><a href="https://i.stack.imgur.com/zdq1b.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zdq1b.png" alt="A picture describing the Profile Settings for publishing the WPF application."></a></p>