41 references to RequiresAssemblyFiles
Microsoft.Extensions.DependencyModel (6)
DependencyContext.cs (3)
38[RequiresAssemblyFiles("DependencyContext for an assembly from a application published as single-file is not supported. The method will return null. Make sure the calling code can handle this case.")] 64[RequiresAssemblyFiles("DependencyContext for an assembly from a application published as single-file is not supported. The method will return null. Make sure the calling code can handle this case.")] 76[RequiresAssemblyFiles("DependencyContext for an assembly from a application published as single-file is not supported. The method will return null. Make sure the calling code can handle this case.")]
DependencyContextLoader.cs (3)
54[RequiresAssemblyFiles("DependencyContext for an assembly from a application published as single-file is not supported. The method will return null. Make sure the calling code can handle this case.")] 102[RequiresAssemblyFiles("DependencyContext for an assembly from a application published as single-file is not supported. The method will return null. Make sure the calling code can handle this case.")] 125[RequiresAssemblyFiles("The use of DependencyContextLoader is not supported when publishing as single-file")]
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (5)
84[RequiresAssemblyFiles(ThrowingMessageInRAF)] 120[RequiresAssemblyFiles(ThrowingMessageInRAF)] 157[RequiresAssemblyFiles(ThrowingMessageInRAF)] 159[RequiresAssemblyFiles(ThrowingMessageInRAF)] 161[RequiresAssemblyFiles(ThrowingMessageInRAF)]
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (2)
92[RequiresAssemblyFiles("The code will return an empty string for assemblies embedded in a single-file app")] 98[RequiresAssemblyFiles("The code will return an empty string for assemblies embedded in a single-file app")]
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (3)
56[RequiresAssemblyFiles(ThrowingMessageInRAF)] 66[RequiresAssemblyFiles(ThrowingMessageInRAF)] 70[RequiresAssemblyFiles(ThrowingMessageInRAF)]
src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (2)
19[RequiresAssemblyFiles(UnknownStringMessageInRAF)] 21[RequiresAssemblyFiles(UnknownStringMessageInRAF)]
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
627[RequiresAssemblyFiles("Windows only assigns HINSTANCE to assemblies loaded from disk. " +
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
651[RequiresAssemblyFiles(UnknownStringMessageInRAF)] 731[RequiresAssemblyFiles(UnknownStringMessageInRAF)]
src\System\Reflection\RuntimeAssembly.cs (3)
87[RequiresAssemblyFiles(ThrowingMessageInRAF)] 422[RequiresAssemblyFiles(ThrowingMessageInRAF)] 440[RequiresAssemblyFiles(ThrowingMessageInRAF)]
src\System\Reflection\RuntimeModule.cs (3)
406[RequiresAssemblyFiles(UnknownStringMessageInRAF)] 415[RequiresAssemblyFiles(UnknownStringMessageInRAF)] 498[RequiresAssemblyFiles(UnknownStringMessageInRAF)]
System.Reflection.Context (6)
System\Reflection\Context\Delegation\DelegatingAssembly.cs (4)
26[RequiresAssemblyFiles("Calling 'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'", Url = "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/il3000")] 114[RequiresAssemblyFiles("Calling 'System.Reflection.Assembly.GetFile(string)' will throw for assemblies embedded in a single-file app", Url = "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/il3001")] 120[RequiresAssemblyFiles("Calling 'System.Reflection.Assembly.GetFiles()' will throw for assemblies embedded in a single-file app", Url = "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/il3001")] 126[RequiresAssemblyFiles("Calling 'System.Reflection.Assembly.GetFiles(bool)' will throw for assemblies embedded in a single-file app", Url = "https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/il3001")]
System\Reflection\Context\Delegation\DelegatingModule.cs (2)
29[RequiresAssemblyFiles(UnknownStringMessageInRAF)] 52[RequiresAssemblyFiles(UnknownStringMessageInRAF)]
System.Reflection.Emit (1)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
1054[RequiresAssemblyFiles("Returns <Unknown> for modules with no file path")]
System.Reflection.MetadataLoadContext (6)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (2)
49[RequiresAssemblyFiles(ThrowingMessageInRAF)] 54[RequiresAssemblyFiles(ThrowingMessageInRAF)]
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (2)
21[RequiresAssemblyFiles(ThrowingMessageInRAF)] 32[RequiresAssemblyFiles(ThrowingMessageInRAF)]
System\Reflection\TypeLoading\Modules\RoModule.cs (2)
38[RequiresAssemblyFiles(UnknownStringMessageInRAF)] 46[RequiresAssemblyFiles(UnknownStringMessageInRAF)]
System.Windows.Forms (1)
System\Windows\Forms\Control.ControlVersionInfo.cs (1)
158[RequiresAssemblyFiles($"Throws if {nameof(_owner)} is an in-memory assembly. Check {nameof(OwnerIsInMemoryAssembly)} first")]