Skip to content
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

6.0.2 SDK update has broken WinForms apps #328

Closed
Hofknecht opened this issue Feb 13, 2022 · 4 comments
Closed

6.0.2 SDK update has broken WinForms apps #328

Hofknecht opened this issue Feb 13, 2022 · 4 comments

Comments

@Hofknecht
Copy link
Owner

Hofknecht commented Feb 13, 2022

we tried to release 1.2.7, but exe from release pipeline did not start without any message.
we found in eventlog:

Application: SystemTrayMenu.exe
CoreCLR Version: 6.0.121.56705
.NET Version: 6.0.1
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileLoadException: Could not load file or assembly 'System.Windows.Forms, Version=6.0.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'System.Windows.Forms, Version=6.0.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
   at SystemTrayMenu.Program.Main(String[] args)

we had installed .Net 6.0.1

when we upgraded to 6.0.2 it was working

we found also information about it here
dotnet/winforms#6663

There appears to be a critical problem with the new 6.0.2 update which makes apps compiled with it fail to start on machines running 6.0.1.

so we cancelled release 1.2.7

todo further analyze:
can we adjust build pipeline to build still with 6.0.1 SDK

@Hofknecht Hofknecht added this to Analyze / Spec in STM 1.3.0 via automation Feb 13, 2022
@Hofknecht Hofknecht added this to the 1.3 milestone Feb 13, 2022
@Hofknecht
Copy link
Owner Author

we used workaround from here
dotnet/core#7176

@Hofknecht
Copy link
Owner Author

todo: check with 6.0.3 if we can remove the added node in the projectfile, which we used as workaround

@Hofknecht
Copy link
Owner Author

added to the notes here
https://github.com/Hofknecht/SystemTrayMenu/projects/13
to check again when 6.0.3 released

meanwhile closed

STM 1.3.0 automation moved this from Analyze / Spec to Closed Feb 16, 2022
@Hofknecht
Copy link
Owner Author

now we have self contained and .net 7
no more any issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
STM 1.3.0
  
Closed
Development

No branches or pull requests

1 participant