5 implementations of IResource
Microsoft.Build.Tasks.Core (5)
ResourceHandling\BinaryFormatterByteArrayResource.cs (1)
11
internal class BinaryFormatterByteArrayResource :
IResource
ResourceHandling\FileStreamResource.cs (1)
12
internal class FileStreamResource :
IResource
ResourceHandling\LiveObjectResource.cs (1)
13
internal class LiveObjectResource :
IResource
ResourceHandling\TypeConverterByteArrayResource.cs (1)
11
internal class TypeConverterByteArrayResource :
IResource
ResourceHandling\TypeConverterStringResource.cs (1)
11
internal class TypeConverterStringResource :
IResource
19 references to IResource
Microsoft.Build.Tasks.Core (18)
GenerateResource.cs (8)
3029
foreach (
IResource
resource in MSBuildResXReader.GetResourcesFromFile(filename, shouldUseSourcePath, _logger, _logWarningForBinaryFormatter))
3766
foreach (
IResource
entry in reader.resources)
3806
foreach (
IResource
resource in reader.resources)
3847
private void AddResource(ReaderInfo reader,
IResource
entry, String inputFileName, int lineNumber, int linePosition)
3877
public List<
IResource
> resources;
3878
public Dictionary<string,
IResource
> resourcesHashTable;
3884
resources = new List<
IResource
>();
3885
resourcesHashTable = new Dictionary<string,
IResource
>(StringComparer.OrdinalIgnoreCase);
ResGenDependencies.cs (1)
265
foreach (
IResource
resource in MSBuildResXReader.GetResourcesFromFile(filename, pathsRelativeToBasePath: baseLinkedFileDirectory == null, log, logWarningForBinaryFormatter))
ResourceHandling\MSBuildResXReader.cs (7)
20
public static IReadOnlyList<
IResource
> ReadResources(Stream s, string filename, bool pathsRelativeToBasePath, TaskLoggingHelper log, bool logWarningForBinaryFormatter)
22
var resources = new List<
IResource
>();
108
List<
IResource
> resources,
222
private static void AddLinkedResource(string resxFilename, bool pathsRelativeToBasePath, List<
IResource
> resources, string name, string value)
307
/// Extract <see cref="
IResource
"/>s from a given file on disk.
309
public static IReadOnlyList<
IResource
> GetResourcesFromFile(string filename, bool pathsRelativeToBasePath, TaskLoggingHelper log, bool logWarningForBinaryFormatter)
317
public static IReadOnlyList<
IResource
> GetResourcesFromString(string resxContent, TaskLoggingHelper log, bool logWarningForBinaryFormatter, string basePath = null, bool? useRelativePath = null)
system.design\stronglytypedresourcebuilder.cs (2)
114
internal static CodeCompileUnit Create(Dictionary<string,
IResource
> resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out String[] unmatchable)
122
foreach (KeyValuePair<string,
IResource
> resource in resourceList)
Microsoft.Build.Tasks.UnitTests (1)
ResourceHandling\MSBuildResXReader_Tests.cs (1)
186
private static void AssertSingleStringResource(IReadOnlyList<
IResource
> resources, string name, string value)