Partager via


ProjectRootElement.TryOpen Method

Include Protected Members
Include Inherited Members

Gets the project root in the global project collection that was loaded into memory from the specified file path. or null if it is not currently in memory.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member TryOpen(String) Gets the project root in the global project collection that was loaded into memory from the specified file path. or null if it is not currently in memory. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Public methodStatic member TryOpen(String, ProjectCollection) Gets the project root in the specified project collection that was loaded into memory from the specified file path. or null if it is not currently in memory. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Top

See Also

Reference

ProjectRootElement Class

Microsoft.Build.Construction Namespace