Skip to content
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

Remove .NET 6 target from all projects #1875

Open
wants to merge 11 commits into
base: staging/2.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ Below is our guidance for how to build the repo, report issues, propose new feat

C#/WinRT currently requires the following packages, or newer, to build:

- [Visual Studio 17.0](https://visualstudio.microsoft.com/downloads/)
- [.NET 6.0 SDK](https://dotnet.microsoft.com/download/dotnet/6.0)
- [.NET Core 3.1 SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1)
- [Visual Studio 17.0](https://visualstudio.microsoft.com/downloads/)
- [.NET 8.0 SDK](https://dotnet.microsoft.com/download/dotnet/8.0)
- [nuget.exe 5.8.0-preview.3](https://www.nuget.org/downloads)
- Microsoft.WinUI 3.0.0-preview4.210210.4
- Microsoft.WindowsAppSDK 1.1.5
Expand Down
13 changes: 0 additions & 13 deletions build/AzurePipelineTemplates/CsWinRT-Benchmarks-Steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,6 @@ steps:
env:
PROCESSOR_ARCHITECTURE: x86

# Install .NET 6 SDK
- task: PowerShell@2
displayName: Install .NET 6 SDK
inputs:
targetType: inline
failOnStderr: true
script: |
Write-Host ##vso[task.setvariable variable=PATH;]${env:LocalAppData}\Microsoft\dotnet;${env:PATH};

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;

&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Version "$($env:NET6_SDK_VERSION)" -Architecture "x64" -AzureFeed "$($env:NET5_SDK_FEED)"

# Install .NET 8 SDK
- task: PowerShell@2
displayName: Install .NET 8 SDK
Expand Down
38 changes: 7 additions & 31 deletions build/AzurePipelineTemplates/CsWinRT-Build-Steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,6 @@ steps:
env:
PROCESSOR_ARCHITECTURE: x86

# Install .NET 6 SDK
- task: PowerShell@2
displayName: Install .NET 6 SDK
inputs:
targetType: inline
failOnStderr: true
script: |
Write-Host ##vso[task.setvariable variable=PATH;]${env:LocalAppData}\Microsoft\dotnet;${env:PATH};

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;

&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://dot.net/v1/dotnet-install.ps1'))) -Version "$($env:NET6_SDK_VERSION)" -Architecture "x64" -AzureFeed "$($env:NET5_SDK_FEED)"

# Install .NET 8 SDK
- task: PowerShell@2
displayName: Install .NET 8 SDK
Expand Down Expand Up @@ -261,7 +248,7 @@ steps:
displayName: Stage Unit Test
condition: and(succeeded(), or(eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildPlatform'], 'x64')))
inputs:
SourceFolder: $(Build.SourcesDirectory)\src\Tests\UnitTest\bin\$(BuildPlatform)\$(BuildConfiguration)\net6.0
SourceFolder: $(Build.SourcesDirectory)\src\Tests\UnitTest\bin\$(BuildPlatform)\$(BuildConfiguration)\net8.0
Contents: |
unittest.dll
unittest.pdb
Expand Down Expand Up @@ -289,17 +276,6 @@ steps:
WinRT.SourceGenerator.pdb
TargetFolder: $(Build.ArtifactStagingDirectory)\release_netstandard2.0\

# Stage Net6.0
- task: CopyFiles@2
displayName: Stage Net6.0
condition: and(succeeded(), eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildConfiguration'], 'release'))
inputs:
SourceFolder: $(Build.SourcesDirectory)\src\WinRT.Runtime\bin\$(BuildConfiguration)\net6.0
Contents: |
WinRT.Runtime.dll
WinRT.Runtime.pdb
TargetFolder: $(Build.ArtifactStagingDirectory)\release_net6.0

# Stage Net8.0
- task: CopyFiles@2
displayName: Stage Net8.0
Expand All @@ -317,19 +293,19 @@ steps:
condition: and(succeeded(), eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildConfiguration'], 'release'))
continueOnError: True
inputs:
SourceFolder: $(Build.SourcesDirectory)\src\Authoring\WinRT.Host.Shim\bin\$(BuildConfiguration)\net6.0
SourceFolder: $(Build.SourcesDirectory)\src\Authoring\WinRT.Host.Shim\bin\$(BuildConfiguration)\net8.0
Contents: |
WinRT.Host.Shim.dll
WinRT.Host.Shim.pdb
TargetFolder: $(Build.ArtifactStagingDirectory)\release_net6.0
TargetFolder: $(Build.ArtifactStagingDirectory)\release_net8.0

# Stage IID Optimizer
- task: CopyFiles@2
displayName: Stage IID Optimizer
condition: and(succeeded(), eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildConfiguration'], 'release'))
continueOnError: True
inputs:
SourceFolder: $(Build.SourcesDirectory)\src\Perf\IIDOptimizer\bin\$(BuildConfiguration)\net6.0
SourceFolder: $(Build.SourcesDirectory)\src\Perf\IIDOptimizer\bin\$(BuildConfiguration)\net8.0
Contents: |
IIDOptimizer.exe
IIDOptimizer.dll
Expand All @@ -353,7 +329,7 @@ steps:
tr/System.CommandLine.resources.dll
zh-Hans/System.CommandLine.resources.dll
zh-Hant/System.CommandLine.resources.dll
TargetFolder: $(Build.ArtifactStagingDirectory)\release_net6.0\IIDOptimizer
TargetFolder: $(Build.ArtifactStagingDirectory)\release_net8.0\IIDOptimizer

# Stage WinRT.Runtime ResX
- task: CopyFiles@2
Expand All @@ -380,7 +356,7 @@ steps:
displayName: Stage CsWinMD
condition: and(succeeded(), eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildConfiguration'], 'release'))
inputs:
SourceFolder: $(Build.SourcesDirectory)\src\Authoring\cswinmd\bin\$(BuildConfiguration)\net6.0
SourceFolder: $(Build.SourcesDirectory)\src\Authoring\cswinmd\bin\$(BuildConfiguration)\net8.0
Contents: |
CsWinMD.dll
CsWinMD.exe
Expand All @@ -389,4 +365,4 @@ steps:
CsWinMD.runtimeconfig.json
Microsoft.CodeAnalysis.CSharp.dll
Microsoft.CodeAnalysis.dll
TargetFolder: $(Build.ArtifactStagingDirectory)\release_net6.0\CsWinMD
TargetFolder: $(Build.ArtifactStagingDirectory)\release_net8.0\CsWinMD
7 changes: 1 addition & 6 deletions build/AzurePipelineTemplates/CsWinRT-BuildAndTest-Stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ stages:
displayName: Run Object Lifetime Tests
condition: and(succeeded(), or(eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildPlatform'], 'x64')))
inputs:
testAssemblyVer2: Tests\ObjectLifetimeTests\bin\$(BuildPlatform)\$(BuildConfiguration)\net6.0-windows10.0.19041.0\win10-$(BuildPlatform)\ObjectLifetimeTests.Lifted.build.appxrecipe
testAssemblyVer2: Tests\ObjectLifetimeTests\bin\$(BuildPlatform)\$(BuildConfiguration)\net8.0-windows10.0.19041.0\win-$(BuildPlatform)\ObjectLifetimeTests.Lifted.build.appxrecipe
searchFolder: $(Build.SourcesDirectory)\src

# Run Host Tests
Expand Down Expand Up @@ -173,11 +173,6 @@ stages:
condition: and(succeeded(), eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildConfiguration'], 'release'))
targetPath: $(Build.ArtifactStagingDirectory)\resx
artifactName: ResX
- output: pipelineArtifact
displayName: 'Publish Net6.0'
condition: and(succeeded(), eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildConfiguration'], 'release'))
targetPath: $(Build.ArtifactStagingDirectory)\release_net6.0
artifactName: net6.0
- output: pipelineArtifact
displayName: 'Publish Net8.0'
condition: and(succeeded(), eq(variables['BuildPlatform'], 'x86'), eq(variables['BuildConfiguration'], 'release'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ stages:
- template: ..\..\eng\common\AzurePipelineTemplates\Maestro-PublishBuildToMaestro-Steps.yml@self
parameters:
AssetNames: Microsoft.Windows.CsWinRT;CsWinRT.Dependency.DotNetCoreSdk;CsWinRT.Dependency.DotNetCoreRuntime;CsWinRT.Dependency.WindowsSdkVersionSuffix
AssetVersions: $(NugetVersion);$(Net6.Sdk.Version);$(_DotNetRuntimeVersion);$(_WindowsSdkVersionSuffix)
AssetVersions: $(NugetVersion);$(Net8.Sdk.Version);$(_DotNetRuntimeVersion);$(_WindowsSdkVersionSuffix)
31 changes: 11 additions & 20 deletions build/AzurePipelineTemplates/CsWinRT-PublishToNuget-Stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ stages:
itemPattern: ''
targetPath: $(Build.SourcesDirectory)\netstandard2.0

# Download Net6.0
- task: DownloadPipelineArtifact@2
displayName: 'Download Net6.0'
inputs:
artifactName: net6.0
itemPattern: ''
targetPath: $(Build.SourcesDirectory)\net6.0

# Download Net8.0
- task: DownloadPipelineArtifact@2
displayName: 'Download Net8.0'
Expand Down Expand Up @@ -99,19 +91,18 @@ stages:
netstandard2.0\WinRT.Runtime.dll
netstandard2.0\WinRT.Host.Shim.dll
netstandard2.0\WinRT.SourceGenerator.dll
net6.0\WinRT.Host.Shim.dll
net6.0\WinRT.Runtime.dll
net8.0\WinRT.Host.Shim.dll
net8.0\WinRT.Runtime.dll
release_x64\WinRT.Host.dll
release_x64\WinRT.Host.dll.mui
release_x86\WinRT.Host.dll
release_x86\WinRT.Host.dll.mui
release_arm64\WinRT.Host.dll
release_arm64\WinRT.Host.dll.mui
net6.0\IIDOptimizer\IIDOptimizer.exe
net6.0\IIDOptimizer\IIDOptimizer.dll
net6.0\CsWinMD\CsWinMD.exe
net6.0\CsWinMD\CsWinMD.dll
net8.0\IIDOptimizer\IIDOptimizer.exe
net8.0\IIDOptimizer\IIDOptimizer.dll
net8.0\CsWinMD\CsWinMD.exe
net8.0\CsWinMD\CsWinMD.dll
UseMinimatch: true
signConfigType: inlineSignParams
inlineOperation: |
Expand Down Expand Up @@ -159,10 +150,10 @@ stages:
AuthSignCertName: $(SigningSignCertName)
FolderPath: $(Build.SourcesDirectory)
Pattern: |
net6.0\IIDOptimizer\Mono.Cecil.dll
net6.0\IIDOptimizer\Mono.Cecil.Mdb.dll
net6.0\IIDOptimizer\Mono.Cecil.Pdb.dll
net6.0\IIDOptimizer\Mono.Cecil.Rocks.dll
net8.0\IIDOptimizer\Mono.Cecil.dll
net8.0\IIDOptimizer\Mono.Cecil.Mdb.dll
net8.0\IIDOptimizer\Mono.Cecil.Pdb.dll
net8.0\IIDOptimizer\Mono.Cecil.Rocks.dll
UseMinimatch: true
signConfigType: inlineSignParams
inlineOperation: |
Expand Down Expand Up @@ -230,7 +221,7 @@ stages:
command: pack
searchPatternPack: nuget/Microsoft.Windows.CsWinRT.nuspec
configurationToPack: Release
buildProperties: cswinrt_nuget_version=$(NugetVersion);cswinrt_exe=$(Build.SourcesDirectory)\cswinrt.exe;interop_winmd=$(Build.SourcesDirectory)\WinRT.Interop.winmd;netstandard2_runtime=$(Build.SourcesDirectory)\netstandard2.0\WinRT.Runtime.dll;net6_runtime=$(Build.SourcesDirectory)\net6.0\WinRT.Runtime.dll;net8_runtime=$(Build.SourcesDirectory)\net8.0\WinRT.Runtime.dll;source_generator=$(Build.SourcesDirectory)\netstandard2.0\WinRT.SourceGenerator.dll;winrt_shim=$(Build.SourcesDirectory)\net6.0\WinRT.Host.Shim.dll;winrt_host_x86=$(Build.SourcesDirectory)\release_x86\WinRT.Host.dll;winrt_host_x64=$(Build.SourcesDirectory)\release_x64\WinRT.Host.dll;winrt_host_arm64=$(Build.SourcesDirectory)\release_arm64\WinRT.Host.dll;winrt_host_resource_x86=$(Build.SourcesDirectory)\release_x86\WinRT.Host.dll.mui;winrt_host_resource_x64=$(Build.SourcesDirectory)\release_x64\WinRT.Host.dll.mui;winrt_host_resource_arm64=$(Build.SourcesDirectory)\release_arm64\WinRT.Host.dll.mui;guid_patch=$(Build.SourcesDirectory)\net6.0\IIDOptimizer\*.*
buildProperties: cswinrt_nuget_version=$(NugetVersion);cswinrt_exe=$(Build.SourcesDirectory)\cswinrt.exe;interop_winmd=$(Build.SourcesDirectory)\WinRT.Interop.winmd;netstandard2_runtime=$(Build.SourcesDirectory)\netstandard2.0\WinRT.Runtime.dll;net8_runtime=$(Build.SourcesDirectory)\net8.0\WinRT.Runtime.dll;source_generator=$(Build.SourcesDirectory)\netstandard2.0\WinRT.SourceGenerator.dll;winrt_shim=$(Build.SourcesDirectory)\net8.0\WinRT.Host.Shim.dll;winrt_host_x86=$(Build.SourcesDirectory)\release_x86\WinRT.Host.dll;winrt_host_x64=$(Build.SourcesDirectory)\release_x64\WinRT.Host.dll;winrt_host_arm64=$(Build.SourcesDirectory)\release_arm64\WinRT.Host.dll;winrt_host_resource_x86=$(Build.SourcesDirectory)\release_x86\WinRT.Host.dll.mui;winrt_host_resource_x64=$(Build.SourcesDirectory)\release_x64\WinRT.Host.dll.mui;winrt_host_resource_arm64=$(Build.SourcesDirectory)\release_arm64\WinRT.Host.dll.mui;guid_patch=$(Build.SourcesDirectory)\net8.0\IIDOptimizer\*.*

- task: NuGetCommand@2
displayName: NuGet pack
Expand All @@ -239,7 +230,7 @@ stages:
command: pack
searchPatternPack: nuget/Microsoft.Windows.CsWinMD.nuspec
configurationToPack: Release
buildProperties: cswinmd_nuget_version=$(NugetVersion);cswinmd_outpath=$(Build.SourcesDirectory)\net6.0\CsWinMD;source_generator=$(Build.SourcesDirectory)\netstandard2.0\WinRT.SourceGenerator.dll
buildProperties: cswinmd_nuget_version=$(NugetVersion);cswinmd_outpath=$(Build.SourcesDirectory)\net8.0\CsWinMD;source_generator=$(Build.SourcesDirectory)\netstandard2.0\WinRT.SourceGenerator.dll

# ESRP CodeSigning
- task: EsrpCodeSigning@5
Expand Down
4 changes: 1 addition & 3 deletions build/AzurePipelineTemplates/CsWinRT-Variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ variables:
value: '2.2.0.0'
- name: Net5.SDK.Feed
value: 'https://dotnetcli.blob.core.windows.net/dotnet'
- name: Net6.SDK.Version
value: '6.0.424'
- name: Net8.SDK.Version
value: '8.0.303'
- name: NoSamples
Expand All @@ -27,7 +25,7 @@ variables:
- name: _RunGCStress
value: $[coalesce(variables.RunGCStress, 'false')]
- name: _DotNetRuntimeVersion
value: $[coalesce(variables.DotNetRuntimeVersion, '6.0.32')]
value: $[coalesce(variables.DotNetRuntimeVersion, '8.0.303')]
- name: _WindowsSdkVersionSuffix
value: $[coalesce(variables.WindowsSdkPackageVersionSuffix, '25')]
- name: _PublishCsWinMD
Expand Down
6 changes: 3 additions & 3 deletions docs/authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ It is recommended to use .NET 6 and Visual Studio 2022 for C#/WinRT authoring sc
```xml
<PropertyGroup>
<!-- Choose your TargetFramework for the desired Windows SDK version -->
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
</PropertyGroup>
```

Expand Down Expand Up @@ -66,9 +66,9 @@ To make your component available as a NuGet package, it is important to include
target="build\MyAuthoredComponent.targets" />

<!-- Include the managed DLLs -->
<file src="C:\Path\To\CsWinRT\NugetDir\lib\net6.0\WinRT.Host.Shim.dll"
<file src="C:\Path\To\CsWinRT\NugetDir\lib\net8.0\WinRT.Host.Shim.dll"
target="lib\$(TargetFramework)\WinRT.Host.Shim.dll" />
<file src="C:\Path\To\CsWinRT\NugetDir\lib\net6.0\WinRT.Runtime.dll"
<file src="C:\Path\To\CsWinRT\NugetDir\lib\net8.0\WinRT.Runtime.dll"
target="lib\$(TargetFramework)\WinRT.Runtime.dll" />

<!-- Include the native DLLs -->
Expand Down
2 changes: 1 addition & 1 deletion docs/embedded.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Here is an example project file for a library cross-targeting and embedding a C#
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0-windows;net5.0-windows;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0-windows;net5.0-windows;netstandard2.0</TargetFrameworks>
<Platforms>x64;x86</Platforms>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions nuget/Microsoft.Windows.CsWinRT.Authoring.targets
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
-->
<ItemGroup Condition="'$(CsWinRTAotExportsEnabled)' != 'true'">

<None Condition="Exists('$(CsWinRTPath)lib\net6.0\WinRT.Host.Shim.dll')" Include="$(CsWinRTPath)lib\net6.0\WinRT.Host.Shim.dll">
<None Condition="Exists('$(CsWinRTPath)lib\net8.0\WinRT.Host.Shim.dll')" Include="$(CsWinRTPath)lib\net8.0\WinRT.Host.Shim.dll">
<TargetPath>WinRT.Host.Shim.dll</TargetPath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -284,7 +284,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.
-->
<ItemGroup Condition="'$(CsWinRTAotExportsEnabled)' != 'true'">

<Content Include="$(CsWinRTPath)lib\net6.0\WinRT.Host.Shim.dll">
<Content Include="$(CsWinRTPath)lib\net8.0\WinRT.Host.Shim.dll">
<Pack>true</Pack>
<PackagePath>lib\$(TargetFramework)</PackagePath>
</Content>
Expand Down
3 changes: 1 addition & 2 deletions nuget/Microsoft.Windows.CsWinRT.Embedded.targets
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Copyright (C) Microsoft Corporation. All rights reserved.

<ItemGroup>
<CsWinRTEmbeddedSourcesAny Include="$(WinRTRuntimeSourcesDir)any\*.cs"/>
<CsWinRTEmbeddedSourcesNet5 Include="$(WinRTRuntimeSourcesDir)net6.0\*.cs"/>
<CsWinRTEmbeddedSourcesNet5 Include="$(WinRTRuntimeSourcesDir)net8.0\*.cs"/>
<CsWinRTEmbeddedSourcesNet2 Include="$(WinRTRuntimeSourcesDir)netstandard2.0\*.cs"/>
</ItemGroup>

Expand Down Expand Up @@ -68,7 +68,6 @@ Copyright (C) Microsoft Corporation. All rights reserved.
<ItemGroup>
<Reference Remove="WinRT.Runtime" />
<RuntimeCopyLocalItems Remove="@(RuntimeCopyLocalItems)" Condition="'%(DestinationSubPath)' == 'WinRT.Runtime.dll'"/>
<ResolvedCompileFileDefinitions Remove="@(ResolvedCompileFileDefinitions)" Condition="'%(HintPath)' == '$(CsWinRTPath)lib\net6.0\WinRT.Runtime.dll'"/>
<ResolvedCompileFileDefinitions Remove="@(ResolvedCompileFileDefinitions)" Condition="'%(HintPath)' == '$(CsWinRTPath)lib\net8.0\WinRT.Runtime.dll'"/>
</ItemGroup>

Expand Down
13 changes: 6 additions & 7 deletions nuget/Microsoft.Windows.CsWinRT.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<license type="file">LICENSE</license>
<projectUrl>https://github.com/microsoft/cswinrt</projectUrl>
<dependencies>
<group targetFramework=".NET6.0" />
<group targetFramework=".NET8.0" />
</dependencies>
</metadata>
<files>
Expand All @@ -30,13 +30,12 @@
<file src="Microsoft.Windows.CsWinRT.Authoring.Transitive.targets" target="build"/>
<file src="$interop_winmd$" target="metadata"/>
<file src="readme.txt"/>
<file src="$net6_runtime$" target="lib\net6.0\"/>
<file src="$net8_runtime$" target="lib\net8.0\"/>
<file src="$source_generator$" target="analyzers\dotnet\cs\"/>
<file src="$winrt_host_x64$" target ="hosting\x64\native"/>
<file src="$winrt_host_x86$" target ="hosting\x86\native"/>
<file src="$winrt_host_arm64$" target ="hosting\arm64\native"/>
<file src="$winrt_shim$" target ="lib\net6.0\"/>
<file src="$winrt_shim$" target ="lib\net8.0\"/>

<!-- Localized resources for error strings
The paths here leads to a folder of folders,
Expand All @@ -49,21 +48,21 @@
<file src="$winrt_host_resource_x86$" target ="hosting\x86\native\en-US"/>
<file src="$winrt_host_resource_arm64$" target ="hosting\arm64\native\en-US"/>

<file src="..\src\WinRT.Runtime\ResX\**" target ="lib\net6.0\"/>
<file src="..\src\WinRT.Runtime\ResX\**" target ="lib\net8.0\"/>
<file src="..\src\Authoring\WinRT.SourceGenerator\ResX\**" target ="analyzers\dotnet\cs\"/>

<!-- Add the WinRT.Runtime sources to the pkg for embedded scenarios -->

<file src="..\src\WinRT.Runtime\*.cs" exclude="..\src\WinRT.Runtime\*.net*.cs" target="embedded\any\" />
<file src="..\src\WinRT.Runtime\*net5*.cs" target="embedded\net6.0\" />
<file src="..\src\WinRT.Runtime\*net5*.cs" target="embedded\net8.0\" />
<file src="..\src\WinRT.Runtime\*netstandard2.0*.cs" target="embedded\netstandard2.0\" />

<file src="..\src\WinRT.Runtime\Interop\*.cs" exclude="..\src\WinRT.Runtime\Interop\*.net*.cs" target="embedded\any\" />
<file src="..\src\WinRT.Runtime\Interop\*net5*.cs" target="embedded\net6.0\" />
<file src="..\src\WinRT.Runtime\Interop\*net5*.cs" target="embedded\net8.0\" />
<file src="..\src\WinRT.Runtime\Interop\*netstandard2.0*.cs" target="embedded\netstandard2.0\" />

<file src="..\src\WinRT.Runtime\Projections\*.cs" exclude="..\src\WinRT.Runtime\Projections\*.net*.cs" target="embedded\any\" />
<file src="..\src\WinRT.Runtime\Projections\*net5*.cs" target="embedded\net6.0\" />
<file src="..\src\WinRT.Runtime\Projections\*net5*.cs" target="embedded\net8.0\" />
<file src="..\src\WinRT.Runtime\Projections\*netstandard2.0*.cs" target="embedded\netstandard2.0\" />

<file src="..\src\WinRT.Runtime\Configuration\*.cs" exclude="..\src\WinRT.Runtime\Configuration\*.net*.cs" target="embedded\any\" />
Expand Down
Loading