0

I have a project that works on my development computer.

I am able to publish it when the deployment mode is set to Framework-dependant and target runtime is set to Portable. But if I change it to Deployment mode Self Contained and Target Runtime Win-x86 or Win-x64 I get this error:

Metadata file 'C:\Sppro\Projects\xxx\Source\xxx ModelCore\bin\Release\net5.0\win-x86\ref\xxx ModelCore.dll' could not be found  

There is no files in C:\Sppro\Projects\xxx\Source\xxx ModelCore\bin\Release\net5.0\win-x86\ref\

I've tried changing my configuration to X86 or X64 and building, but it does not populate these folders.

Michael
  • 8,229
  • 20
  • 61
  • 113
  • According to your description, I suggest you could try to use this solution:Close Visual Studio Delete the hidden .vs folder Reopen Visual Studio and rebuild the solution. – Brando Zhang Jul 30 '21 at 08:07
  • thanks for your response, but this did not solve the problem – Michael Aug 12 '21 at 04:02

0 Answers0