The role of bin, obj, properties folder in c#

  The Bin directory is used to store the compilation results. bin is the English abbreviation of binary binary, because the program files compiled by C are all binary files. It has two versions, Debug and Release. The corresponding folders are bin/Debug and bin/ Release, this folder is the default output path, we can modify it through: Project Properties -> Configuration Properties -> Output Path.
  obj is the abbreviation of object, which is used to store intermediate temporary files generated during the compilation process. There are two subdirectories of debug and release, which correspond to the debug version and the release version respectively. In .NET, the compilation is carried out in modules. After the compilation is completed, it will be merged into a .DLL or .EXE and saved in the bin directory. Because the default is incremental compilation every time you compile, that is, only the changed modules are recompiled, and obj saves the compilation results of each module to speed up the compilation. Whether to use incremental compilation can be set through: Project Properties -> Configuration Properties -> Advanced -> Incremental Compilation.
  The Properties folder defines the properties of your assembly. The project properties folder generally has only one AssemblyInfo.cs class file, which is used to save assembly information, such as name, version, etc., which generally corresponds to the data in the project properties panel, no need Write manually.
  .cs class file. The source code is written here, mainly look at the code here.
  .resx resource file, some resources are stored here, generally do not need to be seen.
  .csproj C# project file, open this file with VS, you can directly open the project, it is automatically generated, you don't need to look at it.
  .csproj.user is a configuration file, which is automatically generated and records information such as the project generation path, project startup program, etc. No need to look either.
  .Designer.cs design file, automatically generated, no need to look.
  .aspx is a web page file, the HTML code is written in it.
  sln: The solution file used in the development environment. It organizes all elements of one or more projects into a single solution. This file is stored in the parent project directory. A solution file, which is a collection of one or more .proj (projects)
  *.sln: (Visual Studio.Solution) By providing the environment with access to projects, project items and solution items in A reference to a location on disk to organize them into solutions.
  For example, whether to generate Debug mode, or Release mode, whether it is a general-purpose CPU or a dedicated CPU, etc.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325996469&siteId=291194637