PowerToys/tools/project_template/ModuleTemplate
Stefan Markovic 133aa85f2b
[General]Add an option for telemetry opt-in and visualization(#34078)
* Data diagnostics opt-in

* [c++] Drop DROP_PII flag

* Bump telemtry package to 2.0.2

* Drop DropPii from custom actions

* Cleanup

* Do not start manually C# EtwTrace. FZ engine exit event.

* ImageResizer, PowerRename, FileLocksmith prev handlers

* Revert C# handlers exe logging

* Revert "Revert C# handlers exe logging"

This reverts commit 4c75a3953b.

* Do not recreate EtwTrace

* consume package

* xaml formatting

* Fix deps.json audit

* Update telem package paths

* Address PR comments

* Fix AdvancedPaste close on PT close

* Override etl file name for explorer loaded dlls
Start/stop tracer when needed for explorer loaded dlls to prevent explorer overload

* Fix setting desc

* Fix missing events

* Add infobar to restart when enable data viewing

* Flush on timer every 30s

* [Settings] Update View Data diagnostic description text
[New+] Add tracer

* Show Restart info bar for both enable/disable data viewer

* Fix newplus

* Fix stuck on restart and terminate AdvPaste exe on destroy()

* [Installer] Add tracer

* Address PR comment

* Add missing tracers

* Exclude etw dir from BugReport

* Fix bad merge

* [Hosts] Proper exit on initial dialog

* [OOBE] Make Data diagnostic setting visible without scroll

* [OOBE] Add hiperlynk to open general settings

* Disable data view on disabling data diagnostics

* Don't disable View data button

* Fix disabling data viewing

* Add missing dot

* Revert formatting
2024-10-24 21:04:32 +01:00
..
$projectname$.rc [meta]Change copyright date to 2022 (#16279) 2022-02-17 18:41:30 +00:00
dllmain.cpp Catch std::exception by reference (#20385) 2022-09-11 18:50:13 +02:00
ModuleTemplate.vcxproj [Build]Unify PCH usage (#31055) 2024-03-22 10:29:14 +00:00
ModuleTemplateCompileTest.vcxproj [Build]Unify PCH usage (#31055) 2024-03-22 10:29:14 +00:00
ModuleTemplateCompileTest.vcxproj.filters Move from sdk-provided cppwinrt-1.x to cppwinrt-2.x nuget package (#2246) 2020-04-29 22:02:18 +02:00
packages.config [Deps]Upgrade CppWinRT to 2.0.240111.5 (#31396) 2024-02-13 13:55:14 +00:00
pch.cpp build: Treat warnings as errors in the remaining projects (#8689) 2020-12-21 18:51:48 +03:00
pch.h [General]Add an option for telemetry opt-in and visualization(#34078) 2024-10-24 21:04:32 +01:00
README.md [build]Update to .net 6 framework and VS 2022 (#15741) 2022-02-07 14:08:30 +00:00
resource.h FancyZones and Shortcut Guide initial commit 2019-09-05 18:12:40 +02:00
trace.cpp [General]Add an option for telemetry opt-in and visualization(#34078) 2024-10-24 21:04:32 +01:00
trace.h [General]Add an option for telemetry opt-in and visualization(#34078) 2024-10-24 21:04:32 +01:00

PowerToy ModuleTemplate

Introduction

This project is used to generate the Visual Studio PowerToys Module Template

Instruction

In Visual Studio from the menu Project->Export Template... generate the template. Set the name PowerToys Module, add a description A project for creating a PowerToys module and an icon. Open the resulting .zip file in %USERNAME%\Documents\Visual Studio 2022\Templates\ProjectTemplates and edit MyTemplate.vstemplate to make the necessary changes, the resulting template should look like this:

<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
  <TemplateData>
    <Name>PowerToys Module</Name>
    <Description>A project for creating a PowerToys module</Description>
    <ProjectType>VC</ProjectType>
    <ProjectSubType>
    </ProjectSubType>
	  <LanguageTag>C++</LanguageTag>
	  <PlatformTag>windows</PlatformTag>
	  <ProjectTypeTag>extension</ProjectTypeTag>
    <SortOrder>1000</SortOrder>
    <CreateNewFolder>true</CreateNewFolder>
    <DefaultName>PowerToy</DefaultName>
    <ProvideDefaultName>true</ProvideDefaultName>
    <LocationField>Enabled</LocationField>
    <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
    <Icon>__TemplateIcon.ico</Icon>
  </TemplateData>
  <TemplateContent>
    <Project TargetFileName="$projectname$.vcxproj" File="ModuleTemplate.vcxproj" ReplaceParameters="true">
      <ProjectItem ReplaceParameters="false" TargetFileName="$projectname$.vcxproj.filters">ModuleTemplate.vcxproj.filters</ProjectItem>
      <ProjectItem ReplaceParameters="true" TargetFileName="dllmain.cpp">dllmain.cpp</ProjectItem>
      <ProjectItem ReplaceParameters="false" TargetFileName="pch.cpp">pch.cpp</ProjectItem>
      <ProjectItem ReplaceParameters="false" TargetFileName="trace.cpp">trace.cpp</ProjectItem>
      <ProjectItem ReplaceParameters="false" TargetFileName="pch.h">pch.h</ProjectItem>
      <ProjectItem ReplaceParameters="false" TargetFileName="resource.h">resource.h</ProjectItem>
      <ProjectItem ReplaceParameters="false" TargetFileName="trace.h">trace.h</ProjectItem>
      <ProjectItem ReplaceParameters="true" TargetFileName="$projectname$.rc">ModuleTemplate.rc</ProjectItem>
    </Project>
  </TemplateContent>
</VSTemplate>