Microsoft.VisualStudio.Project.DesignTimeAssemblyResolution.RarInputs.GetFullPathInProjectContext C# (CSharp) Метод

GetFullPathInProjectContext() защищенный статический Метод

protected static GetFullPathInProjectContext ( Microsoft.Build.Execution.ProjectInstance projectInstance, string path ) : string
projectInstance Microsoft.Build.Execution.ProjectInstance
path string
Результат 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;
            }