diff options
| author | Mike Wileczka <22036740+mwileczka@users.noreply.github.com> | 2023-04-19 10:12:24 -0400 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2023-06-03 01:24:39 -0700 |
| commit | 005a33a0d5ef8233f9d547fa28ae7f72731cad69 (patch) | |
| tree | 42265813944eeb44a31d3cd48822617d16a392d5 /src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/Tools Version 4Cs | |
| parent | b4fe940cd1cb5798bc3e68a686289b8020cf7110 (diff) | |
| download | wix-005a33a0d5ef8233f9d547fa28ae7f72731cad69.tar.gz wix-005a33a0d5ef8233f9d547fa28ae7f72731cad69.tar.bz2 wix-005a33a0d5ef8233f9d547fa28ae7f72731cad69.zip | |
Fix harvesting project names with invalid chars
Project names with invalid characters, namely spaces, where not being harvested properly. The sanitized name is requires for the `Source="$(var.PROJECT_NAME` output. Updated harvest project unit test for project names with spaces.
Diffstat (limited to 'src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/Tools Version 4Cs')
2 files changed, 47 insertions, 0 deletions
diff --git a/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/Tools Version 4Cs/Properties/AssemblyInfo.cs b/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/Tools Version 4Cs/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..fed7cd9e --- /dev/null +++ b/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/Tools Version 4Cs/Properties/AssemblyInfo.cs | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | using System; | ||
| 4 | using System.Reflection; | ||
| 5 | using System.Runtime.InteropServices; | ||
| 6 | |||
| 7 | [assembly: AssemblyTitle("Tools Version 4Cs")] | ||
| 8 | [assembly: AssemblyDescription("Tools Version 4Cs")] | ||
| 9 | [assembly: AssemblyProduct("WiX Toolset")] | ||
| 10 | [assembly: AssemblyCompany("WiX Toolset Team")] | ||
| 11 | [assembly: AssemblyCopyright("Copyright (c) .NET Foundation and contributors. All rights reserved.")] | ||
diff --git a/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/Tools Version 4Cs/Tools Version 4Cs.csproj b/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/Tools Version 4Cs/Tools Version 4Cs.csproj new file mode 100644 index 00000000..def5ccb2 --- /dev/null +++ b/src/tools/test/WixToolsetTest.HeatTasks/TestData/HeatProject/Tools Version 4Cs/Tools Version 4Cs.csproj | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | ||
| 3 | |||
| 4 | |||
| 5 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| 6 | <PropertyGroup> | ||
| 7 | <ProjectGuid>{8B19578A-816A-48A1-A6C4-58067334EB79}</ProjectGuid> | ||
| 8 | <AssemblyName>Tools Version 4Cs</AssemblyName> | ||
| 9 | <OutputType>Library</OutputType> | ||
| 10 | <RootNamespace>ToolsVersion4Cs</RootNamespace> | ||
| 11 | <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
| 12 | </PropertyGroup> | ||
| 13 | <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | ||
| 14 | <DebugSymbols>true</DebugSymbols> | ||
| 15 | <Optimize>false</Optimize> | ||
| 16 | <DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants> | ||
| 17 | <OutputPath>bin\Debug\</OutputPath> | ||
| 18 | </PropertyGroup> | ||
| 19 | <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
| 20 | <DebugSymbols>true</DebugSymbols> | ||
| 21 | <Optimize>true</Optimize> | ||
| 22 | <DefineConstants>$(DefineConstants);TRACE</DefineConstants> | ||
| 23 | <OutputPath>bin\Release\</OutputPath> | ||
| 24 | </PropertyGroup> | ||
| 25 | <ItemGroup> | ||
| 26 | <Compile Include="Properties\AssemblyInfo.cs" /> | ||
| 27 | </ItemGroup> | ||
| 28 | <ItemGroup> | ||
| 29 | <Reference Include="System" /> | ||
| 30 | <Reference Include="System.Configuration" /> | ||
| 31 | <Reference Include="System.Data" /> | ||
| 32 | <Reference Include="System.Xml" /> | ||
| 33 | </ItemGroup> | ||
| 34 | |||
| 35 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
| 36 | </Project> | ||
