introduction
I went back to my hometown during the Spring Festival holiday, didn't bring my laptop, and could only stay at home due to the pneumonia epidemic.
The reason why WinForm cannot be used normally is mainly due to errors caused by not finding the specified node when parsing the html source code.
Development environment
- CPU:Pentium(R) Dual-Core CPU E6300 @ 2.80GHz
- Memory: 2G
- System: Windows 7 Home Standard Edition
Development tools
tryInstall the VS code software, found that after the installation is completed, the opening interface has been onBlack screen status,The computer is very stuck, you can only use Notepad++ Notepad to modify the code.
MSBuild 2015 tool download address:
The hyperlink login is visible.
When installing MSBuild, you need to install the .NET framework 4.5 framework first.
After the installation is completed, you need to add a directory to the environment variable, and the directory I installed is: C:\Program Files\MSBuild\14.0\Bin
How to add a directory to an environment variable below.
Compile run
First, download the source code from GitHub to your local location and unzip it, as shown in the figure below:
MSBuild document address:
The hyperlink login is visible.
Try compiling and the code is as follows:
The error is as follows:
"C:\Users\pi\Downloads\itsvse\itsvse\itsvse.csproj" (default Goal) (1) -> (CoreCompile Target) -> Form1.cs(13,7): error CS0246: The type or namespace name 'CsharpHttpHelper' c ould not be found (are you missing a using directive or an assembly reference?) [C:\Users\pi\Downloads\itsvse\itsvse\itsvse.csproj] Form1.cs(14,7): error CS0246: The type or namespace name 'Newtonsoft' could n ot be found (are you missing a using directive or an assembly reference?) [C:\U sers\pi\Downloads\itsvse\itsvse\itsvse.csproj]
6 warnings 2 errors
Time Elapsed 00:00:05.28 Solution: Copy the dll referenced by the program to the /bin/Debug folder and recompile it, as shown in the figure below:
You can open the compiled application normally, and then debug the output little by little by writing logs, use Notepad++ Notepad to modify the code, recompile the program, and the WinForm program can run normally.
(End) |