src/Misc/EFTools/EntityDesign/VisualStudio/VsUtils.cs
// <summary>
//     Gets the relative path of a given absolute path within a project
// </summary>
// <param name="project">DTE Project</param>
// <param name="path">path that may contain the project path</param>
// <param name="relativePath">relative path in the project</param>
// <returns>true if the path contains the project path or false otherwise</returns>
Gets the relative path of a given absolute path within a project
Gets the relative path of a given absolute path within a project
internal static bool TryGetRelativePathInProject(Project project, string path, out string relativePath)
        {
            relativePath = String.Empty;
            var projectDirectory = GetProjectRoot(project, Services.ServiceProvider);
            return projectDirectory != null && TryGetRelativePathInParentPath(projectDirectory.FullName, path, out relativePath);
        }
internal static bool TryGetRelativePathInProject ( Project project , string path , out string relativePath ) { relativePath = String . Empty ; var projectDirectory = GetProjectRoot ( project , Services . ServiceProvider ) ; return projectDirectory != null && TryGetRelativePathInParentPath ( projectDirectory . FullName , path , out relativePath ) ; }
Gets the relative path of a given absolute path within a project
Gets the relative path of a given absolute path within a project
true if the path contains the project path or false otherwise
true if the path contains the project path or false otherwise
project
Project
None
path
string
path that may contain the project path
path that may contain the project path
string
out
relativePath
relative path in the project
relative path in the project