Skip to content

Commit 272c7f6

Browse files
committed
Attempt to fix project issues
1 parent b0199d3 commit 272c7f6

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

scripts/0DirectoryViewer.csproj

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
3-
<!-- Prevent the project from attempting any compilation -->
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
6-
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
75

8-
<!-- Prevent build from running -->
9-
<SkipCompilerExecution>true</SkipCompilerExecution>
6+
<!-- Build suppression
107
<NoBuild>true</NoBuild>
8+
-->
9+
<SkipCompilerExecution>true</SkipCompilerExecution>
10+
<IncludeBuildOutput>false</IncludeBuildOutput>
1111

12-
<!-- NEW: prevent NuGet restore to avoid NETSDK1005 -->
12+
<!-- Disable all forms of restore -->
1313
<RestoreProjectStyle>None</RestoreProjectStyle>
14-
15-
<!-- Visual Studio friendliness -->
16-
<IncludeBuildOutput>false</IncludeBuildOutput>
14+
<RestorePackages>false</RestorePackages>
15+
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
16+
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
17+
<RestoreTargets></RestoreTargets>
1718
</PropertyGroup>
1819

20+
1921
<!-- Remove all real Compile items -->
2022
<ItemGroup>
2123
<Compile Remove="**\*.cs" />
@@ -41,7 +43,12 @@
4143
-->
4244
<None Remove="..\scripts\.vs\**\*.*" />
4345
</ItemGroup>
44-
46+
47+
<!-- Nullify restore-related targets -->
48+
<Target Name="Restore" />
49+
<Target Name="CheckForUnsupportedNETCoreVersion" />
50+
<Target Name="CheckForProjectVersionCompatibility" />
51+
4552
<!-- Override all build-related targets so they do nothing -->
4653
<Target Name="CoreCompile" />
4754
<Target Name="PrepareForBuild" />

0 commit comments

Comments
 (0)