73 references to XamlBuildTaskServices
XamlBuildTask (73)
Microsoft\Build\Tasks\Xaml\AttributeData.cs (4)
150
XamlType arrayType =
XamlBuildTaskServices
.GetXamlTypeFromString(xamlArrayReader.Value as string, namespaceTable, xamlArrayReader.SchemaContext);
295
XamlType xamlType =
XamlBuildTaskServices
.GetXamlTypeFromString(paramValue, namespaceTable, schemaContext);
298
if (!
XamlBuildTaskServices
.TryGetClrTypeName(xamlType, rootNamespace, out clrTypeName))
300
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.TypeNameUnknown(
XamlBuildTaskServices
.GetFullTypeName(xamlType))));
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (7)
182
if (!
XamlBuildTaskServices
.TryGetClrTypeName(classData.BaseType, classData.RootNamespace, out baseClrTypeName, out isLocal))
185
new InvalidOperationException(SR.TaskCannotResolveType(
XamlBuildTaskServices
.GetFullTypeName(classData.BaseType))),
212
if (!
XamlBuildTaskServices
.TryGetClrTypeName(attrib.Type, classData.RootNamespace, out clrTypeName, out isLocal))
215
new InvalidOperationException(SR.TaskCannotResolveType(
XamlBuildTaskServices
.GetFullTypeName(attrib.Type))),
356
new InvalidOperationException(SR.TaskCannotResolveFieldType(
XamlBuildTaskServices
.GetFullTypeName(fieldData.Type), fieldData.Name)),
902
XamlBuildTaskServices
.GetFullTypeName(property.Type), property.Name)), classData.FileName);
963
if (!
XamlBuildTaskServices
.TryGetClrTypeName(xamlType, classData.RootNamespace, out propClrTypeName, out isLocal))
Microsoft\Build\Tasks\Xaml\ClassImporter.cs (12)
163
string typeArgXmlns =
XamlBuildTaskServices
.UpdateClrNamespaceUriWithLocalAssembly(typeArg.PreferredXamlNamespace, this.localAssemblyName);
180
string xmlns =
XamlBuildTaskServices
.UpdateClrNamespaceUriWithLocalAssembly(xamlType.PreferredXamlNamespace, this.localAssemblyName);
190
string xmlns =
XamlBuildTaskServices
.UpdateClrNamespaceUriWithLocalAssembly(member.DeclaringType.PreferredXamlNamespace, this.localAssemblyName);
199
XamlBuildTaskServices
.UpdateClrNamespaceUriWithLocalAssembly(reader.Namespace.Namespace, this.localAssemblyName),
238
string namespaceName = string.Format(CultureInfo.InvariantCulture, "{0}{1};{2}{3}",
XamlBuildTaskServices
.ClrNamespaceUriNamespacePart, @namespace,
XamlBuildTaskServices
.ClrNamespaceUriAssemblyPart, this.localAssemblyName);
269
if (
XamlBuildTaskServices
.TryExtractClrNs(member.PreferredXamlNamespace, out clrNs) &&
309
if (!objectName.StartsWith(
XamlBuildTaskServices
.SerializerReferenceNamePrefix,
334
classData.IsPublic =
XamlBuildTaskServices
.IsPublic(classModifier);
341
currentObject.Visibility =
XamlBuildTaskServices
.GetMemberVisibility(fieldModifier);
474
property.Visibility =
XamlBuildTaskServices
.GetMemberVisibility(propertyModifier);
503
return
XamlBuildTaskServices
.GetXamlTypeFromString((string)xamlReader.Value, this.namespaceTable, xamlReader.SchemaContext);
Microsoft\Build\Tasks\Xaml\CompilationPass2Task.cs (4)
149
appDomain =
XamlBuildTaskServices
.CreateAppDomain("CompilationPass2AppDomain_" + Guid.NewGuid(), BuildTaskPath);
165
XamlBuildTaskServices
.LogException(
183
XamlBuildTaskServices
.LogException(this.Log, e.Message);
281
wrapper.XamlBuildTaskTypeInspectionExtensionNames =
XamlBuildTaskServices
.GetXamlBuildTaskExtensionNames(this.XamlBuildTypeInspectionExtensionNames);
Microsoft\Build\Tasks\Xaml\CompilationPass2TaskInternal.cs (10)
176
local.AddReferences(
XamlBuildTaskServices
.GetReferences(this.references));
201
loadedAssemblyList =
XamlBuildTaskServices
.Load(this.References, false);
209
localAssembly =
XamlBuildTaskServices
.Load(LocalAssemblyReference);
214
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message, e.FileName, 0, 0);
219
AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += new ResolveEventHandler(
XamlBuildTaskServices
.ReflectionOnlyAssemblyResolve);
240
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message, app, 0, 0);
263
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message, inputMarkupFile, 0, 0);
287
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message);
322
ResolveAssemblyHelper resolveAssemblyHelper = new ResolveAssemblyHelper(
XamlBuildTaskServices
.GetReferences(this.References));
329
XamlBuildTaskServices
.GetXamlBuildTaskExtensions<IXamlBuildTypeInspectionExtension>(
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (1)
135
XamlBuildTaskServices
.LogException(this.Log, e.Message);
Microsoft\Build\Tasks\Xaml\NamespaceTable.cs (1)
75
XamlBuildTaskServices
.UpdateClrNamespaceUriWithLocalAssembly(reader.Namespace.Namespace, this.localAssemblyName),
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTask.cs (4)
196
XamlBuildTaskServices
.LogException(this.Log, e.Message);
235
XamlBuildTaskServices
.LogException(this.Log, e.Message);
266
return
XamlBuildTaskServices
.CreateAppDomain("PartialClassAppDomain_" + Guid.NewGuid(), BuildTaskPath);
365
wrapper.XamlBuildTaskTypeGenerationExtensionNames =
XamlBuildTaskServices
.GetXamlBuildTaskExtensionNames(this.XamlBuildTypeGenerationExtensionNames);
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTaskInternal.cs (14)
85
local.AddReferences(
XamlBuildTaskServices
.GetReferences(this.references));
287
this.xamlBuildTypeGenerationExtensions =
XamlBuildTaskServices
.GetXamlBuildTaskExtensions<IXamlBuildTypeGenerationExtension>(
293
AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += new ResolveEventHandler(
XamlBuildTaskServices
.ReflectionOnlyAssemblyResolve);
303
this.LoadedAssemblyList =
XamlBuildTaskServices
.Load(this.References, IsInProcessXamlMarkupCompile);
307
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message, e.FileName, 0, 0);
329
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message, e.Source, e.LineNumber, e.LinePosition);
339
XamlBuildTaskServices
.LogException(this.BuildLogger, SR.AssemblyCannotBeResolved(
XamlBuildTaskServices
.FileNotLoaded), inputMarkupFile, 0, 0);
348
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message, inputMarkupFile, 0, 0);
383
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message);
409
XamlBuildTaskServices
.PopulateModifiers(codeDomProvider);
421
string markupFileName = Path.ChangeExtension(outputFileName, GeneratedSourceExtension +
XamlBuildTaskServices
.XamlExtension);
626
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message, xamlFileName, e.LineNumber, e.LinePosition);
631
XamlBuildTaskServices
.LogException(this.BuildLogger, e.Message, xamlFileName, e.LineNumber, e.LinePosition);
Microsoft\Build\Tasks\Xaml\WrappingXamlSchemaContext.cs (2)
45
xamlNamespace =
XamlBuildTaskServices
.UpdateClrNamespaceUriWithLocalAssembly(xamlNamespace, this.localAssemblyName, this.realAssemblyName);
91
namespaces.Add(
XamlBuildTaskServices
.UpdateClrNamespaceUriWithLocalAssembly(ns, this.localAssemblyName, this.realAssemblyName));
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (9)
145
if (string.Equals(memberModifier,
XamlBuildTaskServices
.PrivateModifier, StringComparison.OrdinalIgnoreCase))
149
else if (string.Equals(memberModifier,
XamlBuildTaskServices
.PublicModifier, StringComparison.OrdinalIgnoreCase))
153
else if (string.Equals(memberModifier,
XamlBuildTaskServices
.ProtectedModifier, StringComparison.OrdinalIgnoreCase))
157
else if (string.Equals(memberModifier,
XamlBuildTaskServices
.InternalModifier, StringComparison.OrdinalIgnoreCase))
161
else if (string.Equals(memberModifier,
XamlBuildTaskServices
.ProtectedInternalModifier, StringComparison.OrdinalIgnoreCase))
165
else if (string.Equals(memberModifier,
XamlBuildTaskServices
.ProtectedAndInternalModifier, StringComparison.OrdinalIgnoreCase))
386
@namespace.TrimEnd(' ', ';'),
XamlBuildTaskServices
.ClrNamespaceUriAssemblyPart, localAssemblyName);
483
if (
XamlBuildTaskServices
.IsClrNamespaceUri(@namespace, out nsIndex, out assemblyIndex))
489
assemblyIndex -
XamlBuildTaskServices
.ClrNamespaceUriAssemblyPart.Length - nsIndex - 1).TrimEnd(' ', ';');
Microsoft\Build\Tasks\Xaml\XamlValidatingReader.cs (5)
88
ValidationError(SR.AssemblyCannotBeResolved(
XamlBuildTaskServices
.FileNotLoaded));
418
if (
XamlBuildTaskServices
.TryExtractClrNs(declaringType.PreferredXamlNamespace, out clrNs))
473
XamlBuildTaskServices
.GetUnresolvedLeafTypeArg(type, ref unresolvedLeafTypeList);
492
if (
XamlBuildTaskServices
.GetTypeNameInAssemblyOrNamespace(type, this.localAssemblyName, this.realAssemblyName, out typeName, out assemblyName, out ns))
504
return
XamlBuildTaskServices
.GetTypeName(type, this.localAssemblyName, this.realAssemblyName);