-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Set up for unpackaged app projects #3172
Conversation
…dev/unpackaged # Conflicts: # Directory.Build.targets # src/Workload/Microsoft.Maui.Sdk/Sdk/WinUI.SingleProject.targets
<RuntimeIdentifier>win-x64</RuntimeIdentifier> | ||
<RuntimeIdentifier>win10-x64</RuntimeIdentifier> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a gotcha since we pretend support winui on win7, but since we don't, we should probably update all the things to be win10-x64.
.UseVersionTracking() | ||
//.UseVersionTracking() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This uses preferences which assumes packaged projects.
string root; | ||
try | ||
{ | ||
root = global::Windows.ApplicationModel.Package.Current.InstalledLocation.Path; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a non-exceptional way to do this? Otherwise unpackaged apps will all get exceptions on startup?
{ | ||
try | ||
{ | ||
return Package.Current.Id.Name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See earlier comment about exceptions. This doesn't look so nice
This is totes hax! Needs a real fix in here. Probably not even this PR. Let me close to avoid confusion. |
Description of Change
nuff said!