dotnet / deployment-tools

This repo contains the code to build the .NET deployment tools and installers for all supported platforms, as well as the sources to .NET deployment tools.
MIT License
163 stars 50 forks source link

MageCLI .Validate(Manifest manifest) object reference not set #313

Open plutext opened 8 months ago

plutext commented 8 months ago
 Object reference not set to an instance of an object.
3>     at Microsoft.Deployment.MageCLI.Command.Validate(Manifest manifest) in C:\Users\jh\deployment-tools\src\clickonce\MageCLI\Command.cs:line 1639
3>     at Microsoft.Deployment.MageCLI.Command.ExecuteManifestRelated() in C:\Users\jh\deployment-tools\src\clickonce\MageCLI\Command.cs:line 1439
3>     at Microsoft.Deployment.MageCLI.Command.Execute() in C:\Users\jh\deployment-tools\src\clickonce\MageCLI\Command.cs:line 1486
3>     at Microsoft.Deployment.MageCLI.Application.Main(String[] args) in C:\Users\jh\deployment-tools\src\clickonce\MageCLI\Application.cs:line 44

Problem solved by checking manifest.EntryPoint.TargetPath is not null

NikolaMilosavljevic commented 6 months ago

[Triage] @plutext can you provide a simple repro?