From 6f3997198d894d60afce07bd6a68bcad5fd20ba0 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 4 Apr 2023 13:17:10 -0700 Subject: Fix build of outputs with comma in their filename Fixes 7343 --- src/wix/WixToolset.Sdk/tools/wix.targets | 2 +- src/wix/test/WixToolsetTest.Sdk/MsbuildFixture.cs | 34 ++++++++++++++++++++++ .../TestData/PackageWith,Comma/Package.wxs | 17 +++++++++++ .../PackageWith,Comma/PackageWith,Comma.wixproj | 6 ++++ 4 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 src/wix/test/WixToolsetTest.Sdk/TestData/PackageWith,Comma/Package.wxs create mode 100644 src/wix/test/WixToolsetTest.Sdk/TestData/PackageWith,Comma/PackageWith,Comma.wixproj diff --git a/src/wix/WixToolset.Sdk/tools/wix.targets b/src/wix/WixToolset.Sdk/tools/wix.targets index 2b24215d..0decbbeb 100644 --- a/src/wix/WixToolset.Sdk/tools/wix.targets +++ b/src/wix/WixToolset.Sdk/tools/wix.targets @@ -904,7 +904,7 @@ - <_RelativePath Include="$([MSBuild]::MakeRelative($(FullIntermediateOutputPath), %(_FullPathToCopy.FullPath)))" /> + <_RelativePath Include="$([MSBuild]::MakeRelative("$(FullIntermediateOutputPath)", "%(_FullPathToCopy.FullPath)"))" /> s.Substring(baseFolder.Length + 1)) + .OrderBy(s => s) + .ToArray(); + WixAssert.CompareLineByLine(new[] + { + @"bin\Release\cab1.cab", + @"bin\Release\PackageWith,Comma.msi", + @"bin\Release\PackageWith,Comma.wixpdb", + }, paths); + } + } + [Theory(Skip = "Depends on creating broken publish which is not supported at this time")] [InlineData(BuildSystem.DotNetCoreSdk)] [InlineData(BuildSystem.MSBuild)] diff --git a/src/wix/test/WixToolsetTest.Sdk/TestData/PackageWith,Comma/Package.wxs b/src/wix/test/WixToolsetTest.Sdk/TestData/PackageWith,Comma/Package.wxs new file mode 100644 index 00000000..dcaa7e28 --- /dev/null +++ b/src/wix/test/WixToolsetTest.Sdk/TestData/PackageWith,Comma/Package.wxs @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/wix/test/WixToolsetTest.Sdk/TestData/PackageWith,Comma/PackageWith,Comma.wixproj b/src/wix/test/WixToolsetTest.Sdk/TestData/PackageWith,Comma/PackageWith,Comma.wixproj new file mode 100644 index 00000000..1feeef43 --- /dev/null +++ b/src/wix/test/WixToolsetTest.Sdk/TestData/PackageWith,Comma/PackageWith,Comma.wixproj @@ -0,0 +1,6 @@ + + + + + + -- cgit v1.2.3-55-g6feb