New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
0xd4d opened this Issue Feb 9, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@0xd4d
Copy link

0xd4d commented Feb 9, 2019

  • .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
@zsd4yr

This comment has been minimized.

Copy link
Member

zsd4yr commented Feb 14, 2019

Fixed by #441

@zsd4yr zsd4yr closed this Feb 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment