|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
2 | 3 | <PropertyGroup> |
3 | | - <!-- Prevent the project from attempting any compilation --> |
4 | 4 | <TargetFramework>netstandard2.0</TargetFramework> |
5 | | - <DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences> |
6 | | - <EnableDefaultCompileItems>false</EnableDefaultCompileItems> |
7 | 5 |
|
8 | | - <!-- Prevent build from running --> |
9 | | - <SkipCompilerExecution>true</SkipCompilerExecution> |
| 6 | + <!-- Build suppression |
10 | 7 | <NoBuild>true</NoBuild> |
| 8 | + --> |
| 9 | + <SkipCompilerExecution>true</SkipCompilerExecution> |
| 10 | + <IncludeBuildOutput>false</IncludeBuildOutput> |
11 | 11 |
|
12 | | - <!-- NEW: prevent NuGet restore to avoid NETSDK1005 --> |
| 12 | + <!-- Disable all forms of restore --> |
13 | 13 | <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> |
17 | 18 | </PropertyGroup> |
18 | 19 |
|
| 20 | + |
19 | 21 | <!-- Remove all real Compile items --> |
20 | 22 | <ItemGroup> |
21 | 23 | <Compile Remove="**\*.cs" /> |
|
41 | 43 | --> |
42 | 44 | <None Remove="..\scripts\.vs\**\*.*" /> |
43 | 45 | </ItemGroup> |
44 | | - |
| 46 | + |
| 47 | + <!-- Nullify restore-related targets --> |
| 48 | + <Target Name="Restore" /> |
| 49 | + <Target Name="CheckForUnsupportedNETCoreVersion" /> |
| 50 | + <Target Name="CheckForProjectVersionCompatibility" /> |
| 51 | + |
45 | 52 | <!-- Override all build-related targets so they do nothing --> |
46 | 53 | <Target Name="CoreCompile" /> |
47 | 54 | <Target Name="PrepareForBuild" /> |
|
0 commit comments