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

manifest.EntryPoint is null net6 #255

Open
Cornmarket opened this issue Mar 2, 2023 · 1 comment
Open

manifest.EntryPoint is null net6 #255

Cornmarket opened this issue Mar 2, 2023 · 1 comment

Comments

@Cornmarket
Copy link

Cornmarket commented Mar 2, 2023

Getting NRE in Command.cs (line 1640) because manifest.EntryPoint is null.

Reproduce the error by building a simple application like this:

<Project Sdk="Microsoft.NET.Sdk">
 <PropertyGroup Label="Globals">
  <WebView2LoaderPreference>Static</WebView2LoaderPreference>
 </PropertyGroup>
 <PropertyGroup>
  <OutputType>WinExe</OutputType>
   <TargetFramework>net6.0-windows</TargetFramework>
    <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
     <UseWPF>true</UseWPF>
      <LangVersion>latest</LangVersion>
      <StartupObject>FHCDocumentImportExport.App</StartupObject>
      <NoWin32Manifest>true</NoWin32Manifest>
...

Then build it with

dotnet build yourproject.csproj /p:Version=1.2.3.4 /p:OutputPath=...

Then finally run:

deployment-tools\artifacts\bin\MageCLI\Debug\net7.0\dotnet-mage.exe -new Application  -t client\FHCDocumentImportExport.manifest -fd client -v 1.2.3.4  -p amd64

Actual result:

Internal error, please try again. Object reference not set to an instance of an object.

Expected result:

should generate properly the app manifest

@NikolaMilosavljevic
Copy link
Member

@Cornmarket have you tried adding Launcher first? Complete list of steps is available at: https://github.com/dotnet/deployment-tools/tree/main/Documentation/dotnet-mage

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

No branches or pull requests

3 participants