Update all `common` folder references to `tooling`

Add a ToolingDirectory property for simplifying naming in future
Abstract a few directories in build.yml to make simpler to change later too
This commit is contained in:
michael-hawker 2023-03-13 14:04:22 -07:00 коммит произвёл Michael Hawker MSFT (XAML Llama)
Родитель 5272a1e01f
Коммит e127f3195e
60 изменённых файлов: 135 добавлений и 130 удалений

26
.github/workflows/build.yml поставляемый
Просмотреть файл

@ -57,6 +57,7 @@ jobs:
platform: [WinUI2, WinUI3]
env:
MULTI_TARGET_DIRECTORY: tooling/MultiTarget
# faux-ternary expression to select which platforms to build for each platform vs. duplicating step below.
TARGET_PLATFORMS: ${{ matrix.platform != 'WinUI3' && 'all' || 'all-uwp' }}
TEST_PLATFORM: ${{ matrix.platform != 'WinUI3' && 'UWP' || 'WinAppSdk' }}
@ -87,15 +88,15 @@ jobs:
uses: microsoft/setup-msbuild@v1.3.1
- name: Enable ${{ env.TARGET_PLATFORMS }} TargetFrameworks
working-directory: ./common/MultiTarget/
working-directory: ./${{ env.MULTI_TARGET_DIRECTORY }}
run: powershell -version 5.1 -command "./UseTargetFrameworks.ps1 ${{ env.TARGET_PLATFORMS }}" -ErrorAction Stop
- name: Generate solution w/ ${{ env.TEST_PLATFORM }} Tests
working-directory: ./
run: powershell -version 5.1 -command "./common/GenerateAllSolution.ps1 -IncludeHeads ${{ env.TEST_PLATFORM }}${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }}" -ErrorAction Stop
run: powershell -version 5.1 -command "./tooling/GenerateAllSolution.ps1 -IncludeHeads ${{ env.TEST_PLATFORM }}${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }}" -ErrorAction Stop
- name: Enable Uno.WinUI (in WinUI3 matrix only)
working-directory: ./common/MultiTarget/
working-directory: ./${{ env.MULTI_TARGET_DIRECTORY }}
run: powershell -version 5.1 -command "./UseUnoWinUI.ps1 3" -ErrorAction Stop
if: ${{ matrix.platform == 'WinUI3' }}
@ -104,7 +105,7 @@ jobs:
# Build All Packages
- name: pack experiments
working-directory: ./common/Scripts/
working-directory: ./tooling/Scripts/
run: ./PackEachExperiment.ps1 all
# Push Packages to our DevOps Artifacts Feed
@ -127,11 +128,11 @@ jobs:
- name: Run SourceGenerators tests
id: test-generator
run: vstest.console.exe ./common/CommunityToolkit.Tooling.SampleGen.Tests/bin/Release/net6.0/CommunityToolkit.Tooling.SampleGen.Tests.dll /logger:"trx;LogFileName=SourceGenerators.trx"
run: vstest.console.exe ./tooling/CommunityToolkit.Tooling.SampleGen.Tests/bin/Release/net6.0/CommunityToolkit.Tooling.SampleGen.Tests.dll /logger:"trx;LogFileName=SourceGenerators.trx"
- name: Run experiment tests against ${{ env.TEST_PLATFORM }}
id: test-platform
run: vstest.console.exe ./common/**/CommunityToolkit.Tests.${{ env.TEST_PLATFORM }}.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=${{ env.TEST_PLATFORM }}.trx"
run: vstest.console.exe ./tooling/**/CommunityToolkit.Tests.${{ env.TEST_PLATFORM }}.build.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=${{ env.TEST_PLATFORM }}.trx"
- name: Create test reports
run: |
@ -150,7 +151,8 @@ jobs:
# TODO: We should only run this if something in the common or template folder changed...
runs-on: windows-latest
env:
PROJECT_DIRECTORY: common/ProjectTemplate
HEADS_DIRECTORY: tooling/ProjectHeads
PROJECT_DIRECTORY: tooling/ProjectTemplate
TEST_PROJECT_NAME: CiTestExp
TEST_PROJECT_DIRECTORY: components/CiTestExp
@ -176,7 +178,7 @@ jobs:
- name: Add project heads to ProjectTemplate
working-directory: ./${{ env.PROJECT_DIRECTORY }}
run: ${{ github.workspace }}/common/ProjectHeads/GenerateSingleSampleHeads.ps1 -componentPath ${{ github.workspace }}/${{ env.PROJECT_DIRECTORY }}${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }}
run: ${{ github.workspace }}/${{ env.HEADS_DIRECTORY }}/GenerateSingleSampleHeads.ps1 -componentPath ${{ github.workspace }}/${{ env.PROJECT_DIRECTORY }}${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }}
# Build and use template for creating new experiments
- name: Build ProjectTemplate
@ -198,7 +200,7 @@ jobs:
- name: Add project heads to ${{ env.TEST_PROJECT_NAME }}
working-directory: ./${{ env.TEST_PROJECT_DIRECTORY }}
run: ${{ github.workspace }}/common/ProjectHeads/GenerateSingleSampleHeads.ps1 -componentPath ${{ github.workspace }}/${{ env.TEST_PROJECT_DIRECTORY }}${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }}
run: ${{ github.workspace }}/${{ env.HEADS_DIRECTORY }}/GenerateSingleSampleHeads.ps1 -componentPath ${{ github.workspace }}/${{ env.TEST_PROJECT_DIRECTORY }}${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }}
- name: MSBuild
working-directory: ./${{ env.TEST_PROJECT_DIRECTORY }}
@ -235,6 +237,8 @@ jobs:
wasm-linux:
runs-on: ubuntu-latest
env:
HEADS_DIRECTORY: tooling/ProjectHeads
steps:
- name: Install .NET SDK v${{ env.DOTNET_VERSION }}
@ -257,7 +261,7 @@ jobs:
- name: Generate solution
shell: pwsh
working-directory: ./
run: ./common/GenerateAllSolution.ps1${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }}
run: ./tooling/GenerateAllSolution.ps1${{ env.ENABLE_DIAGNOSTICS == 'true' && ' -UseDiagnostics' || '' }}
- name: Install ninja for WASM native dependencies
run: sudo apt-get install ninja-build
@ -265,7 +269,7 @@ jobs:
# Issue with Comment Links currently, see: https://github.com/mrlacey/CommentLinks/issues/38
# See launch.json configuration file for analogous command we're emulating here to build LINK: ../../.vscode/launch.json:CommunityToolkit.App.Wasm.csproj
- name: dotnet build
working-directory: ./common/ProjectHeads/AllComponents/Wasm/
working-directory: ./${{ env.HEADS_DIRECTORY }}/AllComponents/Wasm/
run: dotnet build /r /bl /p:UnoSourceGeneratorUseGenerationHost=true /p:UnoSourceGeneratorUseGenerationController=false
# TODO: Do we want to run tests here? Can we do that on linux easily?

2
.gitignore поставляемый
Просмотреть файл

@ -357,7 +357,7 @@ MigrationBackup/
# Community Toolkit Labs generated files
CommunityToolkit.AllComponents.sln
common/MultiTarget/Generated/**
tooling/MultiTarget/Generated/**
heads/
# We use slngen to generate solutions

6
.vscode/launch.json поставляемый
Просмотреть файл

@ -14,20 +14,20 @@
"/p:UnoSourceGeneratorUseGenerationHost=true",
"/p:UnoSourceGeneratorUseGenerationController=false",
"/p:UnoRemoteControlPort=443",
"--project=${workspaceFolder}/common/ProjectHeads/AllComponents/Wasm/CommunityToolkit.App.Wasm.csproj"
"--project=${workspaceFolder}/tooling/ProjectHeads/AllComponents/Wasm/CommunityToolkit.App.Wasm.csproj"
],
"presentation": {
"group": "1",
"order": 1
},
"cwd": "${workspaceFolder}/common/ProjectHeads/AllComponents/Wasm",
"cwd": "${workspaceFolder}/tooling/ProjectHeads/AllComponents/Wasm",
"preLaunchTask": "generateAllSolution"
},
{
"type": "PowerShell",
"request": "launch",
"name": "Discover samples",
"script": "foreach ($component in Get-ChildItem -Directory -Depth 0 -Path './components/*') { ${workspaceFolder}/common/ProjectHeads/GenerateSingleSampleHeads.ps1 -ComponentPath $component } ; ${workspaceFolder}/common/GenerateVSCodeLaunchConfig.ps1; ",
"script": "foreach ($component in Get-ChildItem -Directory -Depth 0 -Path './components/*') { ${workspaceFolder}/tooling/ProjectHeads/GenerateSingleSampleHeads.ps1 -ComponentPath $component } ; ${workspaceFolder}/tooling/GenerateVSCodeLaunchConfig.ps1; ",
"presentation": {
"group": "2",
"order": 2

2
.vscode/tasks.json поставляемый
Просмотреть файл

@ -6,7 +6,7 @@
{
"label": "generateAllSolution",
"type": "shell",
"command": "pwsh ./common/GenerateAllSolution.ps1",
"command": "pwsh ./tooling/GenerateAllSolution.ps1",
"group": "build"
}
]

Просмотреть файл

@ -2,6 +2,7 @@
<PropertyGroup>
<PackageIdPrefix>CommunityToolkit.Labs</PackageIdPrefix>
<RepositoryDirectory>$(MSBuildThisFileDirectory)</RepositoryDirectory>
<ToolingDirectory>$(RepositoryDirectory)\tooling</ToolingDirectory>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>

Просмотреть файл

@ -22,7 +22,7 @@
<SlnGenSolutionItem Include="$(MSBuildThisFileDirectory).editorconfig" />
<SlnGenSolutionItem Include="$(MSBuildThisFileDirectory)settings.xamlstyler" />
<SlnGenSolutionItem Include="$(MSBuildThisFileDirectory)*.md" />
<SlnGenSolutionItem Include="$(MSBuildThisFileDirectory)common\GlobalUsings*.cs" />
<SlnGenSolutionItem Include="$(MSBuildThisFileDirectory)tooling\GlobalUsings*.cs" />
</ItemGroup>
</Project>

Просмотреть файл

@ -2,4 +2,4 @@
SET "IncludeHeads=%1"
IF "%IncludeHeads%"=="" SET "IncludeHeads=all"
powershell .\common\GenerateAllSolution.ps1 -IncludeHeads %IncludeHeads%
powershell .\tooling\GenerateAllSolution.ps1 -IncludeHeads %IncludeHeads%

Просмотреть файл

@ -1,7 +1,7 @@
# 🧪 Windows Community Toolkit Labs (Preview) 🧪
![Windows Community Toolkit Labs Social Image](common/ToolkitLabsSocial.png)
![Windows Community Toolkit Labs Social Image](tooling/ToolkitLabsSocial.png)
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](https://aka.ms/windowstoolkitdocs) (built on top of WinUI 2, [WinUI 3](https://aka.ms/winui3), and [Uno Platform](https://platform.uno))! Find out more about Toolkit Labs in our [blog post here](https://devblogs.microsoft.com/ifdef-windows/announcing-the-windows-community-toolkit-labs/). 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.
@ -39,14 +39,14 @@ Once there is traction and your idea is approved, an issue will be created to tr
Then you can fork the Labs repo, create a new branch, and start working on your feature (or porting over your existing prototype).
```ascii
dotnet new --install .\common\ProjectTemplate\
dotnet new --install .\tooling\ProjectTemplate\
cd components
dotnet new labexp -n MyExperimentNameHere
```
[Read more about creating a new experiment from the template folder here.](https://github.com/CommunityToolkit/Labs-Windows/tree/main/common/ProjectTemplate)
[Read more about creating a new experiment from the template folder here.](https://github.com/CommunityToolkit/Labs-Windows/tree/main/tooling/ProjectTemplate)
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.
@ -70,7 +70,7 @@ Open up an issue on the main Toolkit repo using the `Toolkit Labs Transfer` Issu
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 `common/Scripts` directory. e.g. `.\UseTargetFrameworks.ps1 -targets all`
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`

Просмотреть файл

@ -31,6 +31,6 @@
</PropertyGroup>
<ItemGroup>
<Compile Include="$(RepositoryDirectory)common\GlobalUsings.cs" />
<Compile Include="$(RepositoryDirectory)tooling\GlobalUsings.cs" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -4,5 +4,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
</Project>

Просмотреть файл

@ -9,5 +9,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
</Project>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -4,5 +4,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
</Project>

Просмотреть файл

@ -9,5 +9,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
</Project>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -12,5 +12,5 @@
</ItemGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
</Project>

Просмотреть файл

@ -13,5 +13,5 @@
</ItemGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
</Project>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -10,5 +10,5 @@
</ItemGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
</Project>

Просмотреть файл

@ -9,5 +9,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
</Project>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -4,5 +4,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
</Project>

Просмотреть файл

@ -9,5 +9,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
</Project>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -5,5 +5,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
</Project>

Просмотреть файл

@ -16,5 +16,5 @@
</ItemGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
</Project>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -4,7 +4,7 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
<ItemGroup>
<None Remove="Assets\Owl.jpg" />
</ItemGroup>

Просмотреть файл

@ -9,7 +9,7 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
<ItemGroup>
<UpToDateCheckInput Remove="Shimmer\Shimmer.xaml" />
</ItemGroup>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -4,5 +4,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
</Project>

Просмотреть файл

@ -9,5 +9,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
</Project>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -5,5 +5,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
</Project>

Просмотреть файл

@ -9,5 +9,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
</Project>

Просмотреть файл

@ -148,7 +148,7 @@ public partial class ToolkitSampleMetadataGenerator
}
// Get the filepath we need to be able to load the markdown file in sample app.
var filepath = file.Path.Split(new string[] { @"\components\", "/components/", @"\common\", "/common/" }, StringSplitOptions.RemoveEmptyEntries).LastOrDefault();
var filepath = file.Path.Split(new string[] { @"\components\", "/components/", @"\tooling\", "/tooling/" }, StringSplitOptions.RemoveEmptyEntries).LastOrDefault();
// Look for sample id tags
var matches = MarkdownRegexSampleTag.Matches(content);

Просмотреть файл

@ -29,7 +29,7 @@ Param (
)
# Generate required props for "All" solution.
& ./common/MultiTarget/GenerateAllProjectReferences.ps1
& ./tooling/MultiTarget/GenerateAllProjectReferences.ps1
# Set up constant values
$generatedSolutionFilePath = 'CommunityToolkit.AllComponents.sln'
@ -47,20 +47,20 @@ if (Test-Path -Path $generatedSolutionFilePath)
$projects = [System.Collections.ArrayList]::new()
# Common/Dependencies for shared infrastructure
[void]$projects.Add(".\common\CommunityToolkit*\*.*proj")
[void]$projects.Add(".\tooling\CommunityToolkit*\*.*proj")
# App Head and Test Head
if ($IncludeHeads -ne 'winappsdk')
{
[void]$projects.Add(".\common\ProjectHeads\AllComponents\**\*.Uwp.csproj")
[void]$projects.Add(".\tooling\ProjectHeads\AllComponents\**\*.Uwp.csproj")
}
if ($IncludeHeads -ne 'uwp')
{
[void]$projects.Add(".\common\ProjectHeads\AllComponents\**\*.WinAppSdk.csproj")
[void]$projects.Add(".\tooling\ProjectHeads\AllComponents\**\*.WinAppSdk.csproj")
}
[void]$projects.Add(".\common\ProjectHeads\AllComponents\**\*.Wasm.csproj")
[void]$projects.Add(".\tooling\ProjectHeads\AllComponents\**\*.Wasm.csproj")
# Individual projects
[void]$projects.Add(".\components\**\src\*.csproj")

Просмотреть файл

@ -49,7 +49,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="$(RepositoryDirectory)common\GlobalUsings_WinUI.cs" />
<Compile Include="$(ToolingDirectory)\GlobalUsings_WinUI.cs" />
</ItemGroup>
<!-- Automatically include XAML pages within multi-targetted projects (source and samples) -->

Просмотреть файл

@ -1,10 +1,10 @@
<Project>
<!-- Needed Unit Testing helper base classes -->
<Import Project="$(RepositoryDirectory)common\CommunityToolkit.Tests.Shared\CommunityToolkit.Tests.Shared.projitems" Label="Unit Testing Helpers" />
<Import Project="$(ToolingDirectory)\CommunityToolkit.Tests.Shared\CommunityToolkit.Tests.Shared.projitems" Label="Unit Testing Helpers" />
<!-- Visual Studio likes to delete the following line - but it's needed to find the tests -->
<Import Project="$(RepositoryDirectory)\components\**\*.Tests.projitems" Label="Shared" />
<!-- Include all base code to be tested -->
<Import Project="$(RepositoryDirectory)common\MultiTarget\Generated\*.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\Generated\*.props" />
</Project>

Просмотреть файл

@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetPathOfFileAbove(directory.build.props))" Condition="Exists('$([MSBuild]::GetPathOfFileAbove(directory.build.props))')" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>false</IsUno>
@ -21,9 +21,9 @@
<IsGtkHead>false</IsGtkHead>
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\Tests.Head.Uwp.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\AllComponents\Tests.Head.AllComponents.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\Tests.Head.Uwp.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\AllComponents\Tests.Head.AllComponents.props" />
<PropertyGroup>
<ProjectGuid>{FD78002E-C4E6-4BF8-9EC3-C06250DFEF34}</ProjectGuid>

Просмотреть файл

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>false</IsUno>
@ -19,9 +19,9 @@
<IsGtkHead>false</IsGtkHead>
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\Tests.Head.WinAppSdk.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\AllComponents\Tests.Head.AllComponents.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\Tests.Head.WinAppSdk.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\AllComponents\Tests.Head.AllComponents.props" />
<PropertyGroup>
<RootNamespace>CommunityToolkit.Tests</RootNamespace>

Просмотреть файл

@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetPathOfFileAbove(directory.build.props))" Condition="Exists('$([MSBuild]::GetPathOfFileAbove(directory.build.props))')" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>false</IsUno>
@ -21,9 +21,9 @@
<IsGtkHead>false</IsGtkHead>
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\App.Head.Uwp.props" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\Generated\*.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\App.Head.Uwp.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\Generated\*.props" />
<PropertyGroup>
<RootNamespace>CommunityToolkit.App.Uwp</RootNamespace>

Просмотреть файл

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web" TreatAsLocalProperty="TargetFramework">
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>true</IsUno>
@ -19,9 +19,9 @@
<IsGtkHead>false</IsGtkHead>
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\Generated\*.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\App.Head.Wasm.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\Generated\*.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\App.Head.Wasm.props" />
<ItemGroup>
<EmbeddedResource Include="WasmScripts\AppManifest.js" />

Просмотреть файл

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>false</IsUno>
@ -19,9 +19,9 @@
<IsGtkHead>false</IsGtkHead>
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\Generated\*.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\App.Head.WinAppSdk.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\Generated\*.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\App.Head.WinAppSdk.props" />
<PropertyGroup>
<RootNamepace>CommunityToolkit.App.WinAppSdk</RootNamepace>

Просмотреть файл

@ -35,6 +35,6 @@
</ItemGroup>
<ItemGroup>
<LinkerDescriptor Include="$(RepositoryDirectory)\common\CommunityToolkit.App.Shared\LinkerConfig.xml" />
<LinkerDescriptor Include="$(ToolingDirectory)\CommunityToolkit.App.Shared\LinkerConfig.xml" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,7 +1,7 @@
<!-- Common props for any deployable app project head. -->
<Project>
<!-- Shared project -->
<Import Project="$(RepositoryDirectory)\common\CommunityToolkit.App.Shared\CommunityToolkit.App.Shared.projitems" Label="Shared" />
<Import Project="$(ToolingDirectory)\CommunityToolkit.App.Shared\CommunityToolkit.App.Shared.projitems" Label="Shared" />
<!-- Shared project dependencies -->
<ItemGroup>
@ -15,11 +15,11 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(RepositoryDirectory)common\CommunityToolkit.Tooling.SampleGen\CommunityToolkit.Tooling.SampleGen.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
<ProjectReference Include="$(ToolingDirectory)\CommunityToolkit.Tooling.SampleGen\CommunityToolkit.Tooling.SampleGen.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(RepositoryDirectory)common\GlobalUsings_WinUI.cs" />
<Compile Include="$(ToolingDirectory)\GlobalUsings_WinUI.cs" />
</ItemGroup>
<PropertyGroup>

Просмотреть файл

@ -85,11 +85,11 @@ $projects = [System.Collections.ArrayList]::new()
[void]$projects.Add(".\**.*proj")
# Include common dependencies required for solution to build
[void]$projects.Add("..\..\common\CommunityToolkit.App.Shared\**\*.*proj")
[void]$projects.Add("..\..\common\CommunityToolkit.Tests.Shared\**\*.*proj")
[void]$projects.Add("..\..\common\CommunityToolkit.Tooling.SampleGen\*.csproj")
[void]$projects.Add("..\..\common\CommunityToolkit.Tooling.TestGen\*.csproj")
[void]$projects.Add("..\..\common\CommunityToolkit.Tooling.XamlNamedPropertyRelay\*.csproj")
[void]$projects.Add("..\..\tooling\CommunityToolkit.App.Shared\**\*.*proj")
[void]$projects.Add("..\..\tooling\CommunityToolkit.Tests.Shared\**\*.*proj")
[void]$projects.Add("..\..\tooling\CommunityToolkit.Tooling.SampleGen\*.csproj")
[void]$projects.Add("..\..\tooling\CommunityToolkit.Tooling.TestGen\*.csproj")
[void]$projects.Add("..\..\tooling\CommunityToolkit.Tooling.XamlNamedPropertyRelay\*.csproj")
if ($UseDiagnostics.IsPresent)
{

Просмотреть файл

@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetPathOfFileAbove(directory.build.props))" Condition="Exists('$([MSBuild]::GetPathOfFileAbove(directory.build.props))')" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>false</IsUno>
@ -21,8 +21,8 @@
<IsGtkHead>false</IsGtkHead>
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\Tests.Head.Uwp.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\Tests.Head.Uwp.props" />
<PropertyGroup>
<ProjectGuid>{7134BD2E-0A74-4345-868A-E425FC452A89}</ProjectGuid>
@ -39,7 +39,7 @@
</ItemGroup>
<!-- Needed Unit Testing helper base classes -->
<Import Project="$(RepositoryDirectory)common\CommunityToolkit.Tests.Shared\CommunityToolkit.Tests.Shared.projitems" Label="Unit Testing Helpers" />
<Import Project="$(ToolingDirectory)\CommunityToolkit.Tests.Shared\CommunityToolkit.Tests.Shared.projitems" Label="Unit Testing Helpers" />
<!-- Include the unit test files themselves -->
<Import Project="..\..\tests\ProjectTemplate.Tests.projitems" Label="Shared" />

Просмотреть файл

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>false</IsUno>
@ -20,8 +20,8 @@
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\Tests.Head.WinAppSdk.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\Tests.Head.WinAppSdk.props" />
<PropertyGroup>
<RootNamespace>ProjectTemplateExperiment.Tests</RootNamespace>
@ -36,7 +36,7 @@
</ItemGroup>
<!-- Needed Unit Testing helper base classes -->
<Import Project="$(RepositoryDirectory)common\CommunityToolkit.Tests.Shared\CommunityToolkit.Tests.Shared.projitems" Label="Unit Testing Helpers" />
<Import Project="$(ToolingDirectory)\CommunityToolkit.Tests.Shared\CommunityToolkit.Tests.Shared.projitems" Label="Unit Testing Helpers" />
<!-- Include the unit test files themselves -->
<Import Project="..\..\tests\ProjectTemplate.Tests.projitems" Label="Shared" />

Просмотреть файл

@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetPathOfFileAbove(directory.build.props))" Condition="Exists('$([MSBuild]::GetPathOfFileAbove(directory.build.props))')" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>false</IsUno>
@ -21,8 +21,8 @@
<IsGtkHead>false</IsGtkHead>
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\App.Head.Uwp.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\App.Head.Uwp.props" />
<PropertyGroup>
<RootNamespace>ProjectTemplateExperiment.Samples</RootNamespace>

Просмотреть файл

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web" TreatAsLocalProperty="TargetFramework">
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>true</IsUno>
@ -19,8 +19,8 @@
<IsGtkHead>false</IsGtkHead>
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\App.Head.Wasm.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\App.Head.Wasm.props" />
<ItemGroup>
<EmbeddedResource Include="WasmScripts\AppManifest.js" />

Просмотреть файл

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<PropertyGroup>
<IsDeployableHead>true</IsDeployableHead>
<IsUno>false</IsUno>
@ -20,8 +20,8 @@
<IsGtkLib>false</IsGtkLib>
</PropertyGroup>
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\ProjectHeads\App.Head.WinAppSdk.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\ProjectHeads\App.Head.WinAppSdk.props" />
<ItemGroup>
<ProjectReference Include="..\..\src\*.csproj" />

Просмотреть файл

@ -15,23 +15,23 @@
<Version>2.2.10</Version>
</PackageReference>
<ProjectReference Include="$(RepositoryDirectory)common\CommunityToolkit.Tooling.TestGen\CommunityToolkit.Tooling.TestGen.csproj"
<ProjectReference Include="$(ToolingDirectory)\CommunityToolkit.Tooling.TestGen\CommunityToolkit.Tooling.TestGen.csproj"
OutputItemType="Analyzer" ReferenceOutputAssembly="True" />
</ItemGroup>
<!-- Global Usings -->
<ItemGroup>
<Compile Include="$(RepositoryDirectory)common\GlobalUsings_WinUI.cs" />
<Compile Include="$(RepositoryDirectory)common\GlobalUsings_Tests.cs" />
<Compile Include="$(ToolingDirectory)\GlobalUsings_WinUI.cs" />
<Compile Include="$(ToolingDirectory)\GlobalUsings_Tests.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="$(RepositoryDirectory)common\CommunityToolkit.App.Shared\Assets\LockScreenLogo.png" Link="Assets\LockScreenLogo.png" />
<Content Include="$(RepositoryDirectory)common\CommunityToolkit.App.Shared\Assets\SplashScreen.png" Link="Assets\SplashScreen.png" />
<Content Include="$(RepositoryDirectory)common\CommunityToolkit.App.Shared\Assets\Square150x150Logo.png" Link="Assets\Square150x150Logo.png" />
<Content Include="$(RepositoryDirectory)common\CommunityToolkit.App.Shared\Assets\Square44x44Logo.png" Link="Assets\Square44x44Logo.png" />
<Content Include="$(RepositoryDirectory)common\CommunityToolkit.App.Shared\Assets\Square44x44Logo.targetsize-24_altform-unplated.png" Link="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="$(RepositoryDirectory)common\CommunityToolkit.App.Shared\Assets\StoreLogo.png" Link="Assets\StoreLogo.png" />
<Content Include="$(RepositoryDirectory)common\CommunityToolkit.App.Shared\Assets\Wide310x150Logo.png" Link="Assets\Wide310x150Logo.png" />
<Content Include="$(ToolingDirectory)\CommunityToolkit.App.Shared\Assets\LockScreenLogo.png" Link="Assets\LockScreenLogo.png" />
<Content Include="$(ToolingDirectory)\CommunityToolkit.App.Shared\Assets\SplashScreen.png" Link="Assets\SplashScreen.png" />
<Content Include="$(ToolingDirectory)\CommunityToolkit.App.Shared\Assets\Square150x150Logo.png" Link="Assets\Square150x150Logo.png" />
<Content Include="$(ToolingDirectory)\CommunityToolkit.App.Shared\Assets\Square44x44Logo.png" Link="Assets\Square44x44Logo.png" />
<Content Include="$(ToolingDirectory)\CommunityToolkit.App.Shared\Assets\Square44x44Logo.targetsize-24_altform-unplated.png" Link="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="$(ToolingDirectory)\CommunityToolkit.App.Shared\Assets\StoreLogo.png" Link="Assets\StoreLogo.png" />
<Content Include="$(ToolingDirectory)\CommunityToolkit.App.Shared\Assets\Wide310x150Logo.png" Link="Assets\Wide310x150Logo.png" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,3 +1,3 @@
@ECHO OFF
powershell ..\..\common\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*
powershell ..\..\tooling\ProjectHeads\GenerateSingleSampleHeads.ps1 -componentPath %CD% %*

Просмотреть файл

@ -7,7 +7,7 @@ This directory includes the template for creating new labs experiments.
To use the template to create a new experiment, open a command prompt in the **root directory** and run the following commands:
```ascii
dotnet new --install .\common\ProjectTemplate\
dotnet new --install .\tooling\ProjectTemplate\
cd components

Просмотреть файл

@ -4,5 +4,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's sample project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SampleProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SampleProject.props" />
</Project>

Просмотреть файл

@ -9,5 +9,5 @@
</PropertyGroup>
<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(RepositoryDirectory)common\ToolkitComponent.SourceProject.props" />
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />
</Project>

Просмотреть файл

@ -4,10 +4,10 @@
</Target>
<!-- Set up the MultiTarget system -->
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\Uno.props" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\MultiTarget.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\Uno.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\MultiTarget.props" />
<!-- Include cs and xaml files in compiled output for reference in sample app -->
<ItemGroup>
@ -19,12 +19,12 @@
<!-- Source generator props -->
<ItemGroup>
<ProjectReference Include="$(RepositoryDirectory)\common\CommunityToolkit.Tooling.XamlNamedPropertyRelay\CommunityToolkit.Tooling.XamlNamedPropertyRelay.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="True" />
<ProjectReference Include="$(RepositoryDirectory)\common\CommunityToolkit.Tooling.SampleGen\CommunityToolkit.Tooling.SampleGen.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="True" />
<ProjectReference Include="$(ToolingDirectory)\CommunityToolkit.Tooling.XamlNamedPropertyRelay\CommunityToolkit.Tooling.XamlNamedPropertyRelay.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="True" />
<ProjectReference Include="$(ToolingDirectory)\CommunityToolkit.Tooling.SampleGen\CommunityToolkit.Tooling.SampleGen.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="True" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(RepositoryDirectory)common\GlobalUsings_Samples.cs" />
<Compile Include="$(ToolingDirectory)\GlobalUsings_Samples.cs" />
<!-- Needed for Source Generators to find Markdown files -->
<AdditionalFiles Include="**\*.md" Exclude="bin\**\*.md;obj\**\*.md" />

Просмотреть файл

@ -4,10 +4,10 @@
</Target>
<!-- Set up the MultiTarget system -->
<Import Project="$(RepositoryDirectory)common\MultiTarget\TargetFrameworks.props" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\Uno.props" />
<Import Project="$(RepositoryDirectory)common\MultiTarget\MultiTarget.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\TargetFrameworks.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\ProjectIdentifiers.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\Uno.props" />
<Import Project="$(ToolingDirectory)\MultiTarget\MultiTarget.props" />
<PropertyGroup>
<PackageId Condition="'$(PackageId)' == ''">$(PackageIdPrefix).$(PackageIdVariant).$(ToolkitComponentName)</PackageId>