Skip to content

[Question] Changes to DirectoryExists from 3.1.0 to 4.1.0 #536

@christophwille

Description

@christophwille

https://github.com/icsharpcode/ILSpy/blob/1100d64e4bbd878164e3cbf17d8b741ad11bdb44/ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs#L93

[DirectoryExists]
[Option("-r|--referencepath <path>", "Path to a directory containing dependencies of the assembly that is being decompiled.", CommandOptionType.MultipleValue)]
public string[] ReferencePaths { get; } = new string[0];

Sample call: .\ilspycmd ilspycmd.dll

The old behavior: if the option isn't specified it won't be checked
The new behavior: "check always even if not specified"

Didn't see that in the release notes. What would be the way to specify "Check directory exists only if parameter is supplied" in 4? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions