-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
🚧 work in progressWork that is current in progressWork that is current in progressarea-VisualBasictenet-compatibilityIncompatibility with previous versions or with WinForms for .NET FrameworkIncompatibility with previous versions or with WinForms for .NET Framework
Milestone
Description
.NET version
.NET 8.0.204
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No response
Issue description
Single instance app doesn't work when same app is in different folders
Steps to reproduce
- Create a WinForm Application for .NET 8.0 (e.g.: WinFormsApp1)
- Implement the Single Instance Application using the Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase class;
- Build the Project and copy the bin\Debug\net8.0-windows folder for 2 diferent folders (e.g.: FolderA and FolderB);
- Launch the WinFormsApp1.exe from FolderA and keep it opened;
- Try to launch the WinFormsApp1.exe from FolderA again: Verify that it is detected that the WinFormsApp1.exe is already opened (PASS!);
- Now, Launch the WinFormsApp1.exe from FolderB: Verify that WinFormsApp1.exe is launched and 2 instances of the WinFormsApp1.exe are now opened. One from FolderA and other from FolderB (FAIL);
IMPORTANT NOTES
- This issue is NOT reproducible when the same App is compiled to .NET Framework 4.8;
Here is the code exemple to reproduce this issue: WinFormsApp1.zip
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🚧 work in progressWork that is current in progressWork that is current in progressarea-VisualBasictenet-compatibilityIncompatibility with previous versions or with WinForms for .NET FrameworkIncompatibility with previous versions or with WinForms for .NET Framework