Microsoft.VisualStudio.Project.DesignTimeAssemblyResolution.RarInputs.GetFullPathInProjectContext C# (CSharp) Method

GetFullPathInProjectContext() protected static method

protected static GetFullPathInProjectContext ( Microsoft.Build.Execution.ProjectInstance projectInstance, string path ) : string
projectInstance Microsoft.Build.Execution.ProjectInstance
path string
return string
            protected static string GetFullPathInProjectContext(ProjectInstance projectInstance, string path)
            {
                string fullPath = path;

                if (!Path.IsPathRooted(path))
                {
                    string projectDir = projectInstance.GetPropertyValue(MSBuildProjectDirectory).Trim();

                    fullPath = Path.Combine(projectDir, path);

                    fullPath = Path.GetFullPath(fullPath);
                }

                return fullPath;
            }