50 references to StatusCode
dotnet-aot (8)
ManagedHost.cs (8)
131StatusCode result = Interop.hostfxr_initialize_for_dotnet_command_line( 137if (result != StatusCode.Success && handle == 0) 156StatusCode propertyResult = Interop.hostfxr_set_runtime_property_value( 158if (propertyResult != StatusCode.Success) 179StatusCode appResult = Interop.hostfxr_run_app(handle); 207StatusCode result = Interop.hostfxr_initialize_for_runtime_config( 212if (result != StatusCode.Success && _hostContextHandle == 0) 223if (result != StatusCode.Success)
Microsoft.DotNet.NativeWrapper (42)
_generated\0\LibraryImports.g.cs (23)
8internal static partial global::Microsoft.DotNet.NativeWrapper.StatusCode hostfxr_get_dotnet_environment_info(string dotnetRoot, nint reserved, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_get_dotnet_environment_info_result_fn result, nint resultContext) 14global::Microsoft.DotNet.NativeWrapper.StatusCode __retVal = default; 37static extern unsafe global::Microsoft.DotNet.NativeWrapper.StatusCode __PInvoke(nint __dotnetRoot_native, nint __reserved_native, nint __result_native, nint __resultContext_native); 56internal static partial global::Microsoft.DotNet.NativeWrapper.StatusCode hostfxr_resolve_sdk2(string exeDir, string workingDir, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_resolve_sdk2_flags_t flags, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_resolve_sdk2_result_fn result) 63global::Microsoft.DotNet.NativeWrapper.StatusCode __retVal = default; 88static extern unsafe global::Microsoft.DotNet.NativeWrapper.StatusCode __PInvoke(nint __exeDir_native, nint __workingDir_native, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_resolve_sdk2_flags_t __flags_native, nint __result_native); 99private static partial global::Microsoft.DotNet.NativeWrapper.StatusCode hostfxr_get_available_sdks_private(string exeDir, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_get_available_sdks_result_fn result) 105global::Microsoft.DotNet.NativeWrapper.StatusCode __retVal = default; 128static extern unsafe global::Microsoft.DotNet.NativeWrapper.StatusCode __PInvoke(nint __exeDir_native, nint __result_native); 139internal static partial global::Microsoft.DotNet.NativeWrapper.StatusCode hostfxr_initialize_for_runtime_config(nint runtimeConfigPath, in global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_initialize_parameters parameters, out nint hostContextHandle) 144global::Microsoft.DotNet.NativeWrapper.StatusCode __retVal; 156static extern unsafe global::Microsoft.DotNet.NativeWrapper.StatusCode __PInvoke(nint __runtimeConfigPath_native, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_initialize_parameters* __parameters_native, nint* __hostContextHandle_native); 167internal static partial global::Microsoft.DotNet.NativeWrapper.StatusCode hostfxr_get_runtime_delegate(nint hostContextHandle, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_delegate_type type, out nint @delegate) 172global::Microsoft.DotNet.NativeWrapper.StatusCode __retVal; 183static extern unsafe global::Microsoft.DotNet.NativeWrapper.StatusCode __PInvoke(nint __hostContextHandle_native, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_delegate_type __type_native, nint* __delegate_native); 194internal static partial global::Microsoft.DotNet.NativeWrapper.StatusCode hostfxr_initialize_for_dotnet_command_line(int argc, string[] argv, in global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_initialize_parameters parameters, out nint hostContextHandle) 201global::Microsoft.DotNet.NativeWrapper.StatusCode __retVal = default; 256static extern unsafe global::Microsoft.DotNet.NativeWrapper.StatusCode __PInvoke(int __argc_native, nint* __argv_native, global::Microsoft.DotNet.NativeWrapper.Interop.hostfxr_initialize_parameters* __parameters_native, nint* __hostContextHandle_native); 266internal static extern partial global::Microsoft.DotNet.NativeWrapper.StatusCode hostfxr_run_app(nint hostContextHandle); 274internal static extern partial global::Microsoft.DotNet.NativeWrapper.StatusCode hostfxr_close(nint hostContextHandle); 283internal static partial global::Microsoft.DotNet.NativeWrapper.StatusCode hostfxr_set_runtime_property_value(nint hostContextHandle, string name, string value) 289global::Microsoft.DotNet.NativeWrapper.StatusCode __retVal = default; 310static extern unsafe global::Microsoft.DotNet.NativeWrapper.StatusCode __PInvoke(nint __hostContextHandle_native, nint __name_native, nint __value_native);
Interop.cs (17)
261/// <see cref="StatusCode.Success"/> on success, or an error status code. 273internal static partial StatusCode hostfxr_get_dotnet_environment_info( 350/// <see cref="StatusCode.Success"/> if the SDK was resolved, or <see cref="StatusCode.SdkResolveFailure"/> if not found. 359internal static partial StatusCode hostfxr_resolve_sdk2( 393/// Always returns <see cref="StatusCode.Success"/>. 401internal static StatusCode hostfxr_get_available_sdks(string? exeDir, out string[] result) 404StatusCode status = hostfxr_get_available_sdks_private(exeDir, SdkCallback); 426private static partial StatusCode hostfxr_get_available_sdks_private( 472internal static partial StatusCode hostfxr_initialize_for_runtime_config( 487internal static partial StatusCode hostfxr_get_runtime_delegate( 504internal static partial StatusCode hostfxr_initialize_for_dotnet_command_line( 526internal static partial StatusCode hostfxr_run_app( 539internal static partial StatusCode hostfxr_close( 553/// <see cref="StatusCode.Success"/> on success, <see cref="StatusCode.InvalidArgFailure"/> if the runtime 568internal static partial StatusCode hostfxr_set_runtime_property_value(
NETBundlesNativeWrapper.cs (1)
14StatusCode errorCode = Interop.hostfxr_get_dotnet_environment_info(dotnetExeDirectory, default, info.Initialize, default);
NETCoreSdkResolverNativeWrapper.cs (1)
18StatusCode errorCode = Interop.hostfxr_resolve_sdk2(dotnetExeDirectory, globalJsonStartDirectory, flags, result.Initialize);