Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Specified EntryPointExe '' was not found in the project outputs #27

Open
jbennink opened this issue Mar 8, 2022 · 4 comments
Open

Comments

@jbennink
Copy link

jbennink commented Mar 8, 2022

When generating an msix for a project that uses the <TargetFrameworks> attribute instead of the <TargetFramework> attribute this error is given. I guess the MSIX Packaging project template is not compatible with this newer attribute?
My project was targeting net5.0-windows only but had previously also targetted net48. Once I found the cause it was easy to reproduce, and it also happens for projects that have this attribute and do use multi-targetting, so targetting net5.0-windows;net48 will not work either. You have to use the <TargetFramework> attribute instead.

Is this by design, a choice or is this supposed to work with the <TargetFrameworks> attribute as well.

@dotMorten
Copy link

I'm hitting this issue as well. I have a WPF project that multi-targets both .NET Framework and .NET 8. I'd like to WAP the .NET 8 target, but I haven't found a way to do this. It gets confused about the multi-targeted nature of the reference project.

@ekalchev
Copy link

ekalchev commented Mar 18, 2024

I found how to reproduce this issue.

  1. Create .net 8 WPF from visual studio template
  2. Create Package project from visual studio template
  3. Add reference to the WPF app in package project
  4. Modify TargetFramework of WPF csproj file to
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>

It seems adding windows build version to TargetFramework is causing this error. Remove this "10.0.17763.0" make it build fine.

Visual Studio version 17.9.0

@ekalchev
Copy link

ekalchev commented Mar 18, 2024

I updated to visual studio 17.9.3 and this is not longer reproducible

@DominikErnst
Copy link

DominikErnst commented Jun 25, 2024

Error still in VS 2022, V 7.10.3, MAUI App, .NET 8

APP:

<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>

MSIX Setup Project:
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.3233" PrivateAssets="all" />

Error:
C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\DesktopBridge\Microsoft.DesktopBridge.targets(746,5): error : Specified EntryPointExe '' was not found in the project outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants