-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] Stop hardcoding TFM in Wasm.Build.Tests #112955
Conversation
looks like there are a few compiler errors. now that I think about it some more I'm also not sure anymore whether this will work when we're between major versions since we might bump Environment.Version before we actually have an sdk that can target that TFM |
were you looking at the error in first commit? it's fixed in second
doesn't that apply to #79219? haven't heard of any problem in major updates |
yeah you pushed just when I hit send on my comment :D
seems so from a quick glance. we can certainly try it |
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
one test timed out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the motivation for always passing the TFM instead of leaving it as optional parameter?
to make it compile. |
That's fair. Although I would prefer to use |
38e0d8a
to
a5cd608
Compare
changed to null defaults |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great, left a couple comments
@@ -108,7 +108,7 @@ private async Task BrowserRunTwiceWithAndThenWithoutBuildAsync(Configuration con | |||
public static IEnumerable<object?[]> BrowserBuildAndRunTestData() | |||
{ | |||
yield return new object?[] { "", BuildTestBase.DefaultTargetFramework, DefaultRuntimeAssetsRelativePath }; | |||
yield return new object?[] { "-f net10.0", "net10.0", DefaultRuntimeAssetsRelativePath }; | |||
yield return new object?[] { $"-f {DefaultTargetFramework}", DefaultTargetFramework, DefaultRuntimeAssetsRelativePath }; | |||
|
|||
if (EnvironmentVariables.WorkloadsTestPreviousVersions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little bit worried that we'll forget updating the earlier versions here.
Should we introduce a int MinimumTargetFramwork = 8
in BuildTestBase.cs and then here return all TFMs from MinimumTargetFramwork => DefaultTargetFramework?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are two old versions at max and in other places net7 and net6 were used. i've removed them and added Previous2 property. when it's time for net 11, it will be testing one STS version which may not be ideal in second half of the year (when it goes out of support) but won't break anything if nuget.config keeps dotnet9 for a while.
#79219 follow up