The .NET Core SDK will fail when trying to build projects that target a .NET Framework TFM from a non-Windows machine, due to missing reference assemblies. It prints an error which includes a link to this page to acquire a ref pack, but this page doesn't mention acquiring or using ref packs from non-Windows machines, via the newly released ref pack NuGet packages, e.g. Microsoft.NETFramework.ReferenceAssemblies. We update this page and the page at https://docs.microsoft.com/en-us/dotnet/standard/assembly/reference-assemblies to document the process of using the new ref pack packages for .NET Framework.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The scenario isn't really non-windows. This equally applies to Windows machines where you didn't install the right targeting pack.
Indeed, however in that case I believe the URL in the error message would at least direct someone to a page where they can download a Windows ref pack. For non-Windows platforms they land somewhere with no detail on how to fix their problem.
This assumes it would be convenient for them to install (what I assumed is an MSI) it. For example, even with Windows DevOps agents, this approach is way more convenient. In any case, I'm pretty sure we agree.
If you're implying that our primary guidance on getting reference assemblies for .NET Framework should be updated to to equally recommend (or even primarily recommend) the new ref pack NuGets, I don't disagree.
@richlander @DamianEdwards What error is this? I feel like if you're using .NET Core to compile a .NET Framework TFM and receive an error, the page that it points to should be in the context of .NET Core, not .NET Framework. Is this error shared by a non-SDK project targeting .NET Framework that is missing?
Errors that point people to pages shouldn't be generic conceptual articles, they should be troubleshooting articles that are specific to the error.
It's the error that's shown in the build output when targeting a .NET Framework TFM from an SDK-style project. I agree that whatever page it refers to should be relevant to the context in which the error is shown.
OK, re-reading all of this, I think we should update both the pages with something related to this scenario.
However, we should also have the build error point to a troubleshooting page about this specific error, not this conceptual material. Do you want to create an issue on the SDK repo for that?
@Thraka done dotnet/sdk#11243