Class BuildCodeBehindTask
Build task to automatically crate code behind files which bases on generated c# files (*.g.cs).
Implements
Microsoft.Build.Framework.ITask
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.CXUI.Xaml
Assembly: Simplic.CXUI.Xaml.dll
Syntax
public class BuildCodeBehindTask : BuildTaskBase, ITask
Methods
| Improve this Doc View SourceExecute()
Build autogenerated codebehind files for all controls, that does not have any code behind file yet.
Declaration
public override bool Execute()
Returns
Type | Description |
---|---|
System.Boolean | True if creating was successfull |
Overrides
| Improve this Doc View SourceGetCodeBehind(String)
Generate a code behind file which bases on (YourXaml.g.cs) using roslyn
Declaration
public string GetCodeBehind(string xamlGeneratedCSFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | xamlGeneratedCSFile | *.g.cs file as base |
Returns
Type | Description |
---|---|
System.String | Empty string if no valid file was passed, else a valid code behind file |
GetFullNamespace(INamespaceSymbol)
Get the complete namespace by the starting namespace symbol
Declaration
public string GetFullNamespace(INamespaceSymbol namespaceSymbol)
Parameters
Type | Name | Description |
---|---|---|
INamespaceSymbol | namespaceSymbol | Symbol instance |
Returns
Type | Description |
---|---|
System.String | Empty string if no namespace exists, else the full path. Your.Namespace.Whatever |
Implements
Microsoft.Build.Framework.ITask