Skip to content

Commit b41e011

Browse files
mmitcheViktorHofer
andauthored
Roll back to previous SDK (#47519)
Co-authored-by: Viktor Hofer <[email protected]>
1 parent dc86454 commit b41e011

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tools": {
3-
"dotnet": "10.0.100-preview.3.25125.5",
3+
"dotnet": "10.0.100-alpha.1.25077.2",
44
"runtimes": {
55
"dotnet": [
66
"$(VSRedistCommonNetCoreSharedFrameworkx64100PackageVersion)"

test/EndToEnd.Tests/ProjectBuildTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,11 @@ private static string DetectExpectedDefaultFramework(string template = "")
409409
int latestMajorVersion = runtimeFolders.Select(folder => int.Parse(Path.GetFileName(folder).Split('.').First())).Max();
410410
if (latestMajorVersion == 10)
411411
{
412+
// TODO: This block need to be updated when every template updates their default tfm.
413+
if (template.StartsWith("wpf"))
414+
{
415+
return $"net9.0";
416+
}
412417
return $"net{latestMajorVersion}.0";
413418
}
414419

0 commit comments

Comments
 (0)