This article is a mirror article of machine translation, please click here to jump to the original article.

View: 21646|Reply: 2

[WinForm] Debugging .NET programs with Notepad at home on a computer for ten years

[Copy link]
Posted on 10/16/2020 6:08:57 PM | | | |
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 statusThe computer is very stuck, you can only use Notepad++ Notepad to modify the code.

  • MSBuild
  • Notepad++


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)




Previous:.net/C# reflects non-anonymous functions <>f__AnonymousType0 methods
Next:[Architecture]. net/c# implements distributed configuration of Key/Value store based on Consul
 Landlord| Posted on 7/29/2023 11:56:48 AM |
Visual Studio 2022 build tools:https://aka.ms/vs/17/release/vs_BuildTools.exe
 Landlord| Posted on 7/29/2023 7:45:29 PM |
Azure DevOps (viii) Compiles ASP.NET MVC projects using Pipelines Build
https://www.itsvse.com/thread-10635-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com