Skip to content

WinForms XML files from runtime pack are added to deps.json and prevent WPF/WinForms apps from starting #423

@ghost

Description

  • .NET Core Version: Latest daily build as of today: 3.0.100-preview4-010277
  • Have you experienced this same bug with .NET Framework?: No

Problem description:

XML files are included in deps json which prevent the apphost from starting the WPF/WinForms app

I found the following XML files in the nuget dir, and they're all added to the deps.json file:

System.Design.xml
System.Drawing.Design.xml
System.Drawing.xml
System.Windows.Forms.Design.Editors.xml
System.Windows.Forms.Design.xml
System.Windows.Forms.xml

Actual behavior:

A message box is shown, eg.:

---------------------------
wpftest.exe
---------------------------
Error:
  An assembly specified in the application dependencies manifest (wpftest.deps.json) has already been found but with a different file extension:
    package: 'runtimepack.runtime.win-x64.Microsoft.WindowsDesktop.App', version: '3.0.0-preview-27408-15'
    path: './System.Design.xml'
    previously found assembly: 'C:\wpftest\bin\Release\netcoreapp3.0\win-x64\publish\System.Design.dll'

---------------------------
OK   
---------------------------

Expected behavior:

It starts

Minimal repro:

Use latest daily build of .NET Core SDK, eg. 3.0.100-preview4-010277

Build:

# or replace wpf with winforms
dotnet new wpf
dotnet publish -c Release -f netcoreapp3.0 -r win-x64 --self-contained

Run:

bin\Release\netcoreapp3.0\win-x64\publish\wpftest.exe

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