From 990ac9827b6216d4f48e2fed7bf64c56b27c7398 Mon Sep 17 00:00:00 2001 From: angelazhangmsft Date: Fri, 30 Jul 2021 08:41:22 -0700 Subject: [PATCH] modify frameworkreference guidance (#944) --- docs/versioning.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/versioning.md b/docs/versioning.md index 7750ceeca..c861d70a6 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -114,8 +114,16 @@ For CsWinRT NuGet prereleases between any .NET servicing or feature releases, *\ 2. **[Diamond Dependency]**: An application is built using multiple components, for example WinUI and a library named *SimpleMath*. The WinUI library is built with .NET 5.0.100 while the *SimpleMath* library is built with .NET 5.0.200. In this scenario, there is an `AssemblyVersion` update in .NET 5.0.200. The application developer must upgrade to the latest version of the .NET SDK for any of its dependencies, in this case .NET 5.0.200. The warnings and errors encountered are manifested in the same manner as in Scenario #1. -3. **[Framework Reference Preview Override]**: An application developer runs into a blocking bug with the Windows SDK projections in the latest CsWinRT release. To address this issue, Microsoft releases a preview Windows SDK projection package that the developer can use by adding an override in their project file, for example as follows. This would be a temporary workaround for the developer that should be removed when there is a .NET SDK update. - +3. **[Windows SDK package override]**: An application developer runs into a blocking bug with the Windows SDK projections in the latest CsWinRT release. To address this issue, Microsoft releases a preview Windows SDK projection package that the developer can use by adding an override in their project file. This would be a temporary workaround for the developer that should be removed when there is a .NET SDK update. + + Starting in .NET SDK 5.0.302 and .NET SDK 5.0.205 or later, developers can use `WindowsSdkPackageVersion` to override their Windows SDK package version, as shown below. `FrameworkReference` is no longer supported in these versions of the .NET SDK. + ```xml + + 10.0.19041.18 + + ``` + + For earlier versions of the .NET SDK, developers can override the Windows SDK package with a `FrameworkReference` override: ```xml