dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.21k stars 5.86k forks source link

Invalid example code #40754

Open ABi-lab opened 4 months ago

ABi-lab commented 4 months ago

Type of issue

Code doesn't work

Description

image

Page URL

https://learn.microsoft.com/en-us/dotnet/fundamentals/reflection/how-to-define-a-generic-type-with-reflection-emit

Content source URL

https://github.com/dotnet/docs/blob/main/docs/fundamentals/reflection/how-to-define-a-generic-type-with-reflection-emit.md

Document Version Independent Id

ecc250a4-075f-9417-0826-7e6d6ed6dc01

Article author

@dotnet-bot

Metadata

gabbersepp commented 4 months ago

The example works great for .NET framework but not for dotnet core. what ist the target framework for the documentation?

ABi-lab commented 4 months ago

target framework **for the documentation**? i suppose "for the documentation" you can see what the concerned article is for, but for my project, target framework is .NET 8

image

gabbersepp commented 4 months ago

target framework **for the documentation**? i suppose "for the documentation" you can see what the concerned article is for, but for my project, target framework is .NET 8

. The question was supposed to be answered by the team :-), not sure maybe by @BillWagner ? Currently we can not switch the framework version for the documentation. For which framework version the documentation should be written?

BillWagner commented 3 months ago

target framework **for the documentation**? i suppose "for the documentation" you can see what the concerned article is for, but for my project, target framework is .NET 8

. The question was supposed to be answered by the team :-), not sure maybe by @BillWagner ? Currently we can not switch the framework version for the documentation. For which framework version the documentation should be written?

Switching framework versions on a doc is only supported for API reference, not other tutorials.