Skip to content

Commit 4af346f

Browse files
committed
0DirectoryViewer.csproj improvement: restored some previous settings, suppressed compiler warning
1 parent f90895c commit 4af346f

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

scripts/0DirectoryViewer.csproj

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory>
1313
<IsPackable>false</IsPackable>
1414

15+
<!-- Suppress “No source files specified” -->
16+
<NoWarn>$(NoWarn);CS2008</NoWarn>
1517

1618
</PropertyGroup>
1719

@@ -22,25 +24,40 @@
2224
</ItemGroup>
2325

2426

25-
<!-- Do not display directories and files form project root directory:
26-
-->
27+
<!-- Do not display directories and files form project root directory: -->
2728
<ItemGroup>
2829
<None Remove="**\*.*" >
2930
</None>
3031
</ItemGroup>
3132

3233
<!-- Mirror real direectories: -->
34+
3335
<!-- /scripts, mapped to scripts/, which is also the project's root directory: -->
3436
<ItemGroup>
3537
<None Include="..\scripts\**\*.*">
3638
<Link>scripts\%(RecursiveDir)%(Filename)%(Extension)</Link>
3739
</None>
3840
<!--
39-
-->
4041
<None Remove="..\scripts\bin\**\*.*" />
4142
<None Remove="..\scripts\obj\**\*.*" />
43+
-->
4244
<None Remove="..\scripts\.vs\**\*.*" />
4345
</ItemGroup>
46+
47+
48+
<!-- Override all build-related targets so they do nothing -->
49+
<Target Name="CoreCompile" />
50+
<Target Name="PrepareForBuild" />
51+
<Target Name="Compile" />
52+
<Target Name="Build" />
53+
<Target Name="Restore" />
54+
<Target Name="ResolveReferences" />
55+
<Target Name="GenerateTargetFrameworkMonikerAttribute" />
56+
<Target Name="GenerateAssemblyInfo" />
57+
<!-- Nullify additional (restore-related) targets -->
58+
<Target Name="Restore" />
59+
<Target Name="CheckForUnsupportedNETCoreVersion" />
60+
<Target Name="CheckForProjectVersionCompatibility" />
4461

4562

4663
</Project>

0 commit comments

Comments
 (0)