I am using visual studio 2022. I first created a desktop app in .net5. The project build successfully. Then I opted to upgrade the application to .net7. The application has no issues but upon building I get the error: Specified EntryPointExe 'Myapp.exe' was not found in the project outputs.
The experience is the same as to what Neha points here:Specified EntryPointExe not found
Here is the Property Group configuration:
<PropertyGroup>
<TargetPlatformVersion>10.0.22000.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
<AssetTargetFallback>net5.0-windows$(TargetPlatformVersion);$(AssetTargetFallback) </AssetTargetFallback>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
</PropertyGroup>