Skip to content

Commit 7090921

Browse files
committed
Additional directories displayed in the DirectoryViewer project
1 parent aee25a0 commit 7090921

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

scripts/utilityprojects/DirectoryViewer.csproj

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<!-- This projet enables viewing various kinds of contents of a repository in which
33
Visual Studio solutions are contained. By icluding the project in a VS solution, one
4-
can browse contents that is displayed by the project, serch within files included, and
5-
open files in rich Visual Studio editors.
6-
The project does not contain actual code. It wa attempted to avoid building the project
7-
when buildig the solution, but we haven't found the way to do this due to limitations of
4+
can browse contents (directories and files) that are displayed by the project, serch
5+
within files included, and open files in rich Visual Studio editors.
6+
The project does not contain actual code. It was attempted to avoid building the project
7+
when buildig the solution, but the way to do this was not fount due to limitations of
88
MS Build projects. Therefore, about a second is spent on "building" the project, which
9-
generate some useless mainifests etc. but no DLLs. Eventual warnings are suppressed by
9+
generate some small redundant file, but no DLLs. Eventual warnings are suppressed by
1010
NoWarn tags, such that the project does not affect the CI/CD. -->
1111
<PropertyGroup>
1212
<TargetFramework>netstandard2.0</TargetFramework>
@@ -39,19 +39,40 @@
3939
</ItemGroup>
4040

4141
<!-- Mirror real direectories: -->
42+
43+
<!-- Files in root directory of the repository, mapped to root/ , 1 level of depth : -->
44+
<ItemGroup>
45+
<None Include="..\..\*.*">
46+
<Link>repo_root\%(RecursiveDir)%(Filename)%(Extension)</Link>
47+
</None>
48+
<None Remove="..\..\*.bak" />
49+
</ItemGroup>
4250

43-
<!-- /scripts, mapped to scripts/, which is also the project's root directory: -->
51+
<!-- /scripts, mapped to scripts/ , recursive : -->
4452
<ItemGroup>
4553
<None Include="..\..\scripts\**\*.*">
4654
<Link>scripts\%(RecursiveDir)%(Filename)%(Extension)</Link>
4755
</None>
4856
<!--
49-
<None Remove="..\..\scripts\bin\**\*.*" />
50-
<None Remove="..\..\scripts\obj\**\*.*" />
5157
-->
52-
<None Remove="..\..\scripts\.vs\**\*.*" />
58+
<None Remove="..\..\scripts\utilityprojects\bin\**\*.*" />
59+
<None Remove="..\..\scripts\utilityprojects\obj\**\*.*" />
60+
<None Remove="..\..\scripts\utilityprojects\.vs\**\*.*" />
5361
</ItemGroup>
5462

63+
<!-- Files in parent directory of the repository, mapped to root/ , 3 levels of depth : -->
64+
<ItemGroup>
65+
<None Include="..\..\..\*.*">
66+
<Link>repo_parent_directory\%(RecursiveDir)%(Filename)%(Extension)</Link>
67+
</None>
68+
<None Remove="..\..\..\*.bak" />
69+
<None Include="..\..\..\*\*.*">
70+
<Link>repo_parent_directory\%(RecursiveDir)%(Filename)%(Extension)</Link>
71+
</None>
72+
<None Include="..\..\..\*\*\*.*">
73+
<Link>repo_parent_directory\%(RecursiveDir)%(Filename)%(Extension)</Link>
74+
</None>
75+
</ItemGroup>
5576

5677
<!-- Override all build-related targets so they do nothing:
5778
<Target Name="CoreCompile" />

0 commit comments

Comments
 (0)