diff --git a/Directory.Build.props b/Directory.Build.props
index fef50e3d3..f72c341d0 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -11,6 +11,8 @@
true
false
+ 1.0.3
+ true
diff --git a/Directory.Build.targets b/Directory.Build.targets
index 080cbd855..9039695a9 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -1,3 +1,12 @@
-
+
+
+
+ <_ExistingReferenceAssembliesPackageReference Include="@(PackageReference)" Condition="'%(PackageReference.Identity)' == 'Microsoft.NETFramework.ReferenceAssemblies'"/>
+
+
+
+
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index f31f55af6..7f8dd06d0 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -41,7 +41,7 @@ extends:
enabled: true
pool:
name: NetCore1ESPool-Svc-Internal
- image: 1es-windows-2019
+ image: 1es-windows-2022
os: windows
stages:
- stage: build
diff --git a/build.cmd b/build.cmd
index 5802269fe..11bd1c170 100644
--- a/build.cmd
+++ b/build.cmd
@@ -6,7 +6,7 @@ mkdir bin
:Build
-REM Require VS2019 (v16.0) on the system. Use `vswhere` for the search because it can find all VS installations.
+REM Require VS2022 (v17.0) on the system. Use `vswhere` for the search because it can find all VS installations.
set vswhere="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if not exist %vswhere% (
set vswhere="%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe"
@@ -23,8 +23,7 @@ if not exist %vswhere% (
)
set InstallDir=
-for /f "usebackq tokens=*" %%i in (`%vswhere% -version 16 -latest -prerelease -products * ^
- -requires Microsoft.Net.Component.4.5.TargetingPack ^
+for /f "usebackq tokens=*" %%i in (`%vswhere% -version 17 -latest -prerelease -products * ^
-requires Microsoft.Net.Component.4.5.2.TargetingPack ^
-requires Microsoft.Net.Component.4.6.2.TargetingPack ^
-property installationPath`) do (
@@ -32,7 +31,7 @@ for /f "usebackq tokens=*" %%i in (`%vswhere% -version 16 -latest -prerelease -p
)
if not DEFINED InstallDir (
- echo "Could not find a VS2019 installation with the necessary components (targeting packs for v4.5, v4.5.2, and v4.6.2)."
+ echo "Could not find a VS2019 installation with the necessary components (targeting packs for v4.5.2 and v4.6.2)."
echo Please install VS2019 or the missing components.
goto BuildFail
)
diff --git a/eng/templates/default-build.yml b/eng/templates/default-build.yml
index 7000a4dad..c6586915b 100644
--- a/eng/templates/default-build.yml
+++ b/eng/templates/default-build.yml
@@ -8,7 +8,7 @@ jobs:
${{ if eq(variables['System.TeamProject'], 'public') }}:
pool:
name: NetCore-Svc-Public
- demands: ImageOverride -equals windows.vs2019.amd64.open
+ demands: ImageOverride -equals windows.vs2022.amd64.open
timeoutInMinutes: 30
strategy:
diff --git a/global.json b/global.json
index 0f75e8a6f..fa8b53441 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
- "version": "6.0.405",
+ "version": "8.0.413",
"rollForward": "major"
}
}
diff --git a/src/System.Net.Http.Formatting/System.Net.Http.Formatting.csproj b/src/System.Net.Http.Formatting/System.Net.Http.Formatting.csproj
index bf2cf46b1..3c1552d63 100644
--- a/src/System.Net.Http.Formatting/System.Net.Http.Formatting.csproj
+++ b/src/System.Net.Http.Formatting/System.Net.Http.Formatting.csproj
@@ -51,7 +51,7 @@
False
- ..\..\packages\Newtonsoft.Json.Bson.1.0.2\lib\net45\Newtonsoft.Json.Bson.dll
+ ..\..\packages\Newtonsoft.Json.Bson\1.0.2\lib\net45\Newtonsoft.Json.Bson.dll
False
False
diff --git a/src/System.Web.WebPages.Deployment/System.Web.WebPages.Deployment.csproj b/src/System.Web.WebPages.Deployment/System.Web.WebPages.Deployment.csproj
index 0b7ca069c..f9c278ae9 100644
--- a/src/System.Web.WebPages.Deployment/System.Web.WebPages.Deployment.csproj
+++ b/src/System.Web.WebPages.Deployment/System.Web.WebPages.Deployment.csproj
@@ -14,7 +14,7 @@
- ..\..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll
+ ..\..\packages\Microsoft.Web.Infrastructure\1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll
diff --git a/test/Microsoft.AspNet.Facebook.Test/Microsoft.AspNet.Facebook.Test.csproj b/test/Microsoft.AspNet.Facebook.Test/Microsoft.AspNet.Facebook.Test.csproj
index bedf43f90..df1f6f370 100644
--- a/test/Microsoft.AspNet.Facebook.Test/Microsoft.AspNet.Facebook.Test.csproj
+++ b/test/Microsoft.AspNet.Facebook.Test/Microsoft.AspNet.Facebook.Test.csproj
@@ -1,7 +1,7 @@
-
-
+
+
{C3BEF382-C7C4-454D-B017-1EAC03E9A82C}
@@ -136,11 +136,11 @@
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
-
-
-
+
+
+
-
+