28 references to RoslynCodeTaskFactoryCodeType
Microsoft.Build.Tasks.Core (10)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (8)
184
if (taskInfo.CodeType ==
RoslynCodeTaskFactoryCodeType
.Class && parameterGroup.Count == 0)
203
/// Gets the full source code by applying an appropriate template based on the current <see cref="
RoslynCodeTaskFactoryCodeType
"/>.
207
if (taskInfo.CodeType ==
RoslynCodeTaskFactoryCodeType
.Class)
226
if (taskInfo.CodeType ==
RoslynCodeTaskFactoryCodeType
.Fragment)
298
CodeType =
RoslynCodeTaskFactoryCodeType
.Fragment,
442
taskInfo.CodeType =
RoslynCodeTaskFactoryCodeType
.Class;
456
if (!Enum.TryParse(typeAttribute.Value.Trim(), ignoreCase: true, result: out
RoslynCodeTaskFactoryCodeType
codeType))
458
log.LogErrorWithCodeFromResources("CodeTaskFactory.InvalidCodeType", typeAttribute.Value, String.Join(", ", Enum.GetNames(typeof(
RoslynCodeTaskFactoryCodeType
))));
RoslynCodeTaskFactory\RoslynCodeTaskFactoryTaskInfo.cs (2)
19
/// Gets or sets the <see cref="
RoslynCodeTaskFactoryCodeType
"/> of the task.
21
public
RoslynCodeTaskFactoryCodeType
CodeType { get; set; }
Microsoft.Build.Tasks.UnitTests (18)
RoslynCodeTaskFactory_Tests.cs (18)
227
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Fragment);
248
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Fragment,
264
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Method);
287
foreach (
RoslynCodeTaskFactoryCodeType
codeType in Enum.GetValues(typeof(
RoslynCodeTaskFactoryCodeType
)).Cast<
RoslynCodeTaskFactoryCodeType
>())
297
TryLoadTaskBodyAndExpectSuccess($"<Code Source=\"{file.Path}\"/>", expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Class);
299
foreach (
RoslynCodeTaskFactoryCodeType
codeType in Enum.GetValues(typeof(
RoslynCodeTaskFactoryCodeType
)).Cast<
RoslynCodeTaskFactoryCodeType
>())
327
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Class,
356
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Fragment,
368
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Method);
396
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Class,
413
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Fragment);
429
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Method);
605
expectedCodeType:
RoslynCodeTaskFactoryCodeType
.Class);
796
RoslynCodeTaskFactoryCodeType
? expectedCodeType = null,