-
Notifications
You must be signed in to change notification settings - Fork 850
Labels
Area-Compiler-CodeGenIlxGen, ilwrite and things at the backendIlxGen, ilwrite and things at the backendBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.Readygood first issuehelp wanted
Milestone
Description
Consider an attribute having a public property with a type from System.Drawing assembly defined in a net461 class library project:
namespace AttributeAssemblyReferenceRepro
open System
open System.Drawing
type FooAttribute() =
inherit Attribute()
member val Prop: FontStyle = Unchecked.defaultof<_> with get, setWhen used in another net461 project, it doesn't make the compiler generate a reference to System.Drawing assembly in the output assembly.
module Module
open System.Drawing
open AttributeAssemblyReferenceRepro
[<Foo(Prop = FontStyle.Bold)>]
do ()A workaround is to use any type from System.Drawing somehow else, so the missing reference is added:
type T(p: FontStyle) =
class endThe following .NET Core SDK is used:
$ dotnet --version
3.0.100
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-Compiler-CodeGenIlxGen, ilwrite and things at the backendIlxGen, ilwrite and things at the backendBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.Readygood first issuehelp wanted
Type
Projects
Status
New