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