Skip to content

Commit 3ad4702

Browse files
authored
Merge pull request #6756 from Taritsyn/nuget-net-client-profile-in-msbuild-scripts
NuGet: Add a support for .NET Framework Client Profiles in MSBuild scripts
2 parents 969f5ed + 9d9ac5e commit 3ad4702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build/NuGet/Windows.DotNet.Arch/Items.props.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<ItemGroup Condition=" '$(TargetFramework)' == '' Or '$(TargetFramework.TrimEnd(`0123456789`))' == 'net' ">
3+
<ItemGroup Condition=" '$(TargetFramework)' == '' Or $([System.Text.RegularExpressions.Regex]::Replace('$(TargetFramework)', '\d+(?:\-client)?$', '', System.Text.RegularExpressions.RegexOptions.IgnoreCase)) == 'net' ">
44
<Content Include="$(MSBuildThisFileDirectory)..\runtimes\{{runtimeIdentifier}}\native\*.*" Condition=" '$(Platform)' == 'AnyCPU' ">
55
<Link>{{platformArchitecture}}\%(Filename)%(Extension)</Link>
66
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

0 commit comments

Comments
 (0)