-
Notifications
You must be signed in to change notification settings - Fork 128
Upgrade tests to net6 #1891
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
Upgrade tests to net6 #1891
Conversation
| <ProjectReference Condition="'$(UseCecilPackage)' != 'true'" Include="../../external/cecil/Mono.Cecil.csproj" PrivateAssets="All" /> | ||
| <ProjectReference Condition="'$(UseCecilPackage)' != 'true'" Include="../../external/cecil/Mono.Cecil.csproj" PrivateAssets="All"> | ||
| <!-- https://github.com/dotnet/sdk/issues/2280#issuecomment-392815466 --> | ||
| <SetTargetFramework>TargetFramework=netstandard2.0</SetTargetFramework> |
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.
Why was this needed? (Or is it just to be safe?)
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.
For some reason it picked the net40 version... it's weird, but I just could not make it work otherwise.
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.
Weird... 🤷♂️ Glad you figured it out. I didn't know about SetTargetFramework
| // Ensure that [Required] members are non-null | ||
| AssemblyPaths = new ITaskItem[0]; | ||
| RootAssemblyNames = new ITaskItem[0]; | ||
| ILLinkPath = Path.Combine (Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location), "illink.dll"); |
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.
Curious what prompted this change
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.
The logic in the ILLink is basically MyPath/../../bin/net5.0/illink.dll. Which worked before by luck, since the folder in the artifacts where the test lives ends with bin/net5.0 as well. Now when the test is running on 6, the path ends with bin/net6.0.
But the product is still NET5.
Commit migrated from dotnet/linker@70612c2
Retarget all tests to run on .NET6. This will allow us to test some new APIs added into the framework for .NET 6.
The changes in MembersUsedViaReflection are due to change in the framework annotations - we're now marking less (but still enough).