Freigeben über


CompatibleFrameworkCollection Class

Represents a collection of versions of the .NET Framework that an application prefers to run on.

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.

Inheritance Hierarchy

System.Object
  Microsoft.Build.Tasks.Deployment.ManifestUtilities.CompatibleFrameworkCollection

Namespace:  Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
Public NotInheritable Class CompatibleFrameworkCollection _
    Implements IEnumerable
[ComVisibleAttribute(false)]
public sealed class CompatibleFrameworkCollection : IEnumerable
[ComVisibleAttribute(false)]
public ref class CompatibleFrameworkCollection sealed : IEnumerable
[<Sealed>]
[<ComVisibleAttribute(false)>]
type CompatibleFrameworkCollection =  
    class 
        interface IEnumerable 
    end
public final class CompatibleFrameworkCollection implements IEnumerable

The CompatibleFrameworkCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of .NET Framework versions listed in the CompatibleFrameworkCollection collection.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 property Item Gets a version of the .NET Framework that an application prefers to run on.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

Methods

  Name Description
Public method Add Adds a framework to the CompatibleFramework class.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 method Clear Clears the collection.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 method Equals (Inherited from Object.)
Public method GetEnumerator Gets the enumerator for the collection.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 method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

If an application can run on multiple versions of the .NET Framework, the versions should be listed in priority order from most preferred to least preferred. If a version of the .NET Framework listed in the CompatibleFrameworkCollection class is installed on the end-user computer, the application can install and run.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Build.Tasks.Deployment.ManifestUtilities Namespace