In Visual Studio 2008/2010, you can place a number of simple .cs code files under another .cs file in Solution Explorer. This behavior is similar to the way you see files hosted when adding WPF UserControl to a solution where, instead of a single .cs file, it can collapse / expand under the .xaml file.
How to make a decision to organize files this way? I have already looked through some of the obvious places, such as the file properties panel, solution pages, and .csproj.
, Visual Studio.
, .csproj. , <DependentUpon> XML , .
<DependentUpon>
<Compile Include="Settings.Designer.cs"> <AutoGen>True</AutoGen> <DependentUpon>Settings.settings</DependentUpon> <DesignTimeSharedInput>True</DesignTimeSharedInput> </Compile>
.csproj :
<Compile Include="Form1.Designer.cs"> <DependentUpon>Form1.cs</DependentUpon> </Compile>
VSCommands Visual Studio 2010.
Source: https://habr.com/ru/post/1762879/More articles:@ font-face rendering performance - performanceConvert "dbml" file to "SQL database file" - sqlHow to pass plus sign in input parameter? - c #ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΠ΅ Fatal error: ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ $this, Π΅ΡΠ»ΠΈ Π½Π΅ Π² ΠΎΠ±ΡΠ΅ΠΊΡΠ½ΠΎΠΌ ΠΊΠΎΠ½ΡΠ΅ΠΊΡΡΠ΅ Π² Stemmer.php Π² ΡΡΡΠΎΠΊΠ΅ 317 - objectDynamically removing / adding controls on a Windows Forms form - c #Apply Theme Using Silverlight 4 - silverlight-4.0Π‘ΠΎΠ·Π΄Π°Π½ΠΈΠ΅ Π²Π΅ΡΡΠΈΠΉ Π² eclipse Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ΠΌ Π»ΠΎΠΊΠ°Π»ΡΠ½ΠΎΠΉ ΠΈΡΡΠΎΡΠΈΠΈ - version-controlReleasing JavaScript ActiveXObject ()? - javascriptxhrPost works differently with Firefox and IE8 - but how do I handle the response? - javascriptTcsh and Bash Initialization - bashAll Articles