Skip to content

Template in Visual Studio that adds a DiagnosticSource binding redirect in web.config, but doesn’t publish the assembly #46

Open
@SergeyKanzhelev

Description

@SergeyKanzhelev

The issue is caused by a broken template in Visual Studio that adds a DiagnosticSource binding redirect in web.config, but doesn’t publish the assembly.

<dependentAssembly>
        <assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.2.1" newVersion="4.0.2.1" />
      </dependentAssembly>

Workaround if to remove that dependentAssembly node. VS folks are aware of the problem and they have a fix for it in 15.9.1

We may need to fix it by not crash if DiagnosticsSource cannot be found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions