You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[severity:It bothers me. A fix would be nice]
The default application start folder should not point to Windows's system folder.
That yields lot's of problems, as every other solution so far was able to create and write to local folder where it has started from debugger without any additional actions.
Unfortunately this is not the case for default .net MAUI Windows application.
To reproduce:
Create new .net MAUI app from template
Put the breakpoint at line 25 of MauiProgram.cs (line with return)
Run the app, wait for breakpoint
In the immediate Window check:
Directory.GetCurrentDirectory()
result: "C:\Windows\system32"
It should point to a folder where the project is, this is the developer's expectation as it was for all other types of projects.
Original Comments
Feedback Bot on 5/19/2022, 01:16 AM:
(private comment, text removed)
Feedback Bot on 5/20/2022, 08:06 AM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered:
Same happens with a WinUI app and I think with any Windows based app. It's probably different when you distribute the actual app or set the working directory when starting it. At the very least, this is not something caused from within .NET MAUI.
Same happens with a WinUI app and I think with any Windows based app. It's probably different when you distribute the actual app or set the working directory when starting it. At the very least, this is not something caused from within .NET MAUI.
This is a WinUI caused behavior then. This does not happen on other apps like WinForms or WPF. Or any other non packaged app format (Not sure if its related to that)
ghost
locked as resolved and limited conversation to collaborators
Jul 16, 2022
This issue has been moved from a ticket on Developer Community.
[severity:It bothers me. A fix would be nice]
The default application start folder should not point to Windows's system folder.
That yields lot's of problems, as every other solution so far was able to create and write to local folder where it has started from debugger without any additional actions.
Unfortunately this is not the case for default .net MAUI Windows application.
To reproduce:
Directory.GetCurrentDirectory()
result: "C:\Windows\system32"
It should point to a folder where the project is, this is the developer's expectation as it was for all other types of projects.
Original Comments
Feedback Bot on 5/19/2022, 01:16 AM:
(private comment, text removed)
Feedback Bot on 5/20/2022, 08:06 AM:
(private comment, text removed)
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: