Skip to content

Default Uri constructors brings a lot of dependencies #50359

Open
@marek-safar

Description

@marek-safar

Using a simple program like

using System;

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine(new Uri ("www.microsoft.com"));
    }
}

shows that the default Uri constructor brings a lot for size-optimized setup. The size increase for adding Uri constructor is about 80 KB which seems to be a lot for a simple "default" constructor call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.NetenhancementProduct code improvement that does NOT require public API changes/additionssize-reductionIssues impacting final app size primary for size sensitive workloads

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions