次の方法で共有


ProjectCollection Constructor (IDictionary<String, String>)

Instantiates a project collection with specified global properties, no loggers, and that reads toolset information from the configuration file and registry.

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.

Namespace:  Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Sub New ( _
    globalProperties As IDictionary(Of String, String) _
)
public ProjectCollection(
    IDictionary<string, string> globalProperties
)
public:
ProjectCollection(
    IDictionary<String^, String^>^ globalProperties
)
new : 
        globalProperties:IDictionary<string, string> -> ProjectCollection
public function ProjectCollection(
    globalProperties : IDictionary<String, String>
)

Parameters

  • globalProperties
    Type: IDictionary<String, String>

    The default global properties to use. May be null.

Remarks

May throw InvalidToolsetDefinitionException.

.NET Framework Security

See Also

Reference

ProjectCollection Class

ProjectCollection Overload

Microsoft.Build.Evaluation Namespace