~ruther/NosSmooth.Local

ref: 28eccafc46deef68704c57e5c182fb32c23d47e5 NosSmooth.Local/src/Inject/NosSmooth.Injector/InjectionResult.cs -rw-r--r-- 1.1 KiB
28eccafc — Rutherther feat: update NosSmooth.Inject to show config path in failed error messages 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
//  InjectionResult.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace NosSmooth.Injector;

/// <summary>
/// A result obtained from NosSmooth.Inject.
/// </summary>
public enum InjectionResult
{
    /// <summary>
    /// Successful result.
    /// </summary>
    Ok = 1,

    /// <summary>
    /// Hostfxr.dll was not found, is .NET installed? It should be as this is a .NET application injecting the dll...
    /// </summary>
    HostfxrNotFound = 2,

    /// <summary>
    /// A runtimeconfig.json of the assembly to be injected was not found.
    /// </summary>
    /// <remarks>
    /// Be sure to include <GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
    /// in a library that will be injected.
    /// </remarks>
    RuntimeConfigNotFound = 3,

    /// <summary>
    /// The specified class or type was not found.
    /// </summary>
    /// <remarks>
    /// Be sure to put it in this format: "namespace.type.method, assembly",
    /// see samples.
    /// </remarks>
    ClassOrMethodNotFound = 4
}
Do not follow this link