-
Notifications
You must be signed in to change notification settings - Fork 519
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
[workload] Update net6.0 KnownFrameworkReference #15834
Conversation
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.
<KnownFrameworkReference | ||
Update="Microsoft.$(_PlatformName)" | ||
DefaultRuntimeFrameworkVersion="@NET6_NUGET_VERSION_NO_METADATA@" | ||
LatestRuntimeFrameworkVersion="@NET6_NUGET_VERSION_NO_METADATA@" | ||
TargetingPackVersion="@NET6_NUGET_VERSION_NO_METADATA@" | ||
/> |
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.
This seems to match what we do in Android here:
A question for later: can we use **FromWorkload**
here? That would prevent us from having to hardcode version numbers in this file.
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.
be careful using **FromWorkload**
along with any aliasing and this appears to be updating the 6.0 version which would no longer have an entry in the manifest and so no version either
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.
**FromWorkload**
was what got us into this mess in the first place...
0a923e5
to
686ed4f
Compare
A `Xamarin.Shared.Sdk.MultiTarget.targets` file has been added to update the ref/runtime pack versions associated with the .NET 6 SDK. This file will only be imported when using the .NET 6 SDK, and it should work around the need to add new net6 and net7 versioned aliases of the Ref and Runtime packs. Adding this file to `AfterMicrosoftNETSdkTargets` will ensure that it is imported last, after all KnownFrameworkReferences that need updating are declared.
686ed4f
to
fe85dd6
Compare
🔥 Failed to compare API and create generator diff 🔥 Failed to update apidiff references Pipeline on Agent |
❌ [PR Build] Tests on macOS Mac Catalina (10.15) failed ❌Failed tests are:
Pipeline on Agent |
❌ [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) failed ❌Failed tests are:
Pipeline on Agent |
@@ -18,10 +18,10 @@ | |||
Include="Microsoft.@PLATFORM@" | |||
TargetFramework="@DOTNET_TFM@" | |||
RuntimeFrameworkName="Microsoft.@PLATFORM@" | |||
DefaultRuntimeFrameworkVersion="@NUGET_VERSION_NO_METADATA@" | |||
LatestRuntimeFrameworkVersion="@NUGET_VERSION_NO_METADATA@" | |||
DefaultRuntimeFrameworkVersion="**FromWorkload**" |
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 don't think this is what we want, because we end up with the same problem in .NET 8: the .NET 8 workload will point to .NET 8 packs, and we'll need to update KnownFrameworkReference
again like you're doing below for the .NET 8 workload to load .NET 7 ref/runtime packs from the .NET 7 sdk packs.
OTOH this is for RC1 only, we can do something else in RC2+.
Using the exact versions makes everything work without having to update any KnownFrameworkReference.
This comment was marked as outdated.
This comment was marked as outdated.
🔥 [CI Build] Test results 🔥Test results❌ Tests failed on VSTS: simulator tests 0 tests crashed, 11 tests failed, 212 tests passed. Failures❌ bcl tests
Html Report (VSDrops) Download Successes✅ cecil: All 1 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
Test failures are unrelated (https://github.com/xamarin/maccore/issues/2450). |
/sudo backport net7.0 |
Backport Job to branch net7.0 Created! The magic is happening here |
Hooray! Backport succeeded! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=6656025 for more details. |
A `Xamarin.Shared.Sdk.MultiTarget.targets` file has been added to update the ref/runtime pack versions associated with the .NET 6 SDK. This file will ship as part of the .NET 7 SDK but only be imported when using the .NET 6 SDK. This should work around the need to add new and net7 versioned aliases of the `Ref` and `Runtime` packs. Adding this file to `AfterMicrosoftNETSdkTargets` will ensure that it is imported last, after all `KnownFrameworkReferences` that need updating are declared. Backport of #15834 Co-authored-by: Peter Collins <pecolli@microsoft.com> Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
…FrameworkReference (#16135) A `Xamarin.Shared.Sdk.MultiTarget.targets` file has been added to update the ref/runtime pack versions associated with the .NET 6 SDK. This file will ship as part of the .NET 7 SDK but only be imported when using the .NET 6 SDK. This should work around the need to add new and net7 versioned aliases of the `Ref` and `Runtime` packs. Adding this file to `AfterMicrosoftNETSdkTargets` will ensure that it is imported last, after all `KnownFrameworkReferences` that need updating are declared. Backport of #15834 Backport of #15882 Co-authored-by: Peter Collins <pecolli@microsoft.com> Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
…kReference (#16136) A `Xamarin.Shared.Sdk.MultiTarget.targets` file has been added to update the ref/runtime pack versions associated with the .NET 6 SDK. This file will ship as part of the .NET 7 SDK but only be imported when using the .NET 6 SDK. This should work around the need to add new and net7 versioned aliases of the `Ref` and `Runtime` packs. Adding this file to `AfterMicrosoftNETSdkTargets` will ensure that it is imported last, after all `KnownFrameworkReferences` that need updating are declared. Backport of #15834 Backport of #15882 Co-authored-by: Peter Collins <pecolli@microsoft.com> Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
A
Xamarin.Shared.Sdk.MultiTarget.targets
file has been added to updatethe ref/runtime pack versions associated with the .NET 6 SDK. This file
will ship as part of the .NET 7 SDK but only be imported when using the
.NET 6 SDK. This should work around the need to add new and net7
versioned aliases of the
Ref
andRuntime
packs. Adding this file toAfterMicrosoftNETSdkTargets
will ensure that it is imported last,after all
KnownFrameworkReferences
that need updating are declared.