A safe space to collaborate and engineer solutions from the prototyping stage all the way through polished finalized component for the Windows Community Toolkit.
Перейти к файлу
Arlo Godfrey 09d917ea8c Cleanup new test case 2024-11-13 14:14:45 -06:00
.config Update dotnet-tools.json - slngen to 11.2.6 2024-06-27 11:30:39 -07:00
.devcontainer Upgrade to C# Dev Kit 2024-02-29 19:14:41 -06:00
.github Restore Labs-specific version date formatting 2024-08-01 18:52:20 -05:00
.vscode Upgrade to C# Dev Kit 2024-02-29 19:14:41 -06:00
components Cleanup new test case 2024-11-13 14:14:45 -06:00
tooling@d71b08b2dc Update tooling to latest main. 2024-10-29 17:44:46 -05:00
.editorconfig Update .editorconfig 2023-10-03 10:09:19 -05:00
.gitignore Update all `common` folder references to `tooling` 2023-03-14 02:01:17 -07:00
.gitmodules Added tooling submodule 2023-03-22 12:09:22 -05:00
.vsconfig add vsconfig files for workload and component dependencies 2022-05-06 23:48:42 +01:00
ApplyXamlStyling.ps1 Modify ApplyXamlStyling.ps1 to better handle running locally and updating new/in-progress files while working 2022-07-17 12:48:35 -07:00
CODE_OF_CONDUCT.md Updates to Readme (#217) 2022-07-20 11:19:59 -07:00
CommunityToolkitLabs-Header.png Adding header image 2023-08-23 16:11:44 +02:00
Contributing.md Updates to Readme (#217) 2022-07-20 11:19:59 -07:00
Directory.Build.props Update Microsoft.WindowsAppSDK to 1.6.240807006-preview1, remove CsWinRT1028 suppression. 2024-08-14 11:49:29 -05:00
Directory.Build.targets Align NuGet.Build.Tasks.Pack and Microsoft.SourceLink.GitHub with main toolkit repo. Fixes an issue where `net80-windows10.0.22621.0` would appear in the nuget package. 2024-09-06 11:59:25 -05:00
GenerateAllSolution.bat Use latest 'MultiTarget's parameter name for head inclusion and generation. 2024-08-01 18:52:20 -05:00
License.md Add File Header Analyzer and License Files 2021-10-14 16:36:33 -07:00
ReadMe.md Update build requirements in readme 2024-08-20 17:54:55 -07:00
Windows.Toolkit.Common.props Initial port of code from TransitionHelper PR https://github.com/CommunityToolkit/WindowsCommunityToolkit/pull/4338 2023-03-28 14:48:17 -07:00
global.json Update SDK version to 8.0.403 2024-10-25 16:15:03 -05:00
nuget.config Add missing nuget sources 2023-05-18 17:22:47 -05:00
settings.xamlstyler Add Feature/style enforcement to CI (#60) 2022-04-04 11:44:42 -07:00

ReadMe.md

🧪 Windows Community Toolkit Labs (Preview) 🧪

Windows Community Toolkit Labs header

Welcome to the home of Windows Community Toolkit Labs. A place for all new components to be developed in 'experiments' for the Windows Community Toolkit (built on top of WinUI 2, WinUI 3, and Uno Platform)! Find out more about Toolkit Labs in our blog post here. It includes more about our motivations for having this space as well as how to setup the NuGet feed required to easily use experiments found in this repo.

This is the starting place for all new features to make it into the Windows Community Toolkit. It is a useful prototyping space as well as a space to work collaboratively on polishing a feature. This allows a final PR into the main Toolkit repo to go as smoothly as possible once a feature is ready to go.

Getting Started

Try out our Sample App live in your browser!

See the list of our current open experiments to try here!

You can find the corresponding CommunityToolkit.Labs packages in our Azure DevOps Feed, find out more about Preview Packages here.

https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json

If you find an experiment useful, please up-vote 👍 its corresponding issue and comment with any feedback. Each experiment has an issue assigned to it with the experiment label for tracking. Please file any feedback or issues about that experiment on that singular issue. For any other questions or concerns, please open a Discussion.

Otherwise, you can clone the repo, open the components directory, navigate within the folder for a particular experiment and open up it's solution file in Visual Studio. Run one of the project heads (ExperimentName.Uwp/Wasm/WinAppSDK) to see its samples.

Clone the repository

The tooling is in a submodule, so you'll need to use --recurse-submodules when cloning or pulling for the first time:

git clone --recurse-submodules https://github.com/CommunityToolkit/Labs-Windows.git

Build Requirements

  • Visual Studio 2022 (UWP & Desktop Workloads for .NET)
  • .NET 8 SDK
  • Windows 10 SDK, version 2004 (10.0.19041.0)
  • Windows 10 21H1 (Build 19043) or greater
  • Run dotnet tool restore from the project root to install SlnGen
  • Run build scripts from the Developer Command Prompt for Visual Studio or from elsewhere after adding MSBuild.exe to your PATH

Adding a new Experiment

Note: In Preview we're currently not accepting new experiments beyond our trial list to ensure our infrastructure is stabilized, if you'd like to contribute please see where you can lend a hand with Labs itself here If you have an idea for a component though, please feel free to open a discussion here.

To start a new experiment, open up a new Discussion to propose your idea with the community. Be sure to follow the template and highlight reasons why and how your idea can aid other developers.

Once there is traction and your idea is approved, an issue will be created to track your experiment and its progress.

Then you can fork the Labs repo, create a new branch, and start working on your feature (or porting over your existing prototype).

dotnet new --install .\tooling\ProjectTemplate\

cd components

dotnet new ctk-component -n MyExperimentNameHere

Read more about creating a new experiment from the template folder here.

Then open a PR, not everything needs to be done in your initial PR, but some basically functionality and a usage example should exist. The Labs space is a great place to work on something over time, get feedback from the community, and collaborate with others. However, your initial PR should compile and have enough content for folks to understand how to leverage your component.

Modifying an Experiment

First fork the repo and create a new branch specific to your modification.

To work on an experiment you can navigate to it's subdirectory and open its own solution file. This will let you work on the feature, samples, docs, or unit tests for that specific component only in isolation.

Then submit a PR back to the repo with your modifications. Whoever owns the experiment can then work with you to integrate your changes. A maintainer will merge a PR once sign-off from the experiment owner is received.

When is an Experiment done?

Not all experiments are successful, and that's ok! That's why we experiment! 👨‍🔬🔬👩‍🔬

If there is enough interest in an experiment, it can be time to move it into the main Windows Community Toolkit repo. These experiments should have all the components required implemented like a sample, documentation, and unit tests.

Open up an issue on the main Toolkit repo using the Toolkit Labs Transfer Issue Template. (TODO: Link) Use that issue to discuss where in the Toolkit the new component should be placed and what release it should be shipped in. An initial review pass of the code will happen as well. Once the transfer issue is approved, open up a PR to copy over the experiment to its new home.

Building the Sample App

First ensure you've met the Build Requirements or the build scripts will fail.

Next you can build the main Sample App solution to see all the experiments currently available in this repository by running the GenerateAllSolution.bat script in the repo root.

Then just open the CommunityToolkit.AllComponents.sln solution in Visual Studio. You can run one of the project heads such as CommunityToolkit.App.WinAppSdk to run the sample app for that platform.

If you'd like to run a head beyond UWP, Wasm, or the WinAppSDK, you'll need to run the UseTargetFrameworks.ps1 script first in the tooling/MultiTarget directory. e.g. .\UseTargetFrameworks.ps1 -targets all

If you'd like to test on Uno + Windows App SDK over Uno + UWP, run the UseUnoWinUI.ps1 script. e.g. .\UseUnoWinUI.ps1 -targets 3

If there's a specific experiment you're interested in instead, you can navigate to its directory and open up it's individual solution to see samples specific to that feature. You can also read the next section to find out how to grab a pre-built NuGet package for each feature available here.

📄 Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

🏢 .NET Foundation

This project is supported by the .NET Foundation.

🏆 Contributors

Toolkit Contributors

Made with contrib.rocks.