Problems encountered in computer room reconstruction (1)

1. Return a string representing the current object

Reason: ToString() means to return the string of the current object

2. Failed to load the file or assembly "Utility" or one of its dependencies, the system cannot find the specified file

Reason: fewer references are added, and the key and value in the configuration file are incorrectly written

3. The object reference is not set to the instance of the object

Reason: The reflection + configuration file statement or the key and value in the configuration file are wrong, and there must be consistency.

4. Failed to find the metadata file

Reason: Debug file is not automatically generated

Solution 1: Regenerate the solution

Solution 2: Change the generation order of the project from the dependencies.

For details, please refer to: https://mp.csdn.net/editor/html/109775609

5.CS0019: Operators cannot be applied to operands of type "int" and "string"

Solution: int.Parse is to convert String to int

The correct format is:

Reference blog: https://www.cnblogs.com/itjeff/p/9145027.html

Guess you like

Origin blog.csdn.net/weixin_44690047/article/details/111051874