Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the AppDesignerFolder used for in a csproj file?

Tags:

.net

csproj

I'm perplexed as to what the AppDesignerFolder element is used for in a csproj file.

There appears to be almost no documentation at MSDN, and the most insightful answer I've found is just not very satisfactory.

So my question is, just what exactly does this attribute control...?

like image 384
eraikitzeko Ingeniaria Avatar asked Sep 01 '11 14:09

eraikitzeko Ingeniaria


People also ask

What does the Csproj file contain?

A CSPROJ file is a C# (C Sharp) programming project file created by Microsoft Visual Studio. It contains XML-formatted text that lists a project's included files and compilation options. Developers compile CSPROJ files using MSBuild (the Microsoft Build Engine).

What is the purpose of the .csproj file?

Basically the . csproj file contains the list of files in your project, plus the references to system assemblies etc. There are a whole bunch of settings - Visual Studio version, project type, Assembly name, Application Icon, Target Culture, Installation Url,... Everything you need to build your project.

What is a Csproj file extension?

What is a CSProj file? Files with CSPROJ extension represent a C# project file that contains the list of files included in a project along with the references to system assemblies.


1 Answers

The AppDesignerFolder element specifies which folder under the project is the "Properties" folder. This is a normal folder under the project directory, but it's displayed specially in Solution Explorer.

"Properties" folder with special icon

  • This folder appears as the first node under the project, before "References" and the normal folders.
  • It has a special icon, different from the normal "folder" icon.
  • If you double-click this folder in Solution Explorer, the IDE displays the Project Properties page (rather than expanding the folder as would normally happen on double-click).
  • The right-click menu is different (has fewer menu items than a normal folder's right-click menu).

The IDE always sets this element to "Properties", which corresponds to the Properties folder it creates for every new project (the folder containing AssemblyInfo.cs). You can change it by editing the .csproj file manually, if you want your "Properties" folder to have some different name. The only reason I've ever seen anyone change it is when there were multiple .csproj files in a single directory (so it didn't make sense for them all to share the same "Properties" folder), but that was a very oddball scenario.

As far as I know, this only affects the way the folder displays in Solution Explorer. It doesn't affect the build process at all.

like image 158
Joe White Avatar answered Nov 26 '22 16:11

Joe White