You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MageCLI .Validate(Manifest manifest) object reference not set #313
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
Activity
NikolaMilosavljevic commentedon Jan 16, 2024
[Triage] @plutext can you provide a simple repro?
janthomasQS commentedon Mar 31, 2025
I am looking at an ApplicationManifest that does not provide an entrypoint assembly but customhostrequired instead. During Validation (which runs even after -Update) Manifest.Entrypoint is null which causes a the crash here: https://github.com/dotnet/deployment-tools/blob/main/src/clickonce/MageCLI/Command.cs#L1607
Fix NullReferenceException in MageCLI Validate for manifests without …
Sync Release/releases json/1.0.2 with main (#570)