Skip to content

Commit 659c5fb

Browse files
AnipikViktorHofer
andauthored
disable restore in vs for projects targeting platform specific old frameworks (#44932)
* disable vs restore in vs for projects targeting platform specific older frameworks * Add infra to auto-update solution files for restore * Add NuGet.config files for solutions affected by restore issue Co-authored-by: Viktor Hofer <[email protected]>
1 parent 64547d1 commit 659c5fb

File tree

57 files changed

+744
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+744
-25
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
]
2222
},
2323
"microsoft.visualstudio.slngen.tool": {
24-
"version": "4.4.0",
24+
"version": "4.4.2",
2525
"commands": [
2626
"slngen"
2727
]

eng/slngen.nuget.config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configuration>
2+
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
3+
<packageRestore>
4+
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
5+
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
6+
automatic restore. -->
7+
<add key="automatic" value="False" />
8+
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
9+
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
10+
<add key="enabled" value="False" />
11+
</packageRestore>
12+
</configuration>

eng/slngen.template.proj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- This file is used by slns.proj. -->
2+
<Project Sdk="Microsoft.Build.Traversal">
3+
<PropertyGroup>
4+
<IncludeInSolutionFile>false</IncludeInSolutionFile>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<ProjectReference Include="$(MSBuildThisFileDirectory)ref\*.*proj" />
8+
<ProjectReference Include="$(MSBuildThisFileDirectory)src\*.*proj" />
9+
<ProjectReference Include="$(MSBuildThisFileDirectory)tests\**\*.Tests.*proj" />
10+
</ItemGroup>
11+
</Project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configuration>
2+
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
3+
<packageRestore>
4+
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
5+
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
6+
automatic restore. -->
7+
<add key="automatic" value="False" />
8+
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
9+
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
10+
<add key="enabled" value="False" />
11+
</packageRestore>
12+
</configuration>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configuration>
2+
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
3+
<packageRestore>
4+
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
5+
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
6+
automatic restore. -->
7+
<add key="automatic" value="False" />
8+
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
9+
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
10+
<add key="enabled" value="False" />
11+
</packageRestore>
12+
</configuration>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configuration>
2+
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
3+
<packageRestore>
4+
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
5+
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
6+
automatic restore. -->
7+
<add key="automatic" value="False" />
8+
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
9+
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
10+
<add key="enabled" value="False" />
11+
</packageRestore>
12+
</configuration>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configuration>
2+
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
3+
<packageRestore>
4+
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
5+
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
6+
automatic restore. -->
7+
<add key="automatic" value="False" />
8+
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
9+
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
10+
<add key="enabled" value="False" />
11+
</packageRestore>
12+
</configuration>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configuration>
2+
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
3+
<packageRestore>
4+
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
5+
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
6+
automatic restore. -->
7+
<add key="automatic" value="False" />
8+
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
9+
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
10+
<add key="enabled" value="False" />
11+
</packageRestore>
12+
</configuration>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configuration>
2+
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
3+
<packageRestore>
4+
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
5+
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
6+
automatic restore. -->
7+
<add key="automatic" value="False" />
8+
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
9+
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
10+
<add key="enabled" value="False" />
11+
</packageRestore>
12+
</configuration>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<configuration>
2+
<!-- This disables restore in VS for projects that target platform specific target frameworks older than net5.0. -->
3+
<packageRestore>
4+
<!-- The 'automatic' key is set to True when the "Automatically check for missing packages during
5+
build in Visual Studio" checkbox is set. Clearing the box sets this to False and disables
6+
automatic restore. -->
7+
<add key="automatic" value="False" />
8+
<!-- The 'enabled' key is True when the "Allow NuGet to download missing packages" checkbox is set.
9+
Clearing the box sets this to False, disabling command-line, automatic, and MSBuild-integrated restore. -->
10+
<add key="enabled" value="False" />
11+
</packageRestore>
12+
</configuration>

0 commit comments

Comments
 (0)