다음을 통해 공유


WriteCodeFragment.Language Property

Gets or sets the language of code to generate.

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.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
<RequiredAttribute> _
Public Property Language As String
[RequiredAttribute]
public string Language { get; set; }
[RequiredAttribute]
public:
property String^ Language {
    String^ get ();
    void set (String^ value);
}
[<RequiredAttribute>]
member Language : string with get, set
function get Language () : String 
function set Language (value : String)

Property Value

Type: System.String
Returns the language of code to generate.

Remarks

Language name can be any language for which a CodeDom provider is available. For example, "C#", "VisualBasic". The file emitted is given the default extension for that language.

.NET Framework Security

See Also

Reference

WriteCodeFragment Class

Microsoft.Build.Tasks Namespace