You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Microsoft.CodeAnalysis in 5.0.100 source-built Razor SDK is newer than Microsoft-built copy #1869
Microsoft.CodeAnalysis is also shipped with the Microsoft-built SDK:
$ tar tf ~/downloads/dotnet-sdk-5.0.100-linux-x64.tar.gz | grep Microsoft.CodeAnalysis.dll
./sdk/5.0.100/Sdks/Microsoft.NET.Sdk.Razor/tools/Microsoft.CodeAnalysis.dll
./sdk/5.0.100/Roslyn/bincore/Microsoft.CodeAnalysis.dll
I can't see the version of the bincore dll, but the Razor/tools version seems to be 3.7.0 (instead of 3.8.0) 😞
$ exiftool ./sdk/5.0.100/Sdks/Microsoft.NET.Sdk.Razor/tools/Microsoft.CodeAnalysis.dll | grep -i version
ExifTool Version Number : 12.00
Linker Version : 48.0
OS Version : 4.0
Image Version : 0.0
Subsystem Version : 4.0
File Version Number : 3.700.20.37502
Product Version Number : 0.0.0.0
File Version : 3.700.20.37502
Product Version : 3.7.0-6.20375.2+34202cc2f3e869fd70a26d8237f4552cf9e192cf
Assembly Version : 3.7.0.0
Assuming we're building 3.8.0 for some valid reason, this could mean the Microsoft SDK is incoherent. It might be fine for us to replace 3.7.0 with 3.8.0 in this case. But maybe we don't have a valid reason for 3.8.0?
@JunTaoLuo, do you know if it's ok for source-build to use a 3.8.0 version at ./sdk/5.0.100/Sdks/Microsoft.NET.Sdk.Razor/tools/Microsoft.CodeAnalysis.dll rather than 3.7.0? Is the incoherency in Microsoft.NET.Sdk.Razor expected?
Is this something that should be fixed in 5.0 servicing in the Microsoft build to make it more coherent?
@mmitche, maybe you have some broader context over whether that incoherency is expected in the 5.0 SDK, if it's ok for source-build to use 3.8.0 in both cases?
There's a PR proposed for 5.0.1 to update the Microsoft build to use 3.8.0 in both places there, too.
In the future, when we start building multiple SDK bands, we may get incoherent again due to the nature of building an SDK tool inside a Runtime repo like aspnetcore. More details: dotnet/aspnetcore#28096 (comment)
Activity
dagood commentedon Nov 9, 2020
Assuming we're building 3.8.0 for some valid reason, this could mean the Microsoft SDK is incoherent. It might be fine for us to replace 3.7.0 with 3.8.0 in this case. But maybe we don't have a valid reason for 3.8.0?
dagood commentedon Nov 9, 2020
Actually, directly inspecting all
Microsoft.CodeAnalysis.dllfiles present shows that the SDK has incoherent versions:dagood commentedon Nov 9, 2020
@JunTaoLuo, do you know if it's ok for source-build to use a 3.8.0 version at
./sdk/5.0.100/Sdks/Microsoft.NET.Sdk.Razor/tools/Microsoft.CodeAnalysis.dllrather than 3.7.0? Is the incoherency inMicrosoft.NET.Sdk.Razorexpected?Is this something that should be fixed in 5.0 servicing in the Microsoft build to make it more coherent?
dagood commentedon Nov 9, 2020
@mmitche, maybe you have some broader context over whether that incoherency is expected in the 5.0 SDK, if it's ok for source-build to use 3.8.0 in both cases?
dagood commentedon Nov 19, 2020
Triage: @JunTaoLuo, @mmitche, any thoughts on this?
dagood commentedon Nov 23, 2020
Filed dotnet/aspnetcore#28096 to figure out what the next steps are.
dagood commentedon Nov 24, 2020
In dotnet/aspnetcore#28096 it's confirmed that using 3.8.0 in both places is fine. Closing.
There's a PR proposed for 5.0.1 to update the Microsoft build to use 3.8.0 in both places there, too.
In the future, when we start building multiple SDK bands, we may get incoherent again due to the nature of building an SDK tool inside a Runtime repo like aspnetcore. More details: dotnet/aspnetcore#28096 (comment)