Repository navigation
Retarget to .NET 5.0 - #1684
Retarget to .NET 5.0#1684
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Looks good to me, but Eric and Will would know much better. I've never moved us up to a new major version sdk before :) |
|
Here's the relevant code: https://github.com/dotnet/coreclr/blob/4e960d72ad19086a9615229b24b50dbd9ccb143c/src/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.targets For some reason you're no longer restoring ILDasm correctly. |
|
Could be related to dotnet/coreclr@4e960d7 /cc @jkoritzinsky |
|
There's a typo in that PR that I missed since it's only on the ildasm side. 😢 I'll put out a PR to coreclr to fix it and ping back here once the fix is in. |
When I cleaned up the Microsoft.NET.SDK.IL implementation, I missed one typo. This causes the SDK to fail to resolve ILDasm as discovered in dotnet/winforms#1684.
When I cleaned up the Microsoft.NET.SDK.IL implementation, I missed one typo. This causes the SDK to fail to resolve ILDasm as discovered in dotnet/winforms#1684.
|
Changes look reasonable, but I suggest adding a property for the default TFM so you don't have to hardcode |
perhaps move these out to Directory.Build.Props / Targets ? |
When I cleaned up the Microsoft.NET.SDK.IL implementation, I missed one typo. This causes the SDK to fail to resolve ILDasm as discovered in dotnet/winforms#1684.
|
@wtgodbe - thank you; updated, please have a look |
wtgodbe
left a comment
There was a problem hiding this comment.
Looks good, other than the 1 question
|
Do you want to delete all the hardcoded assembly versions now that you can just rely on the product version and be higher than desktop? |
Thank you
You've lost me here, increment to what? |
There was a problem hiding this comment.
@ericstj as soon as I removed this line a number of tests started failing, e.g. https://dev.azure.com/dnceng/public/_build/results?buildId=330259&view=ms.vss-test-web.build-test-results-tab

What are we missing?
There was a problem hiding this comment.
Where does 42.42.42.42 come from though? I couldn't find it in the codebase
There was a problem hiding this comment.
That’s the default version that Arcade uses if you don’t explicitly tell it to use shipping versions in non-CI builds.
There was a problem hiding this comment.
This is a bug actually. To correctly round-trip with .NET Framework you need TypeForwardedFrom attribute with desktop identity. Otherwise a version update to core breaks back-compat
There was a problem hiding this comment.
I had an offline chat with Eric and I'm going to fix our serialisation tests to flow NET Fx --> NET5 for now.
@merriemcgaw @Tanya-Solyanik we need to decide how important NET5 --> NET Fx serialisation compat
In 3.1 you probably want a different assembly version for your assemblies. In CoreFx we followed the pattern of incrementing 3rd portion by default on a new release (reserving 4th part for servicing), we'd increment the second/minor version if API changed. Essentially doing our best to follow SemVer by communicating bugfixes in 3rd portion API/features in 2nd portion. This is really up to you to decide. After 3.x it's much easier since you can just rely on product versioning. You may encounter some issues with the version bump since it will be the first time the .NETCore assembly versions differ from desktop for WinForms, but I think this is something you need to do to see what breaks. Best to do it before all the design-time work is "done". |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1406d41 to
5a3e7e8
Compare
1. Update dependencies with darc tool:
`darc update-dependencies --channel ".NET Core 5 Dev"`
2. Centralise and update references to `netcoreapp5`
3. Delete all the hard-coded assembly versions and just rely on
the product version since the version is higher than the NET Fx
4. Update serialization tests due to assembly version change.
Test serialisation only one way .NET Fx -> .NET, as well as .NET -> .NET
Serialisation .NET -> .NET Fx will need to be added later, if it is deemed
necessary.
5a3e7e8 to
f71a59f
Compare
Codecov Report
@@ Coverage Diff @@
## master #1684 +/- ##
==================================================
+ Coverage 25.93825% 25.9446% +0.00635%
==================================================
Files 807 807
Lines 267786 267786
Branches 37960 37960
==================================================
+ Hits 69459 69476 +17
+ Misses 193398 193382 -16
+ Partials 4929 4928 -1
|


Proposed changes
Update dependencies with darc tool:
darc update-dependencies --channel ".NET Core 5 Dev"Manually update references to
netcoreapp5Delete all the hard-coded assembly versions and just rely on the product version since the version is higher than the NET Fx
Update serialization tests due to assembly version change.
Test serialisation only one way .NET Fx -> .NET, as well as .NET -> .NET.
Serialisation .NET -> .NET Fx will need to be added later, if it is deemed necessary.
Test methodology
Microsoft Reviewers: Open in CodeFlow