TryResolveFromPath Method
Definition
- Namespace
- Cuemon.Reflection
- Assemblies
- Cuemon.Core.dll
TryResolveFromPath(string, out string)
Attempts to resolve the nearest target framework moniker found in the specified path.
public static bool TryResolveFromPath(string path, out string targetFrameworkMoniker)
Parameters
pathstringThe path whose directory hierarchy should be inspected for a target-framework-like folder name.
targetFrameworkMonikerstringWhen this method returns, contains the nearest resolved target framework moniker found in the specified
path, or null if the operation failed.
Returns
- bool
trueif a target framework moniker was resolved successfully from the specifiedpath; otherwise,false.