2022-04-20 04:00:28 +08:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
|
<Import Project="..\..\Version.props" />
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<OutputType>WinExe</OutputType>
|
2022-12-01 22:40:41 +08:00
|
|
|
|
<TargetFramework>net7.0-windows10.0.19041.0</TargetFramework>
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
|
|
|
|
|
<RootNamespace>Microsoft.PowerToys.Settings.UI</RootNamespace>
|
|
|
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
2022-04-20 23:21:46 +08:00
|
|
|
|
<RuntimeIdentifiers>win10-x64;win10-arm64</RuntimeIdentifiers>
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<UseWinUI>true</UseWinUI>
|
|
|
|
|
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
|
|
|
|
|
<WindowsPackageType>None</WindowsPackageType>
|
|
|
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
|
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
|
|
|
<ApplicationIcon>icon.ico</ApplicationIcon>
|
2022-06-07 16:58:32 +08:00
|
|
|
|
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
|
2022-04-21 04:24:36 +08:00
|
|
|
|
<!-- OutputPath looks like this because it has to be called both by settings and publish.cmd -->
|
|
|
|
|
<OutputPath>..\..\..\$(Platform)\$(Configuration)\Settings</OutputPath>
|
2022-12-14 20:37:23 +08:00
|
|
|
|
<SelfContained>true</SelfContained>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<!-- SelfContained=true requires RuntimeIdentifier to be set -->
|
|
|
|
|
<PropertyGroup Condition="'$(Platform)'=='x64'">
|
|
|
|
|
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<PropertyGroup Condition="'$(Platform)'=='ARM64'">
|
|
|
|
|
<RuntimeIdentifier>win10-arm64</RuntimeIdentifier>
|
2022-04-20 04:00:28 +08:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
2022-04-20 23:21:46 +08:00
|
|
|
|
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<NoWarn></NoWarn>
|
|
|
|
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
|
|
|
|
<WarningsNotAsErrors>CA1720</WarningsNotAsErrors>
|
|
|
|
|
<Optimize>False</Optimize>
|
|
|
|
|
<DebugType>full</DebugType>
|
|
|
|
|
<DebugSymbols>true</DebugSymbols>
|
|
|
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
2022-04-20 23:21:46 +08:00
|
|
|
|
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<NoWarn></NoWarn>
|
|
|
|
|
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
|
|
|
|
|
<WarningsNotAsErrors>CA1720</WarningsNotAsErrors>
|
|
|
|
|
<Optimize>true</Optimize>
|
|
|
|
|
</PropertyGroup>
|
2022-11-24 02:57:09 +08:00
|
|
|
|
|
2022-10-26 21:02:31 +08:00
|
|
|
|
<!-- See https://learn.microsoft.com/windows/apps/develop/platform/csharp-winrt/net-projection-from-cppwinrt-component for more info -->
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<CsWinRTIncludes>PowerToys.GPOWrapper</CsWinRTIncludes>
|
|
|
|
|
<CsWinRTGeneratedFilesDir>$(OutDir)</CsWinRTGeneratedFilesDir>
|
|
|
|
|
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
2022-11-24 02:57:09 +08:00
|
|
|
|
<!-- Needed for CommunityToolkit.Labs.WinUI.SettingsControls. -->
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<RestoreAdditionalProjectSources>https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json</RestoreAdditionalProjectSources>
|
|
|
|
|
</PropertyGroup>
|
2023-02-15 10:38:53 +08:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<None Remove="OOBE\Views\OobeOverviewPlaceholder.xaml" />
|
|
|
|
|
</ItemGroup>
|
2022-12-16 18:15:55 +08:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<None Remove="Controls\ColorFormatEditor.xaml" />
|
|
|
|
|
</ItemGroup>
|
2022-10-13 19:05:43 +08:00
|
|
|
|
|
2023-01-31 07:00:11 +08:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<None Remove="FlyoutWindow.xaml" />
|
|
|
|
|
<None Remove="Flyout\AppsListPage.xaml" />
|
|
|
|
|
<None Remove="Controls\FlyoutMenuButton\FlyoutMenuButton.xaml" />
|
|
|
|
|
<None Remove="Flyout\LaunchPage.xaml" />
|
|
|
|
|
<None Remove="Flyout\ShellPage.xaml" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Content Include="Assets\SplashScreen.scale-200.png" />
|
|
|
|
|
<Content Include="Assets\LockScreenLogo.scale-200.png" />
|
|
|
|
|
<Content Include="Assets\Square150x150Logo.scale-200.png" />
|
|
|
|
|
<Content Include="Assets\Square44x44Logo.scale-200.png" />
|
|
|
|
|
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
|
|
|
|
|
<Content Include="Assets\StoreLogo.png" />
|
|
|
|
|
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2023-02-14 01:10:33 +08:00
|
|
|
|
<PackageReference Include="CommunityToolkit.Labs.WinUI.SettingsControls" />
|
|
|
|
|
<PackageReference Include="Microsoft.Windows.CsWinRT" />
|
|
|
|
|
<PackageReference Include="CommunityToolkit.WinUI.UI" />
|
|
|
|
|
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls" />
|
|
|
|
|
<PackageReference Include="WinUIEx" />
|
|
|
|
|
<PackageReference Include="Microsoft.WindowsAppSDK" />
|
|
|
|
|
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
|
|
|
|
|
<PackageReference Include="Microsoft.Xaml.Behaviors.WinUI.Managed" />
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<Manifest Include="$(ApplicationManifest)" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<!-- Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
|
|
|
|
|
Tools extension to be activated for this project even if the Windows App SDK Nuget
|
|
|
|
|
package has not yet been restored -->
|
2023-02-15 10:38:53 +08:00
|
|
|
|
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnablePreviewMsixTooling)'=='true'">
|
|
|
|
|
<ProjectCapability Include="Msix" />
|
|
|
|
|
</ItemGroup>
|
2023-02-15 10:38:53 +08:00
|
|
|
|
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<ItemGroup>
|
2023-02-15 10:38:53 +08:00
|
|
|
|
<ProjectReference Include="..\..\common\AllExperiments\AllExperiments.csproj" />
|
2022-10-26 21:02:31 +08:00
|
|
|
|
<ProjectReference Include="..\..\common\GPOWrapper\GPOWrapper.vcxproj" />
|
2023-03-21 17:43:15 +08:00
|
|
|
|
<ProjectReference Include="..\..\common\interop\PowerToys.Interop.vcxproj" />
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<ProjectReference Include="..\..\common\ManagedCommon\ManagedCommon.csproj" />
|
|
|
|
|
<ProjectReference Include="..\..\common\ManagedTelemetry\Telemetry\ManagedTelemetry.csproj" />
|
|
|
|
|
<ProjectReference Include="..\Settings.UI.Library\Settings.UI.Library.csproj" />
|
|
|
|
|
</ItemGroup>
|
2023-02-15 10:38:53 +08:00
|
|
|
|
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<ItemGroup>
|
2023-01-31 07:00:11 +08:00
|
|
|
|
<Page Update="FlyoutWindow.xaml">
|
|
|
|
|
<Generator>MSBuild:Compile</Generator>
|
|
|
|
|
</Page>
|
|
|
|
|
<Page Update="Flyout\LaunchPage.xaml">
|
|
|
|
|
<Generator>MSBuild:Compile</Generator>
|
|
|
|
|
</Page>
|
|
|
|
|
<Page Update="Flyout\ShellPage.xaml">
|
|
|
|
|
<Generator>MSBuild:Compile</Generator>
|
|
|
|
|
</Page>
|
2022-12-16 18:15:55 +08:00
|
|
|
|
<Page Update="Controls\ColorFormatEditor.xaml">
|
|
|
|
|
<Generator>MSBuild:Compile</Generator>
|
|
|
|
|
</Page>
|
2023-01-31 07:00:11 +08:00
|
|
|
|
<Page Update="Flyout\AppsListPage.xaml">
|
|
|
|
|
<Generator>MSBuild:Compile</Generator>
|
|
|
|
|
</Page>
|
|
|
|
|
<Page Update="Flyout\Controls\FlyoutMenuButton.xaml">
|
|
|
|
|
<Generator>MSBuild:Compile</Generator>
|
|
|
|
|
</Page>
|
2022-04-20 04:00:28 +08:00
|
|
|
|
<None Update="icon.ico">
|
|
|
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
|
|
|
</None>
|
2023-02-15 10:38:53 +08:00
|
|
|
|
<Page Update="OOBE\Views\OobeOverviewPlaceholder.xaml">
|
|
|
|
|
<Generator>MSBuild:Compile</Generator>
|
|
|
|
|
</Page>
|
2022-10-13 19:05:43 +08:00
|
|
|
|
<Page Update="OOBE\Views\OobeHosts.xaml">
|
|
|
|
|
<Generator>MSBuild:Compile</Generator>
|
|
|
|
|
</Page>
|
2023-02-15 10:38:53 +08:00
|
|
|
|
<Page Update="OOBE\Views\OobeOverviewAlternate.xaml">
|
|
|
|
|
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
|
|
|
|
|
</Page>
|
Registry Preview: complete feature with integration with Settings and the Launcher UX (#23709)
* Initial src for Registry Preview
Initial collection of files
* Update MainWindow.Utilities.cs
fixing a few spelling items
* Update expect.txt
* Update App.xaml.cs
* Update MainWindow.Events.cs
* Update MainWindow.Utilities.cs
* Update MainWindow.xaml.cs
* Update expect.txt
* Update MainWindow.Events.cs
* Rename AddPreviewtoRegfile.reg to AddPreviewToRegfile.reg
* Rename RemovePreviewtoRegfile.reg to RemovePreviewToRegfile.reg
* Update Resources.resw
* Update MainWindow.xaml
* Turns on self-contained mode
Updates the csproj file to compile the app as self-contained .
Includes fixes for code that expected the app to be in an ApplicationContainer.
Updates WindowsAppSDK from 1.1.5 to 1.2.230118.102.
* Updated to align with StyleCop errors
Multiple changes across the codebase that now aligns with StyleCop guidelines.
Tested again after the changes, to make sure no new bugs crept in.
* Added comments for spell-checker
Unclear if this side step should be done or not, but the kxz comes from a GUID and the other three names are constants.
* Adding code-custom.dic
Comments didn't work; trying a dic file
* Added four new terms to expects.txt file
Cleaning up attempt to update the spell-checker with dic file and moved it to expects.txt file
* Adding one more string
Adding one more string for Spell-Check
* Adding back egfile
Seems this is needed.
* Correcting a variable name
Seems one of the variable names that changed globally got missed in a XAML file.
* Update project to be more PowerToys friendly
Tweaking names and output file name to fit better with PowerToys.
* First pass at integration into Settings and Launcher
This PR is not as large as it seems:
- RegistryPreview's source moved around to a "better" directory that makes it look like the whole app changed. It didn't. In fact, I opened it in Beyond Compare and there's not much difference in the RegistryPreview app.
- Added RegistryPreviewExt that produces a DLL that the Launcher can run the EXE
- Changes to Runner calls the Ext DLL rather than the app
- Settings UI got a bunch of changes to enable the Settings page for enable/disable across ViewModels, Views, and string tables.
Still todo:
- Add "Preview" to .REG files, when the app is enable (and remove it when disabled)
- Update the thumbnail-screenshot in the Settings page
- Add support for OOBE
* Update expect.txt
Added REGISTRYPREVIEWEXT for recent changes and corrected an alphabetic sorting error.
* Updating project file for Release mode
Build failed due to a bad Includes path in Release mode.
* Adds REG registration but breaks settings
This update will update the HKCU branch of the Registry for REG files: if the app in PowerToys is enabled, it adds a Preview item to the context menu of REG files and disabling in PowerToys removes the menu item.
While working on this, I noticed that the application settings were broken, after moving to a self-contained EXE: there must have been old settings from past builds, when it was still using containers and family names.
Added TODO's to add a new way to save settings, likely as JSON.
* Re-enabled app settings
Moved from using ApplicationDataContainer for app settings and now use simple JSON.
Also cleaned up handling the scenario where the Launcher send in the PID from PowerToys' main thread.
Fixed past spelling errors as well.
* Update RegistryPreview.png
Captured new screenshot.
* Integration into OOBE
Integrates new page for Registry Preview into OOBE process.
* Removing old comment and unneeded calls
Two bits of source removed as they aren't needed any longer
Removing a chunk of old commented out code that doesn't make sense anymore.
* Merging file from upstream
Updating some files due to three merge conflicts from upstream changes and a couple of other changes to keep up.
* Update .gitignore
Adding two vcxproj files that have local updates for atls.lib locations.
* Update Resources.resw
Fixing a typo that involved a missing closing tag.
* Fix analyzer warnings
* Fix CI build
* Fix ARM64 build
Project file cleanup
* Add to installer
* expect.txt
* Remove unneeded dll
* Update MainWindow.xaml.cs
Added check for current Theme and adjust TextBox Foreground accordingly.
* Update expect.txt
Cleaning up merge cruft.
* Revert wrong .gitignore changes
* Fix ARM installer
* Update Brushes for textBox to use Theme based versions
Finally figured out how to use the built-in, Theme-aware Brushes for the font colors in the onscreen textBox. Also have it aligning the font color for the hover state.
* Align configuration in PowerToys.sln
* [installer] Add missing files
* Fix bad merge
* Fixes for stefansjfw's review
Includes:
- two new strings for UX localization
- adds compatibility section for Windows 10
- fix to only track successful activations
- Removes two REG files that were there for examples
* Fixes from review from htcfreek
Updates:
- Fixed an issue where TextBox_TextChanged was firing when you simply opened a file.
- Added clamp to prevent files larger than 10MB from being opened.
- Added support in the UX to show Keys and Values that are deleted via the file
- Added support to specially handle Keys that start with - and Values that have =- in them (delete scenario)
- Changed AppBarButton icon for Edit from Rename to NewWindow
* Create deleted-folder32.png
* Added Registry Preview to GPO
* Update expect.txt
Updating spellchecker works
* Updating Size/Move code for better results
- Moved the size/move to the MainWindow layer
- Cleaned up the JSON settings handling to avoid an access denied on first run
* Improving text handling
Changed how special characters are parse, which helps with live entry.
* Updates to parsing and other fixes
- Renamed the value PNG for parity
- Added new error image
- Added check that values have " at start and finish.
- Added support for a new "ERROR" type for Values
- Fixed support for @ versus "@" in values
- Fixed bug where Save wasn't activating in all scernarios
* Fix signing and versioning
* Update src/settings-ui/Settings.UI/ViewModels/RegistryPreviewViewModel.cs
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
* Apply suggestions from code review
Adds Launch button to the settings page.
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
* Update Resources.resw
Adding strings for new launch button
* Adding new version for GPO
Moving to 0.69.0
* More parsing bug fixes
- Changes to look for [- instead of -[ for syntax deleting keys (fix for developer's mental hiccup)
- Moved [- to top of the decision making stack, as it needs to come before [
- Added new StripEscapedCharacters function for both sides of a Value line
- Fixed crashing bug for scenario where no Keys are parsed before a Value
* Bug fixes from most recent review.
- Dictionary will now be case insensitive when searching for keys
- Added tool tips (and strings) to the images of the Keys and Values
- Updated delete handling for Keys, so that only the leaf-most node gets marked as deleted; also stops the top most roots from being marked deleted.
* Tweaking for @=-
Forces the UX to take @=- and treat it as @="" since that's what Registry Editor would do.
* Removing unused usings
* Updates app description
* Update src/gpo/assets/PowerToys.admx
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
* cleanup proj file
launch process only if module is enabled
add process to bugreport process list
* Add context menu icon
* Update src/modules/registrypreview/RegistryPreviewUI/MainWindow.Utilities.cs
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
* Use modulesRegistry.h to apply/unapply registry changes
* Tweaked window settings
Moved the loading of the settings a little later in the initialization code, which gives more time for things to initialize.
* Update registry.h
Moving the definition out of the detail namespace to the registry name space to fix a compilation issue in RegistryPreviewExt.
* Unapply on creation
If module is disabled in settings.json, on startup reg entries should be unnaplied.
TODO: read m_enabled from settings file on creation
* Removing size/move main window
Added a TODO comment that responds to the size/position settings that are being saved out in the JSON blob on close as it doesn't always work on every PC, as the MainWindow initializes at different times.
* Change to always keep Save As active
No reason for this to be disabled, honestly.
---------
Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Stefan Markovic <stefan@janeasystems.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
2023-03-27 21:21:46 +08:00
|
|
|
|
<Page Update="Views\RegistryPreviewPage.xaml">
|
|
|
|
|
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
|
|
|
|
|
</Page>
|
2022-04-20 04:00:28 +08:00
|
|
|
|
</ItemGroup>
|
2023-02-15 10:38:53 +08:00
|
|
|
|
|
2022-08-25 18:25:52 +08:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Page Update="OOBE\Views\OobePowerOCR.xaml">
|
|
|
|
|
<XamlRuntime>$(DefaultXamlRuntime)</XamlRuntime>
|
|
|
|
|
</Page>
|
|
|
|
|
</ItemGroup>
|
2022-04-20 04:00:28 +08:00
|
|
|
|
</Project>
|