diff --git a/NuGet.config b/NuGet.config index 44f0a6e84fac..16deb014c40b 100644 --- a/NuGet.config +++ b/NuGet.config @@ -4,7 +4,7 @@ - + diff --git a/eng/Version.Details.props b/eng/Version.Details.props index 17051b3b6d7c..5de35fbd59c8 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -8,85 +8,85 @@ This file should be imported by eng/Versions.props 2.1.0 - 10.0.11-servicing.26373.116 - 10.0.11-servicing.26373.116 - 10.0.11-servicing.26373.116 - 10.0.11-servicing.26373.116 - 10.0.11 - 10.0.11-servicing.26373.116 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11-servicing.26373.116 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11-servicing.26373.116 - 10.0.11 - 10.0.11-servicing.26373.116 - 10.0.11-servicing.26373.116 - 10.4.0-preview.26453.103 - 10.0.11 - 10.0.11 - 18.9.14 - 18.9.14-servicing-26453-103 - 7.9.0-rc.45403 + 10.0.12-servicing.26422.108 + 10.0.12-servicing.26422.108 + 10.0.12-servicing.26422.108 + 10.0.12-servicing.26422.108 + 10.0.12 + 10.0.12-servicing.26422.108 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12-servicing.26422.108 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12-servicing.26422.108 + 10.0.12 + 10.0.12-servicing.26422.108 + 10.0.12-servicing.26422.108 + 10.4.0-preview.26464.102 + 10.0.12 + 10.0.12 + 18.9.15 + 18.9.15-servicing-26464-102 + 7.9.0-rc.46502 10.0.402 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 - 10.4.0-preview.26453.103 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 + 10.4.0-preview.26464.102 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 2.0.0-rtm.1.26326.116 - 2.2.11 - 10.0.0-beta.26453.103 - 10.0.0-beta.26453.103 - 10.0.0-beta.26453.103 - 10.0.0-beta.26453.103 - 10.0.0-beta.26453.103 - 10.0.0-beta.26453.103 - 10.0.11 - 10.0.11 - 10.0.11-servicing.26373.116 - 10.0.11-servicing.26373.116 - 10.0.0-beta.26453.103 - 10.0.0-beta.26453.103 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 15.2.402-servicing.26453.103 - 10.0.11 - 10.0.11 - 5.9.0-1.26453.103 - 5.9.0-1.26453.103 - 10.0.11-servicing.26373.116 - 10.0.11 - 10.0.11 + 2.2.12 + 10.0.0-beta.26464.102 + 10.0.0-beta.26464.102 + 10.0.0-beta.26464.102 + 10.0.0-beta.26464.102 + 10.0.0-beta.26464.102 + 10.0.0-beta.26464.102 + 10.0.12 + 10.0.12 + 10.0.12-servicing.26422.108 + 10.0.12-servicing.26422.108 + 10.0.0-beta.26464.102 + 10.0.0-beta.26464.102 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 15.2.402-servicing.26464.102 + 10.0.12 + 10.0.12 + 5.9.0-1.26464.102 + 5.9.0-1.26464.102 + 10.0.12-servicing.26422.108 + 10.0.12 + 10.0.12 10.0.0-preview.7.25377.103 - 10.4.0-preview.26453.103 - 10.0.11-servicing.26373.116 - 18.7.0-release-26453-103 - 10.0.11 - 10.0.11-servicing.26373.116 + 10.4.0-preview.26464.102 + 10.0.12-servicing.26422.108 + 18.7.0-release-26464-102 + 10.0.12 + 10.0.12-servicing.26422.108 10.0.402 10.0.402 10.0.402 @@ -95,56 +95,56 @@ This file should be imported by eng/Versions.props 10.0.402 10.0.402 10.0.402 - 10.0.402-servicing.26453.103 + 10.0.402-servicing.26464.102 10.0.402 - 10.0.402-servicing.26453.103 + 10.0.402-servicing.26464.102 10.0.402 10.0.402 - 10.0.402-servicing.26453.103 - 18.7.0-release-26453-103 - 18.7.0-release-26453-103 - 3.2.11 - 10.0.11 - 10.0.11-servicing.26373.116 - 10.0.11 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 7.9.0-rc.45403 - 10.0.11 - 2.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 - 10.0.11 + 10.0.402-servicing.26464.102 + 18.7.0-release-26464-102 + 18.7.0-release-26464-102 + 3.2.12 + 10.0.12 + 10.0.12-servicing.26422.108 + 10.0.12 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 7.9.0-rc.46502 + 10.0.12 + 2.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 + 10.0.12 2.1.0-preview.25571.1 4.1.0-preview.25571.1 diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 802988762358..3fd5c8c49e0b 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,62 +1,62 @@ - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 @@ -68,174 +68,174 @@ https://github.com/dotnet/dotnet 6a953e76162f3f079405f80e28664fa51b136740 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet @@ -415,167 +415,167 @@ https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://github.com/dotnet/dotnet - 48adeb744993198333dd92ee66e6f853700a0270 + 127cfaccd6f3b0b2969c1f1a81ee98c6ef2e4990 - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 https://github.com/microsoft/testfx @@ -585,9 +585,9 @@ https://github.com/microsoft/testfx 43e592148ac1c7916908477bdffcf2a345affa6d - + https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet - e2f47b0110ed922f21a1522da67279133ce28f32 + 95017c711e6afc1085133d440e42b4bd78155701 diff --git a/eng/common/core-templates/job/onelocbuild.yml b/eng/common/core-templates/job/onelocbuild.yml index 15d8c1571e7f..d7a69f1c76e9 100644 --- a/eng/common/core-templates/job/onelocbuild.yml +++ b/eng/common/core-templates/job/onelocbuild.yml @@ -5,19 +5,10 @@ parameters: # Optional: A defined YAML pool - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#pool pool: '' - CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex - GithubPat: $(BotAccount-dotnet-bot-repo-PAT) - - # Service connection for WIF-based Entra authentication to ceapex feeds (replaces CeapexPat). - # The `internal` and `DevDiv` System.TeamProject values have same-named, project-scoped - # connections. Other values, and any pipeline that sets this to '', use the CeapexPat parameter. + # Project-scoped WIF service connection for Ceapex feed authentication. CeapexServiceConnection: 'dnceng-onelocbuild-ceapex' # GitHub App authentication for the OneLoc check-in PR. - # dnceng/internal and DevDiv/DevDiv are enabled by default with their project-scoped service - # connections. Other projects must explicitly opt in after provisioning equivalent infrastructure. - UseGitHubAppAuthentication: true - UseGitHubAppAuthenticationInOtherProjects: false GitHubAppServiceConnection: 'dnceng-oneloc-githubapp' GitHubAppClientId: 'Iv23lijBU8x3gc9lDOc9' GitHubAppKeyVaultName: 'EngKeyVault' @@ -48,7 +39,6 @@ jobs: displayName: OneLocBuild${{ parameters.JobNameSuffix }} variables: - - group: OneLocBuildVariables # Contains the CeapexPat and GithubPat - name: _GenerateLocProjectArguments value: -SourcesDirectory ${{ parameters.SourcesDirectory }} -LanguageSet "${{ parameters.LanguageSet }}" @@ -79,6 +69,12 @@ jobs: steps: - ${{ if eq(parameters.is1ESPipeline, '') }}: - 'Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder.': error + - ${{ if and(ne(variables['System.TeamProject'], 'internal'), ne(variables['System.TeamProject'], 'DevDiv')) }}: + - 'OneLocBuild is supported only in dnceng/internal and DevDiv/DevDiv.': error + - ${{ if eq(parameters.CeapexServiceConnection, '') }}: + - 'CeapexServiceConnection must identify a WIF service connection.': error + - ${{ if and(eq(parameters.RepoType, 'gitHub'), eq(parameters.GitHubAppServiceConnection, '')) }}: + - 'GitHubAppServiceConnection must identify a WIF service connection for GitHub repositories.': error - ${{ if ne(parameters.SkipLocProjectJsonGeneration, 'true') }}: - task: Powershell@2 @@ -88,17 +84,15 @@ jobs: displayName: Generate LocProject.json condition: ${{ parameters.condition }} - # Acquire an Entra token when System.TeamProject is `internal` or `DevDiv`. - - ${{ if and(ne(parameters.CeapexServiceConnection, ''), or(eq(variables['System.TeamProject'], 'internal'), eq(variables['System.TeamProject'], 'DevDiv'))) }}: - - template: /eng/common/templates/steps/get-federated-access-token.yml - parameters: - federatedServiceConnection: ${{ parameters.CeapexServiceConnection }} - outputVariableName: 'CeapexEntraToken' - condition: ${{ parameters.condition }} + # Acquire a short-lived Entra token for Ceapex feed access. + - template: /eng/common/templates/steps/get-federated-access-token.yml + parameters: + federatedServiceConnection: ${{ parameters.CeapexServiceConnection }} + outputVariableName: 'CeapexEntraToken' + condition: ${{ parameters.condition }} - # Mint a short-lived GitHub App installation token for the loc check-in PR. Use the connection - # provisioned in each supported project; other projects must explicitly opt in and override it. - - ${{ if and(eq(parameters.RepoType, 'gitHub'), eq(parameters.UseGitHubAppAuthentication, true), or(eq(variables['System.TeamProject'], 'internal'), eq(variables['System.TeamProject'], 'DevDiv'), eq(parameters.UseGitHubAppAuthenticationInOtherProjects, true))) }}: + # Mint a short-lived GitHub App installation token for the loc check-in PR. + - ${{ if eq(parameters.RepoType, 'gitHub') }}: - template: /eng/common/core-templates/steps/get-github-app-token.yml parameters: is1ESPipeline: ${{ parameters.is1ESPipeline }} @@ -128,16 +122,10 @@ jobs: isUseLfLineEndingsSelected: ${{ parameters.UseLfLineEndings }} isShouldReusePrSelected: ${{ parameters.ReusePr }} packageSourceAuth: patAuth - ${{ if and(ne(parameters.CeapexServiceConnection, ''), or(eq(variables['System.TeamProject'], 'internal'), eq(variables['System.TeamProject'], 'DevDiv'))) }}: - patVariable: $(CeapexEntraToken) - ${{ if or(eq(parameters.CeapexServiceConnection, ''), and(ne(variables['System.TeamProject'], 'internal'), ne(variables['System.TeamProject'], 'DevDiv'))) }}: - patVariable: ${{ parameters.CeapexPat }} + patVariable: $(CeapexEntraToken) ${{ if eq(parameters.RepoType, 'gitHub') }}: repoType: ${{ parameters.RepoType }} - ${{ if and(eq(parameters.UseGitHubAppAuthentication, true), or(eq(variables['System.TeamProject'], 'internal'), eq(variables['System.TeamProject'], 'DevDiv'), eq(parameters.UseGitHubAppAuthenticationInOtherProjects, true))) }}: - gitHubPatVariable: "$(GitHubAppInstallationToken)" - ${{ else }}: - gitHubPatVariable: "${{ parameters.GithubPat }}" + gitHubPatVariable: "$(GitHubAppInstallationToken)" ${{ if ne(parameters.MirrorRepo, '') }}: isMirrorRepoSelected: true gitHubOrganization: ${{ parameters.GitHubOrg }} diff --git a/global.json b/global.json index 08c812dfb9b7..bc664e81dd7e 100644 --- a/global.json +++ b/global.json @@ -5,10 +5,10 @@ "$host$" ], "errorMessage": "The .NET SDK is not installed or is not configured correctly. Please run ./build to install the correct SDK version locally.", - "version": "10.0.400" + "version": "10.0.401" }, "tools": { - "dotnet": "10.0.400", + "dotnet": "10.0.401", "runtimes": { "dotnet": [ "$(MicrosoftNETCorePlatformsPackageVersion)" @@ -22,8 +22,8 @@ } }, "msbuild-sdks": { - "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.26453.103", - "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.26453.103", + "Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.26464.102", + "Microsoft.DotNet.Helix.Sdk": "10.0.0-beta.26464.102", "Microsoft.Build.NoTargets": "3.7.0", "Microsoft.Build.Traversal": "3.4.0", "Microsoft.WixToolset.Sdk": "6.0.3-dotnet.6" diff --git a/src/Dotnet.Watch/HotReloadAgent.Host/Listener.cs b/src/Dotnet.Watch/HotReloadAgent.Host/Listener.cs index e8e2ebbaf0db..c5b1aad5b3b4 100644 --- a/src/Dotnet.Watch/HotReloadAgent.Host/Listener.cs +++ b/src/Dotnet.Watch/HotReloadAgent.Host/Listener.cs @@ -95,6 +95,10 @@ private async Task ReceiveAndApplyUpdatesAsync(bool initialUpdates, Cancellation var payloadType = (RequestType)await request.Stream.ReadByteAsync(cancellationToken).ConfigureAwait(false); switch (payloadType) { + case RequestType.SetEnvironmentVariables: + await SetEnvironmentVariablesAsync(request.Stream, cancellationToken).ConfigureAwait(false); + break; + case RequestType.ManagedCodeUpdate: await ReadAndApplyManagedCodeUpdateAsync(request.Stream, cancellationToken).ConfigureAwait(false); break; @@ -113,6 +117,29 @@ private async Task ReceiveAndApplyUpdatesAsync(bool initialUpdates, Cancellation } } + private async Task SetEnvironmentVariablesAsync(Stream stream, CancellationToken cancellationToken) + { + var environmentVariableCount = await stream.ReadInt32Async(cancellationToken).ConfigureAwait(false); + + log($"Setting environment variables ({environmentVariableCount})"); + + for (var i = 0; i < environmentVariableCount; i++) + { + var name = await stream.ReadStringAsync(cancellationToken).ConfigureAwait(false); + var value = await stream.ReadStringAsync(cancellationToken).ConfigureAwait(false); + try + { + Environment.SetEnvironmentVariable(name, value); + } + catch (Exception e) + { + log($"Unable to set environment variable '{name}': {e.Message}"); + } + } + + await SendResponseAsync(new SetEnvironmentVariablesResponse(), cancellationToken).ConfigureAwait(false); + } + private async ValueTask ReadAndApplyManagedCodeUpdateAsync(Stream stream, CancellationToken cancellationToken) { var request = await ManagedCodeUpdateRequest.ReadAsync(stream, cancellationToken).ConfigureAwait(false); diff --git a/src/Dotnet.Watch/HotReloadAgent.Host/WebSocketTransport.cs b/src/Dotnet.Watch/HotReloadAgent.Host/WebSocketTransport.cs index 7e49813f80b7..fcac5bc52a99 100644 --- a/src/Dotnet.Watch/HotReloadAgent.Host/WebSocketTransport.cs +++ b/src/Dotnet.Watch/HotReloadAgent.Host/WebSocketTransport.cs @@ -57,6 +57,8 @@ public override async ValueTask SendAsync(IResponse response, CancellationToken _webSocket.Options.AddSubProtocol(encryptedSecret); } + _webSocket.Options.SetRequestHeader("Origin", (serverPublicKey != null ? "wss" : "ws") + "://localhost"); + Log($"Connecting to {serverUrl}..."); await _webSocket.ConnectAsync(new Uri(serverUrl), connectCts.Token).ConfigureAwait(false); Log("Connected."); diff --git a/src/Dotnet.Watch/HotReloadAgent.PipeRpc/NamedPipeContract.cs b/src/Dotnet.Watch/HotReloadAgent.PipeRpc/NamedPipeContract.cs index dfa0158c53cd..c19a15d37dfc 100644 --- a/src/Dotnet.Watch/HotReloadAgent.PipeRpc/NamedPipeContract.cs +++ b/src/Dotnet.Watch/HotReloadAgent.PipeRpc/NamedPipeContract.cs @@ -33,16 +33,26 @@ internal interface IUpdateRequest : IRequest internal enum RequestType : byte { - ManagedCodeUpdate = 1, - StaticAssetUpdate = 2, - InitialUpdatesCompleted = 3, + SetEnvironmentVariables = 1, + ManagedCodeUpdate = 2, + StaticAssetUpdate = 3, + InitialUpdatesCompleted = 4, } internal enum ResponseType : byte { InitializationResponse = 1, - UpdateResponse = 2, - HotReloadExceptionNotification = 3, + EnvironmentVariablesSet = 2, + UpdateResponse = 3, + HotReloadExceptionNotification = 4, +} + +internal readonly struct SetEnvironmentVariablesResponse() : IResponse +{ + public ResponseType Type => ResponseType.EnvironmentVariablesSet; + + public ValueTask WriteAsync(Stream stream, CancellationToken cancellationToken) + => default; } internal readonly struct ManagedCodeUpdateRequest(IReadOnlyList updates, ResponseLoggingLevel responseLoggingLevel) : IUpdateRequest diff --git a/src/Dotnet.Watch/HotReloadClient/DefaultHotReloadClient.cs b/src/Dotnet.Watch/HotReloadClient/DefaultHotReloadClient.cs index e1a5c22fbb85..3f78051205e5 100644 --- a/src/Dotnet.Watch/HotReloadClient/DefaultHotReloadClient.cs +++ b/src/Dotnet.Watch/HotReloadClient/DefaultHotReloadClient.cs @@ -35,7 +35,7 @@ public override void Dispose() /// internal ClientTransport Transport => transport; - public override void InitiateConnection(CancellationToken cancellationToken) + public override void InitiateConnection(IReadOnlyCollection<(string name, string value)> environmentVariables, CancellationToken cancellationToken) { // It is important to establish the connection (WaitForConnectionAsync) before we return, // otherwise the client wouldn't be able to connect. @@ -73,6 +73,9 @@ async Task> ConnectAsync() Logger.Log(LogEvents.Capabilities, string.Join(" ", result)); + // Initialize process: + await SetEnvironmentVariablesAsync(environmentVariables, cancellationToken); + // fire and forget: _ = ListenForResponsesAsync(cancellationToken); @@ -164,6 +167,33 @@ public override Task> GetUpdateCapabilitiesAsync(Cancella private ResponseLoggingLevel ResponseLoggingLevel => Logger.IsEnabled(LogLevel.Debug) ? ResponseLoggingLevel.Verbose : ResponseLoggingLevel.WarningsAndErrors; + public async ValueTask SetEnvironmentVariablesAsync(IReadOnlyCollection<(string name, string value)> environmentVariables, CancellationToken cancellationToken) + { + if (environmentVariables.Count == 0) + { + return; + } + + // Send a request to set environment variables: + await transport.WriteAsync((byte)RequestType.SetEnvironmentVariables, async (stream, cancellationToken) => + { + await stream.WriteAsync(environmentVariables.Count, cancellationToken); + + foreach (var (name, value) in environmentVariables) + { + await stream.WriteAsync(name, cancellationToken); + await stream.WriteAsync(value, cancellationToken); + } + }, cancellationToken); + + // Wait until the environment variables are set in the target process: + var response = await transport.ReadAsync(cancellationToken); + if (response != null && response.Value.Type != ResponseType.EnvironmentVariablesSet) + { + throw new InvalidOperationException($"Unexpected response received from the agent: {response.Value.Type}"); + } + } + public async override Task> ApplyManagedCodeUpdatesAsync(ImmutableArray updates, CancellationToken applyOperationCancellationToken, CancellationToken cancellationToken) { RequireReadyForUpdates(); diff --git a/src/Dotnet.Watch/HotReloadClient/HotReloadClient.cs b/src/Dotnet.Watch/HotReloadClient/HotReloadClient.cs index 6e45c8c76d78..47d5604f1a69 100644 --- a/src/Dotnet.Watch/HotReloadClient/HotReloadClient.cs +++ b/src/Dotnet.Watch/HotReloadClient/HotReloadClient.cs @@ -53,8 +53,9 @@ protected static ImmutableArray AddImplicitCapabilities(IEnumerable /// Initiates connection with the agent in the target process. /// + /// Environment variable to be set by the agent in the target process. /// Cancellation token. The cancellation should trigger on process terminatation. - public abstract void InitiateConnection(CancellationToken cancellationToken); + public abstract void InitiateConnection(IReadOnlyCollection<(string name, string value)> environmentVariables, CancellationToken cancellationToken); /// /// Waits until the connection with the agent is established. diff --git a/src/Dotnet.Watch/HotReloadClient/HotReloadClients.cs b/src/Dotnet.Watch/HotReloadClient/HotReloadClients.cs index eb348112c896..4fead3ab4d39 100644 --- a/src/Dotnet.Watch/HotReloadClient/HotReloadClients.cs +++ b/src/Dotnet.Watch/HotReloadClient/HotReloadClients.cs @@ -93,12 +93,13 @@ internal void ConfigureLaunchEnvironment(IDictionary environment browserRefreshServer?.ConfigureLaunchEnvironment(environmentBuilder, enableHotReload: true); } + /// Environment variable to be set by the agent in the target process. /// Cancellation token. The cancellation should trigger on process terminatation. - internal void InitiateConnection(CancellationToken cancellationToken) + internal void InitiateConnection(IReadOnlyCollection<(string name, string value)> environmentVariables, CancellationToken cancellationToken) { foreach (var client in clients) { - client.InitiateConnection(cancellationToken); + client.InitiateConnection(environmentVariables, cancellationToken); } } diff --git a/src/Dotnet.Watch/HotReloadClient/Web/BrowserRefreshServer.cs b/src/Dotnet.Watch/HotReloadClient/Web/BrowserRefreshServer.cs index 70f27e678a54..b5979bfbac98 100644 --- a/src/Dotnet.Watch/HotReloadClient/Web/BrowserRefreshServer.cs +++ b/src/Dotnet.Watch/HotReloadClient/Web/BrowserRefreshServer.cs @@ -14,6 +14,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Primitives; namespace Microsoft.DotNet.HotReload; @@ -52,7 +53,15 @@ private async Task WebSocketRequestAsync(HttpContext context) { if (!context.WebSockets.IsWebSocketRequest) { - context.Response.StatusCode = 400; + context.Response.StatusCode = StatusCodes.Status400BadRequest; + return; + } + + // check the domain of the Origin header: + if (!Uri.TryCreate(context.Request.Headers.Origin.FirstOrDefault(), UriKind.Absolute, out var originUri) || + !webSocketConfig.GetAllowedOriginDomains().Contains(originUri.Host, StringComparer.OrdinalIgnoreCase)) + { + context.Response.StatusCode = StatusCodes.Status403Forbidden; return; } diff --git a/src/Dotnet.Watch/HotReloadClient/Web/WebAssemblyHotReloadClient.cs b/src/Dotnet.Watch/HotReloadClient/Web/WebAssemblyHotReloadClient.cs index cdb5e40ec2f3..69d269554353 100644 --- a/src/Dotnet.Watch/HotReloadClient/Web/WebAssemblyHotReloadClient.cs +++ b/src/Dotnet.Watch/HotReloadClient/Web/WebAssemblyHotReloadClient.cs @@ -82,7 +82,7 @@ public override void ConfigureLaunchEnvironment(IDictionary envi // the environment is configued via browser refesh server } - public override void InitiateConnection(CancellationToken cancellationToken) + public override void InitiateConnection(IReadOnlyCollection<(string name, string value)> environmentVariables, CancellationToken cancellationToken) { } diff --git a/src/Dotnet.Watch/HotReloadClient/Web/WebSocketConfig.cs b/src/Dotnet.Watch/HotReloadClient/Web/WebSocketConfig.cs index 66887d28b348..5d4f6eba0a8f 100644 --- a/src/Dotnet.Watch/HotReloadClient/Web/WebSocketConfig.cs +++ b/src/Dotnet.Watch/HotReloadClient/Web/WebSocketConfig.cs @@ -4,10 +4,11 @@ #nullable enable using System.Collections.Generic; +using System.Collections.Immutable; namespace Microsoft.DotNet.HotReload; -internal readonly struct WebSocketConfig(int port, int? securePort, string? hostName) +internal readonly struct WebSocketConfig(int port, int? securePort, string? hostName, ImmutableArray additionalAllowedOrigins) { /// /// 0 to auto-assign. @@ -34,6 +35,23 @@ public IEnumerable GetHttpUrls() } } + public IEnumerable GetAllowedOriginDomains() + { + yield return "localhost"; + yield return "127.0.0.1"; + yield return "[::1]"; + + foreach (var origin in additionalAllowedOrigins) + { + yield return origin; + } + + if (hostName != null) + { + yield return hostName; + } + } + public WebSocketConfig WithSecurePort(int? value) - => new(port, value, hostName); + => new(port, value, hostName, additionalAllowedOrigins); } diff --git a/src/Dotnet.Watch/HotReloadClient/WebSocketClientTransport.cs b/src/Dotnet.Watch/HotReloadClient/WebSocketClientTransport.cs index 6bc21e5b9451..5dfb24a484dc 100644 --- a/src/Dotnet.Watch/HotReloadClient/WebSocketClientTransport.cs +++ b/src/Dotnet.Watch/HotReloadClient/WebSocketClientTransport.cs @@ -53,7 +53,7 @@ public override bool IsExpectedConnectionTermination(Exception exception, Cancel /// public static async Task CreateAsync(WebSocketConfig config, ILogger logger, CancellationToken cancellationToken) { - var handler = new RequestHandler(logger); + var handler = new RequestHandler(config, logger); var server = await KestrelWebSocketServer.StartServerAsync(config, handler.HandleRequestAsync, cancellationToken); var transport = new WebSocketClientTransport(server, handler); @@ -81,7 +81,7 @@ public override ValueTask WriteAsync(byte type, Func ReadAsync(CancellationToken cancellationToken) => _handler.ReadAsync(cancellationToken); - private sealed class RequestHandler(ILogger logger) : IDisposable + private sealed class RequestHandler(WebSocketConfig webSocketConfig, ILogger logger) : IDisposable { public SharedSecretProvider SharedSecretProvider { get; } = new(); public TaskCompletionSource ClientConnectedSource { get; } = new(); @@ -89,7 +89,7 @@ private sealed class RequestHandler(ILogger logger) : IDisposable private WebSocket? _clientSocket; public bool IsClientSocketAborted - => _clientSocket?.State is System.Net.WebSockets.WebSocketState.Aborted; + => _clientSocket?.State is WebSocketState.Aborted; // Reused across WriteAsync calls to avoid allocations. // WriteAsync is invoked under a semaphore in DefaultHotReloadClient. @@ -118,7 +118,15 @@ public async Task HandleRequestAsync(HttpContext context) { if (!context.WebSockets.IsWebSocketRequest) { - context.Response.StatusCode = 400; + context.Response.StatusCode = StatusCodes.Status400BadRequest; + return; + } + + // check the domain of the Origin header: + if (!Uri.TryCreate(context.Request.Headers.Origin.FirstOrDefault(), UriKind.Absolute, out var originUri) || + !webSocketConfig.GetAllowedOriginDomains().Contains(originUri.Host, StringComparer.OrdinalIgnoreCase)) + { + context.Response.StatusCode = StatusCodes.Status403Forbidden; return; } @@ -128,7 +136,7 @@ public async Task HandleRequestAsync(HttpContext context) if (subProtocol == null) { logger.LogWarning("WebSocket connection rejected: missing subprotocol (shared secret)"); - context.Response.StatusCode = 401; + context.Response.StatusCode = StatusCodes.Status401Unauthorized; return; } @@ -140,7 +148,7 @@ public async Task HandleRequestAsync(HttpContext context) catch (Exception ex) { logger.LogWarning("WebSocket connection rejected: invalid shared secret - {Message}", ex.Message); - context.Response.StatusCode = 401; + context.Response.StatusCode = StatusCodes.Status401Unauthorized; return; } diff --git a/src/Dotnet.Watch/Watch/Context/EnvironmentOptions.cs b/src/Dotnet.Watch/Watch/Context/EnvironmentOptions.cs index 592eb96d8094..880218711e7c 100644 --- a/src/Dotnet.Watch/Watch/Context/EnvironmentOptions.cs +++ b/src/Dotnet.Watch/Watch/Context/EnvironmentOptions.cs @@ -59,8 +59,16 @@ internal sealed record EnvironmentOptions( RestartOnRudeEdit: EnvironmentVariables.RestartOnRudeEdit, CliLogLevel: EnvironmentVariables.CliLogLevel, BrowserPath: EnvironmentVariables.BrowserPath, - BrowserWebSocketConfig: new(EnvironmentVariables.BrowserWebSocketPort, EnvironmentVariables.BrowserWebSocketSecurePort, EnvironmentVariables.BrowserWebSocketHostName), - AgentWebSocketConfig: new(EnvironmentVariables.AgentWebSocketPort, EnvironmentVariables.AgentWebSocketSecurePort, hostName: null), + BrowserWebSocketConfig: new( + port: EnvironmentVariables.BrowserWebSocketPort, + securePort: EnvironmentVariables.BrowserWebSocketSecurePort, + hostName: EnvironmentVariables.BrowserWebSocketHostName, + additionalAllowedOrigins: EnvironmentVariables.DotNetWatchWebSocketAllowedOrigins), + AgentWebSocketConfig: new( + port: EnvironmentVariables.AgentWebSocketPort, + securePort: EnvironmentVariables.AgentWebSocketSecurePort, + hostName: null, + additionalAllowedOrigins: []), TestFlags: EnvironmentVariables.TestFlags, TestOutput: EnvironmentVariables.TestOutputDir ); diff --git a/src/Dotnet.Watch/Watch/Context/EnvironmentVariables.cs b/src/Dotnet.Watch/Watch/Context/EnvironmentVariables.cs index ad9d499e1bb5..ac073cfb3ae4 100644 --- a/src/Dotnet.Watch/Watch/Context/EnvironmentVariables.cs +++ b/src/Dotnet.Watch/Watch/Context/EnvironmentVariables.cs @@ -1,6 +1,7 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +using System.Collections.Immutable; using Microsoft.Extensions.Logging; namespace Microsoft.DotNet.Watch; @@ -61,6 +62,13 @@ public static LogLevel? CliLogLevel public static string? BrowserWebSocketHostName => Environment.GetEnvironmentVariable("DOTNET_WATCH_AUTO_RELOAD_WS_HOSTNAME"); + /// + /// A list of additional domains, other than localhost and , + /// allowed as origins of connections to the broser refresh web socket. + /// Use when the browser opens the app on a custom domain. + /// + public static ImmutableArray DotNetWatchWebSocketAllowedOrigins = ReadList("DOTNET_WATCH_AUTO_RELOAD_WS_ORIGINS", separators: [';', ',']); + /// /// Port used for browser WebSocket communication. Defaults to 0 (auto-assign) if not specified. /// @@ -98,6 +106,11 @@ private static bool ReadBool(string variableName) private static int? ReadInt(string variableName) => Environment.GetEnvironmentVariable(variableName) is var value && int.TryParse(value, out var intValue) ? intValue : null; + private static ImmutableArray ReadList(string variableName, char[] separators) + => Environment.GetEnvironmentVariable(variableName) is { } value + ? [.. value.Split(separators, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries)] + : []; + private static bool ParseBool(string? value) => value == "1" || bool.TryParse(value, out var boolValue) && boolValue; } diff --git a/src/Dotnet.Watch/Watch/HotReload/RunningProjectsManager.cs b/src/Dotnet.Watch/Watch/HotReload/RunningProjectsManager.cs index 8f43398a701f..5a8188c56c6d 100644 --- a/src/Dotnet.Watch/Watch/HotReload/RunningProjectsManager.cs +++ b/src/Dotnet.Watch/Watch/HotReload/RunningProjectsManager.cs @@ -70,7 +70,13 @@ public ImmutableDictionary> CurrentRunnin // It is important to first create the named pipe connection (Hot Reload client is the named pipe server) // and then start the process (named pipe client). Otherwise, the connection would fail. - clients.InitiateConnection(processCommunicationCancellationToken); + // + // Send project defined environment variables through RPC to avoid leaking potentially sensitive data. + // On Linux the command line of a process can be read by other users via `/proc//cmdline`. + // Only environment variables that are necessary to establish communication with the agent are passed through command line (`-e` switch). + // The agent variables can't be set directly on `dotnet run` process as Hot Reload should not be enabled for that process. + // Other variables are not set directly either to avoid leakage to `dotnet build` or other processes that `dotnet run` might execute. + clients.InitiateConnection(projectOptions.LaunchEnvironmentVariables, processCommunicationCancellationToken); RunningProject? publishedRunningProject = null; diff --git a/src/Dotnet.Watch/Watch/Process/ProjectLauncher.cs b/src/Dotnet.Watch/Watch/Process/ProjectLauncher.cs index 6c3bcb4f7726..e4b80b217f47 100644 --- a/src/Dotnet.Watch/Watch/Process/ProjectLauncher.cs +++ b/src/Dotnet.Watch/Watch/Process/ProjectLauncher.cs @@ -62,13 +62,6 @@ public RunningProjectsManager RunningProjectsManager var environmentBuilder = new Dictionary(); - // initialize with project settings: - foreach (var (name, value) in projectOptions.LaunchEnvironmentVariables) - { - environmentBuilder[name] = value; - } - - // override any project settings: environmentBuilder[EnvironmentVariables.Names.DotnetWatch] = "1"; environmentBuilder[EnvironmentVariables.Names.DotnetWatchIteration] = (Iteration + 1).ToString(CultureInfo.InvariantCulture); diff --git a/test/Microsoft.Extensions.DotNetDeltaApplier.Tests/HotReloadClientTests.cs b/test/Microsoft.Extensions.DotNetDeltaApplier.Tests/HotReloadClientTests.cs index 506a00791e02..ac64551ec310 100644 --- a/test/Microsoft.Extensions.DotNetDeltaApplier.Tests/HotReloadClientTests.cs +++ b/test/Microsoft.Extensions.DotNetDeltaApplier.Tests/HotReloadClientTests.cs @@ -24,7 +24,7 @@ public Test(ITestOutputHelper output, TestHotReloadAgent agent) _cancellationSource = new CancellationTokenSource(); - Client.InitiateConnection(CancellationToken.None); + Client.InitiateConnection(environmentVariables: [], CancellationToken.None); var agentTransport = new NamedPipeTransport(clientTransport.NamedPipeName, log: _ => { }, timeoutMS: Timeout.Infinite); var listener = new Listener(agentTransport, agent, log: _ => { }); _listenerTaskFactory = Task.Run(() => listener.Listen(_cancellationSource.Token)); diff --git a/test/Microsoft.NET.TestFramework/SdkTestContext.cs b/test/Microsoft.NET.TestFramework/SdkTestContext.cs index 55bb6d31f9d7..c5dec7413a9d 100644 --- a/test/Microsoft.NET.TestFramework/SdkTestContext.cs +++ b/test/Microsoft.NET.TestFramework/SdkTestContext.cs @@ -299,8 +299,7 @@ public static void Initialize(TestCommandLine commandLine) while (directory is not null) { - var gitPath = Path.Combine(directory, ".git"); - if (Directory.Exists(gitPath) || File.Exists(gitPath)) + if (File.Exists(Path.Combine(directory, "sdk.slnx"))) { // Found the repo root, which should either have a .git folder or, if the repo // is part of a Git worktree, a .git file. @@ -312,17 +311,7 @@ public static void Initialize(TestCommandLine commandLine) return null; } - private static string FindOrCreateFolderInTree(string relativePath, string startPath) - { - string? ret = FindFolderInTree(relativePath, startPath, throwIfNotFound: false); - if (ret != null) - { - return ret; - } - ret = Path.Combine(startPath, relativePath); - Directory.CreateDirectory(ret); - return ret; - } + private static string? FindFolderInTree(string relativePath, string startPath, bool throwIfNotFound = true) { string currentPath = startPath; diff --git a/test/dotnet-watch-test-browser/Program.cs b/test/dotnet-watch-test-browser/Program.cs index a46d5849e376..e90cc0e1f23e 100644 --- a/test/dotnet-watch-test-browser/Program.cs +++ b/test/dotnet-watch-test-browser/Program.cs @@ -1,4 +1,7 @@ -using System.Buffers; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Buffers; using System.Net.WebSockets; using System.Security.Cryptography; using System.Text.RegularExpressions; @@ -9,16 +12,17 @@ return -1; } -Log($"Test browser opened at '{urlArg}'."); - var url = new Uri(urlArg, UriKind.Absolute); +var origin = Environment.GetEnvironmentVariable("TEST_BROWSER_ORIGIN_HEADER") ?? urlArg; + +Log($"Setting Origin header to '{origin}'."); var (webSocketUrls, publicKey) = await GetWebSocketUrlsAndPublicKey(url); var secret = RandomNumberGenerator.GetBytes(32); var encryptedSecret = GetEncryptedSecret(publicKey, secret); -using var webSocket = await OpenWebSocket(webSocketUrls, encryptedSecret); +using var webSocket = await OpenWebSocket(origin, webSocketUrls, encryptedSecret); var buffer = new byte[8 * 1024]; while (await TryReceiveMessageAsync(webSocket, message => Log($"Received: {Encoding.UTF8.GetString(message)}"))) @@ -29,7 +33,7 @@ return 0; -static async Task OpenWebSocket(string[] urls, string encryptedSecret) +static async Task OpenWebSocket(string origin, string[] urls, string encryptedSecret) { foreach (var url in urls) { @@ -37,6 +41,12 @@ static async Task OpenWebSocket(string[] urls, string encryptedSecret { var webSocket = new ClientWebSocket(); webSocket.Options.AddSubProtocol(Uri.EscapeDataString(encryptedSecret)); + + if (origin != "") + { + webSocket.Options.SetRequestHeader("Origin", origin); + } + await webSocket.ConnectAsync(new Uri(url), CancellationToken.None); return webSocket; } @@ -87,7 +97,7 @@ static async ValueTask TryReceiveMessageAsync(WebSocket socket, Action line.Contains("🧪"))); + // no other browser refresh messages sent: + Assert.Equal(2, App.Process.Output.Count(line => line.Contains("🧪 Received:"))); await App.WaitUntilOutputContains(MessageDescriptor.WaitingForChanges); @@ -102,9 +144,6 @@ await App.WaitUntilOutputContains(""" 🧪 Received: {"type":"Reload"} """); - // no other browser message sent: - Assert.Equal(2, App.Process.Output.Count(line => line.Contains("🧪"))); - App.Process.ClearOutput(); // valid edit: @@ -120,7 +159,7 @@ await App.WaitUntilOutputContains($$""" 🧪 Received: {"type":"RefreshBrowser"} """); - // no other browser message sent: - Assert.Equal(2, App.Process.Output.Count(line => line.Contains("🧪"))); + // no other browser refresh messages sent: + Assert.Equal(2, App.Process.Output.Count(line => line.Contains("🧪 Received:"))); } } diff --git a/test/dotnet-watch.Tests/HotReload/AspireHotReloadTests.cs b/test/dotnet-watch.Tests/HotReload/AspireHotReloadTests.cs index 2f2e2382c65d..776d740bbf6b 100644 --- a/test/dotnet-watch.Tests/HotReload/AspireHotReloadTests.cs +++ b/test/dotnet-watch.Tests/HotReload/AspireHotReloadTests.cs @@ -18,6 +18,7 @@ public async Task Aspire_BuildError_ManualRestart() var serviceProjectDisplay = $"WatchAspire.ApiService ({ToolsetInfo.CurrentTargetFramework})"; var webProjectDisplay = $"WatchAspire.Web ({ToolsetInfo.CurrentTargetFramework})"; var hostProjectDisplay = $"WatchAspire.AppHost ({ToolsetInfo.CurrentTargetFramework})"; + var migrationProjectDisplay = $"WatchAspire.MigrationService ({ToolsetInfo.CurrentTargetFramework})"; var serviceSourcePath = Path.Combine(testAsset.Path, "WatchAspire.ApiService", "Program.cs"); var serviceProjectPath = Path.Combine(testAsset.Path, "WatchAspire.ApiService", "WatchAspire.ApiService.csproj"); @@ -28,10 +29,17 @@ public async Task Aspire_BuildError_ManualRestart() App.Start(testAsset, ["-lp", "http"], relativeProjectDirectory: "WatchAspire.AppHost", testFlags: TestFlags.ReadKeyFromStdin); + // DEBUG_* environment variables should be set for app host process: + await App.WaitUntilOutputContains($"dotnet watch 🕵️ [{hostProjectDisplay}] Setting environment variables (3)"); await App.WaitUntilOutputContains(MessageDescriptor.WaitingForChanges); // check that Aspire server output is logged via dotnet-watch reporter: await App.WaitUntilOutputContains("dotnet watch ⭐ Now listening on:"); + + // environment variables should be set for all resource processes: + await App.WaitUntilOutputContains($"dotnet watch 🕵️ [{migrationProjectDisplay}] Setting environment variables"); + await App.WaitUntilOutputContains($"dotnet watch 🕵️ [{serviceProjectDisplay}] Setting environment variables"); + await App.WaitUntilOutputContains($"dotnet watch 🕵️ [{webProjectDisplay}] Setting environment variables"); // wait until after all DCP sessions have started: await App.WaitUntilOutputContains("dotnet watch ⭐ [#1] Session started");