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

Non-nullable property 'Path' must contain a non-null value when exiting constructor. #91

Closed
lnaphade opened this issue Aug 20, 2021 · 1 comment

Comments

@lnaphade
Copy link

Build started...
1>------ Build started: Project: Seatbelt, Configuration: Debug Any CPU ------
1>C:\Users\Lalit\Source\Repos\Seatbelt\Seatbelt\Commands\Misc\LOLBAS.cs(130,27,130,31): error CS8618: Non-nullable property 'Path' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

WriteVerbose($"Found: {query.Count()} LOLBAS");
WriteHost("\nTo see how to use the LOLBAS that were found go to https://lolbas-project.github.io/");
}

    internal class LolbasDTO : CommandDTOBase
    {

line 130: public string Path { get; set; }

@leechristensen
Copy link
Member

Are you using the latest version of Seatbelt from Github? The LOLBAS constructor initializes that value in the current code. See
https://github.com/GhostPack/Seatbelt/blob/master/Seatbelt/Commands/Misc/LOLBAS.cs#L128-L135

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

2 participants