0

So for some reason my visual studio now puts the exe and build output in a different folder and the exe wont open. It used to be in Bin/Debug/Project.exe and now it's Bin/Debug/netcoreapp3.1/project.exe

I managed to open it once and it said something about hostfxr.dll missing, I downloaded that but now it won't open at all. If it helps, I have .NET 3.1 install, I'm on Windows 10 2004, and Visual Studio 16.6

Sakthivel
  • 1,890
  • 2
  • 21
  • 47
tada66
  • 1

1 Answers1

0

To change the location back to Bin/Debug/Project.exe make the following change in your .csproj file:

<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

After that rebuild and verify if all works fine.

MunibButt
  • 1
  • 3