9 references to TryOpen
Microsoft.Build (1)
Construction\ProjectRootElement.cs (1)
878
return
TryOpen
(path, ProjectCollection.GlobalProjectCollection);
Microsoft.Build.Engine.UnitTests (8)
BackEnd\BuildManager_Tests.cs (8)
2112
Assert.Null(ProjectRootElement.
TryOpen
(rootProjectPath, projectCollection)); // "The built project shouldn't be in the cache anymore."
2113
Assert.Null(ProjectRootElement.
TryOpen
(importedProjectPath, projectCollection)); // "The built project's import shouldn't be in the cache anymore."
2117
Assert.NotNull(preRoot = ProjectRootElement.
TryOpen
(rootProjectPath, projectCollection)); // "The root project file should be in the weak cache."
2118
Assert.NotNull(preImported = ProjectRootElement.
TryOpen
(importedProjectPath, projectCollection)); // "The imported project file should be in the weak cache."
2132
Assert.Same(preRoot, ProjectRootElement.
TryOpen
(rootProjectPath, projectCollection)); // "The root project file should be in the weak cache after a build."
2133
Assert.Same(preImported, ProjectRootElement.
TryOpen
(importedProjectPath, projectCollection)); // "The imported project file should be in the weak cache after a build."
2139
Assert.Null(ProjectRootElement.
TryOpen
(rootProjectPath, projectCollection)); // "The unloaded project shouldn't be in the cache anymore."
2140
Assert.Null(ProjectRootElement.
TryOpen
(importedProjectPath, projectCollection)); // "The unloaded project's import shouldn't be in the cache anymore."