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
We shouldn't depend on latest .NET SDK to build our projects. It may lead to breakage, similarly as depending on latest Ubuntu led to breakage, per #4888.
Notably, using newer versions of SDKs to build projects targeting older versions will generate warning on SDKs being out of support, and our pipelines appear to fail builds on these warnings. Details provided in #4934.
As a result of this moving target, for example the pipeline tools - ConfigureFabricBot was using different MSBuild versions even though nothing changed on our side.
konrad-jamrozik
changed the title
Many of the tools use latest SDKs to build instead of specifically declared ones
Some of our tools use latest SDKs to build instead of specifically declared ones
Dec 17, 2022
We shouldn't depend on latest .NET SDK to build our projects. It may lead to breakage, similarly as depending on latest Ubuntu led to breakage, per #4888.
Notably, using newer versions of SDKs to build projects targeting older versions will generate warning on SDKs being out of support, and our pipelines appear to fail builds on these warnings. Details provided in #4934.
Coming back to Ubuntu - even if we set an Ubuntu image, in given image the latest .NET SDK changes over time. For example, for Ubuntu 20.04, which we use in many places. See blame on relevant line from the image included-software doc (see line 191). On that image, the latest .NET was v6 until v7 was introduced on Nov 24, 2022 (see line 194).
As a result of this moving target, for example the pipeline tools - ConfigureFabricBot was using different MSBuild versions even though nothing changed on our side.
A build from June 23, 2022 was using MSBuild 17.2.0:
while a build from December 9, 2022 was using MSBuild 17.4.0:
These MSBuild versions correspond to .NET versions
6.0.300
and7.0.100
respectively, per this table in Overview of .NET, MSBuild, and Visual Studio versioning / Lifecycle. This used MSBuild version change happened because of the the aforementioned introduction of .NET 7 to the underlying image on Nov 24, 2022.Proposed solution
Ensure that all of our pipelines set .NET SDK version. In particular, don't use
SkipDotNetInstall
, as e.g. introduced in PR #1853.Related issues
#4934
#4888
The text was updated successfully, but these errors were encountered: