diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-04-26 11:31:05 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 11:14:01 -0700 |
| commit | df016066100df955d5ff98811e113fb2b1bd4b8a (patch) | |
| tree | a27b35a3651ca7b1d8c4bb7c7483ec2f92583e08 /src/libs/dutil | |
| parent | dc6022da6cdbb9d7ca54c4a36485ceead07feaaf (diff) | |
| download | wix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.gz wix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.bz2 wix-df016066100df955d5ff98811e113fb2b1bd4b8a.zip | |
Implement integrated build process
Diffstat (limited to 'src/libs/dutil')
| -rw-r--r-- | src/libs/dutil/Directory.Build.props | 26 | ||||
| -rw-r--r-- | src/libs/dutil/Directory.Build.targets | 73 | ||||
| -rw-r--r-- | src/libs/dutil/Directory.csproj.props | 13 | ||||
| -rw-r--r-- | src/libs/dutil/Directory.vcxproj.props | 115 | ||||
| -rw-r--r-- | src/libs/dutil/NativeMultiTargeting.Build.props | 10 | ||||
| -rw-r--r-- | src/libs/dutil/WixToolset.DUtil/dutil.nuspec | 29 | ||||
| -rw-r--r-- | src/libs/dutil/WixToolset.DUtil/dutil.vcxproj | 7 | ||||
| -rw-r--r-- | src/libs/dutil/WixToolset.DUtil/packages.config | 7 | ||||
| -rw-r--r-- | src/libs/dutil/appveyor.cmd | 24 | ||||
| -rw-r--r-- | src/libs/dutil/appveyor.yml | 44 | ||||
| -rw-r--r-- | src/libs/dutil/dutil.sln | 4 | ||||
| -rw-r--r-- | src/libs/dutil/nuget.config | 8 | ||||
| -rw-r--r-- | src/libs/dutil/test/DUtilUnitTest/DUtilUnitTest.vcxproj | 31 | ||||
| -rw-r--r-- | src/libs/dutil/test/DUtilUnitTest/packages.config | 13 |
14 files changed, 27 insertions, 377 deletions
diff --git a/src/libs/dutil/Directory.Build.props b/src/libs/dutil/Directory.Build.props deleted file mode 100644 index fb34d54e..00000000 --- a/src/libs/dutil/Directory.Build.props +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 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 | Do NOT modify this file. Update the canonical version in Home\repo-template\src\Directory.Build.props | ||
| 5 | then update all of the repos. | ||
| 6 | --> | ||
| 7 | <Project> | ||
| 8 | <PropertyGroup> | ||
| 9 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
| 10 | <EnableSourceLink Condition=" '$(NCrunch)' == '1' ">false</EnableSourceLink> | ||
| 11 | |||
| 12 | <ProjectName Condition=" '$(ProjectName)' == '' ">$(MSBuildProjectName)</ProjectName> | ||
| 13 | <BaseOutputPath>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\build\))</BaseOutputPath> | ||
| 14 | <BaseIntermediateOutputPath>$(BaseOutputPath)obj\$(ProjectName)\</BaseIntermediateOutputPath> | ||
| 15 | <OutputPath>$(BaseOutputPath)$(Configuration)\</OutputPath> | ||
| 16 | |||
| 17 | <Authors>WiX Toolset Team</Authors> | ||
| 18 | <Company>WiX Toolset</Company> | ||
| 19 | <Copyright>Copyright (c) .NET Foundation and contributors. All rights reserved.</Copyright> | ||
| 20 | <PackageLicenseExpression>MS-RL</PackageLicenseExpression> | ||
| 21 | <Product>WiX Toolset</Product> | ||
| 22 | </PropertyGroup> | ||
| 23 | |||
| 24 | <Import Project="Directory$(MSBuildProjectExtension).props" Condition=" Exists('Directory$(MSBuildProjectExtension).props') " /> | ||
| 25 | <Import Project="Custom.Build.props" Condition=" Exists('Custom.Build.props') " /> | ||
| 26 | </Project> | ||
diff --git a/src/libs/dutil/Directory.Build.targets b/src/libs/dutil/Directory.Build.targets deleted file mode 100644 index 44701fb6..00000000 --- a/src/libs/dutil/Directory.Build.targets +++ /dev/null | |||
| @@ -1,73 +0,0 @@ | |||
| 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 | Do NOT modify this file. Update the canonical version in Home\repo-template\src\Directory.Build.targets | ||
| 5 | then update all of the repos. | ||
| 6 | --> | ||
| 7 | <Project> | ||
| 8 | <PropertyGroup> | ||
| 9 | <SigningToolFolder>$(BaseOutputPath)obj\.tools</SigningToolFolder> | ||
| 10 | <SigningToolExe>$(SigningToolFolder)\SignClient.exe</SigningToolExe> | ||
| 11 | <SigningFilelist>$(SigningToolFolder)\empty-filelist.txt</SigningFilelist> | ||
| 12 | <SigningConfiguration>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), signing.json))\signing.json</SigningConfiguration> | ||
| 13 | </PropertyGroup> | ||
| 14 | |||
| 15 | <PropertyGroup> | ||
| 16 | <CreateDocumentation Condition=" '$(CreateDocumentationFile)'!='true' ">false</CreateDocumentation> | ||
| 17 | <DocumentationFile Condition=" '$(CreateDocumentationFile)'=='true' ">$(OutputPath)\$(AssemblyName).xml</DocumentationFile> | ||
| 18 | </PropertyGroup> | ||
| 19 | |||
| 20 | <Target Name="SetNuspecProperties" DependsOnTargets="InitializeSourceControlInformation" AfterTargets="GetBuildVersion" | ||
| 21 | Condition=" Exists('$(MSBuildProjectName).nuspec') "> | ||
| 22 | <PropertyGroup> | ||
| 23 | <ProjectUrl Condition=" '$(ProjectUrl)'=='' and '$(PrivateRepositoryUrl)'!='' ">$(PrivateRepositoryUrl.Replace('.git',''))</ProjectUrl> | ||
| 24 | |||
| 25 | <NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile> | ||
| 26 | <NuspecBasePath Condition=" '$(NuspecBasePath)'=='' ">$(MSBuildProjectDirectory)</NuspecBasePath> | ||
| 27 | <NuspecProperties>$(NuspecProperties);Id=$(PackageId);Authors="$(Authors)";Configuration=$(Configuration);Copyright="$(Copyright)";Description="$(Description)";Title="$(Title)"</NuspecProperties> | ||
| 28 | <NuspecProperties>$(NuspecProperties);Version=$(NPMPackageVersion);RepositoryCommit=$(SourceRevisionId);RepositoryType=$(RepositoryType);RepositoryUrl=$(PrivateRepositoryUrl);ProjectFolder=$(MSBuildProjectDirectory)\;ProjectUrl=$(ProjectUrl)</NuspecProperties> | ||
| 29 | <PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
| 30 | <SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
| 31 | </PropertyGroup> | ||
| 32 | </Target> | ||
| 33 | |||
| 34 | <Target Name="PackNative" DependsOnTargets="GetBuildVersion;SetNuspecProperties" | ||
| 35 | Condition=" Exists('$(MSBuildProjectName).nuspec') "> | ||
| 36 | |||
| 37 | <Exec Command='nuget pack $(NuspecFile) -OutputDirectory "$(BaseOutputPath)$(Configuration)" -BasePath "$(NuspecBasePath)" -Properties $(NuspecProperties)' | ||
| 38 | WorkingDirectory="$(MSBuildProjectDirectory)" /> | ||
| 39 | |||
| 40 | <ItemGroup> | ||
| 41 | <NuGetPackOutput Include="$(BaseOutputPath)$(Configuration)\**\$(PackageId)*.nupkg" /> | ||
| 42 | </ItemGroup> | ||
| 43 | </Target> | ||
| 44 | |||
| 45 | <Target Name="_GetSignClient" | ||
| 46 | Condition=" !Exists('$(SigningToolExe)') "> | ||
| 47 | |||
| 48 | <WriteLinesToFile File='$(SigningFilelist)' Lines='do-not-sign-files-in-nupkg' Overwrite='true' /> | ||
| 49 | |||
| 50 | <Exec Command='dotnet.exe tool install --tool-path "$(SigningToolFolder)" SignClient' /> | ||
| 51 | </Target> | ||
| 52 | |||
| 53 | <Target Name="SignOutput" DependsOnTargets="_GetSignClient" AfterTargets="AfterBuild" | ||
| 54 | Condition=" '$(SigningUser)'!='' and '$(SignOutput)'!='false' and | ||
| 55 | ('$(MSBuildProjectExtension)'=='.csproj' or ('$(MSBuildProjectExtension)'=='.vcxproj' and '$(ConfigurationType)'!='StaticLibrary'))"> | ||
| 56 | |||
| 57 | <Exec Command='"$(SigningToolExe)" sign -i $(TargetPath) -c "$(SigningConfiguration)" -n "WiX Toolset" -d "WiX Toolset" -u https://wixtoolset.org/ -r "$(SigningUser)" -s "$(SigningSecret)"' | ||
| 58 | WorkingDirectory="$(MSBuildProjectDirectory)" EchoOff="true" /> | ||
| 59 | </Target> | ||
| 60 | |||
| 61 | <Target Name="SignNupkg" DependsOnTargets="_GetSignClient" AfterTargets="Pack;PackNative" | ||
| 62 | Condition=" '$(SigningUser)'!='' and '@(NuGetPackOutput)'!='' and '$(SignNupkg)'!='false' "> | ||
| 63 | <ItemGroup> | ||
| 64 | <SigningNupkgs Include="@(NuGetPackOutput)" Condition=" '%(Extension)'=='.nupkg' " /> | ||
| 65 | </ItemGroup> | ||
| 66 | |||
| 67 | <Exec Command='"$(SigningToolExe)" sign -i "@(SigningNupkgs->'%(Identity)')" -c "$(SigningConfiguration)" -f "$(SigningFilelist)" -n "WiX Toolset" -d "WiX Toolset" -u https://wixtoolset.org/ -r "$(SigningUser)" -s "$(SigningSecret)"' | ||
| 68 | WorkingDirectory="$(MSBuildProjectDirectory)" EchoOff="true" /> | ||
| 69 | </Target> | ||
| 70 | |||
| 71 | <Import Project="Directory$(MSBuildProjectExtension).targets" Condition=" Exists('Directory$(MSBuildProjectExtension).targets') " /> | ||
| 72 | <Import Project="Custom.Build.targets" Condition=" Exists('Custom.Build.targets') " /> | ||
| 73 | </Project> | ||
diff --git a/src/libs/dutil/Directory.csproj.props b/src/libs/dutil/Directory.csproj.props deleted file mode 100644 index 81d24ad1..00000000 --- a/src/libs/dutil/Directory.csproj.props +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 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 | Do NOT modify this file. Update the canonical version in Home\repo-template\src\CSharp.Build.props | ||
| 4 | then update all of the repos. | ||
| 5 | --> | ||
| 6 | <Project> | ||
| 7 | <PropertyGroup> | ||
| 8 | <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> | ||
| 9 | <SignAssembly>true</SignAssembly> | ||
| 10 | <AssemblyOriginatorKeyFile>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)wix.snk))</AssemblyOriginatorKeyFile> | ||
| 11 | <NBGV_EmitThisAssemblyClass>false</NBGV_EmitThisAssemblyClass> | ||
| 12 | </PropertyGroup> | ||
| 13 | </Project> | ||
diff --git a/src/libs/dutil/Directory.vcxproj.props b/src/libs/dutil/Directory.vcxproj.props deleted file mode 100644 index 9ea7071b..00000000 --- a/src/libs/dutil/Directory.vcxproj.props +++ /dev/null | |||
| @@ -1,115 +0,0 @@ | |||
| 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 | <Project> | ||
| 5 | <PropertyGroup> | ||
| 6 | <Platform Condition=" '$(Platform)' == '' OR '$(Platform)' == 'AnyCPU' ">Win32</Platform> | ||
| 7 | <IntDir>$(BaseIntermediateOutputPath)$(Configuration)\$(Platform)\</IntDir> | ||
| 8 | <OutDir>$(OutputPath)$(Platform)\</OutDir> | ||
| 9 | |||
| 10 | <!-- NBGV properties --> | ||
| 11 | <AssemblyCompany>$(Company)</AssemblyCompany> | ||
| 12 | <AssemblyCopyright>$(Copyright)</AssemblyCopyright> | ||
| 13 | |||
| 14 | <RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers> | ||
| 15 | <NuGetTargetMoniker>native,Version=v0.0</NuGetTargetMoniker> | ||
| 16 | </PropertyGroup> | ||
| 17 | |||
| 18 | <PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'=='' AND '$(VisualStudioVersion)'>='15.0'"> | ||
| 19 | <WindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion('Windows', '10.0'))</WindowsTargetPlatformVersion> | ||
| 20 | </PropertyGroup> | ||
| 21 | |||
| 22 | <PropertyGroup> | ||
| 23 | <CodeAnalysisRuleSet Condition=" Exists('$(MSBuildThisFileDirectory)CustomizedNativeRecommendedRules.ruleset') ">$(MSBuildThisFileDirectory)CustomizedNativeRecommendedRules.ruleset</CodeAnalysisRuleSet> | ||
| 24 | </PropertyGroup> | ||
| 25 | |||
| 26 | <ItemDefinitionGroup> | ||
| 27 | <ClCompile> | ||
| 28 | <DisableSpecificWarnings>$(DisableSpecificCompilerWarnings)</DisableSpecificWarnings> | ||
| 29 | <WarningLevel>Level4</WarningLevel> | ||
| 30 | <AdditionalIncludeDirectories>$(ProjectDir)inc;$(MSBuildProjectDirectory);$(IntDir);$(SqlCESdkIncludePath);$(ProjectAdditionalIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 31 | <PreprocessorDefinitions>WIN32;_WINDOWS;_WIN32_MSI=500;_WIN32_WINNT=0x0501;$(ArmPreprocessorDefinitions);$(UnicodePreprocessorDefinitions);_CRT_STDIO_LEGACY_WIDE_SPECIFIERS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 32 | <PrecompiledHeader>Use</PrecompiledHeader> | ||
| 33 | <PrecompiledHeaderFile>precomp.h</PrecompiledHeaderFile> | ||
| 34 | <CallingConvention Condition="'$(Platform)'=='Win32'">StdCall</CallingConvention> | ||
| 35 | <TreatWarningAsError>true</TreatWarningAsError> | ||
| 36 | <ExceptionHandling>false</ExceptionHandling> | ||
| 37 | <AdditionalOptions>-YlprecompDefine</AdditionalOptions> | ||
| 38 | <AdditionalOptions Condition=" $(PlatformToolset.StartsWith('v14')) ">/Zc:threadSafeInit- %(AdditionalOptions)</AdditionalOptions> | ||
| 39 | <MultiProcessorCompilation Condition=" $(NUMBER_OF_PROCESSORS) > 4 ">true</MultiProcessorCompilation> | ||
| 40 | </ClCompile> | ||
| 41 | <ResourceCompile> | ||
| 42 | <PreprocessorDefinitions>$(ArmPreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 43 | <AdditionalIncludeDirectories>$(ProjectAdditionalResourceIncludeDirectories);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | ||
| 44 | </ResourceCompile> | ||
| 45 | <Lib> | ||
| 46 | <AdditionalLibraryDirectories>$(OutDir);$(AdditionalMultiTargetLibraryPath);$(ProjectAdditionalLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
| 47 | </Lib> | ||
| 48 | <Link> | ||
| 49 | <SubSystem>$(ProjectSubSystem)</SubSystem> | ||
| 50 | <ModuleDefinitionFile>$(ProjectModuleDefinitionFile)</ModuleDefinitionFile> | ||
| 51 | <NoEntryPoint>$(ResourceOnlyDll)</NoEntryPoint> | ||
| 52 | <GenerateDebugInformation>true</GenerateDebugInformation> | ||
| 53 | <AdditionalDependencies>$(ProjectAdditionalLinkLibraries);advapi32.lib;comdlg32.lib;user32.lib;oleaut32.lib;gdi32.lib;shell32.lib;ole32.lib;version.lib;%(AdditionalDependencies)</AdditionalDependencies> | ||
| 54 | <AdditionalLibraryDirectories>$(OutDir);$(AdditionalMultiTargetLibraryPath);$(ArmLibraryDirectories);$(ProjectAdditionalLinkLibraryDirectories);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> | ||
| 55 | <AdditionalOptions Condition=" $(PlatformToolset.StartsWith('v14')) ">/IGNORE:4099 %(AdditionalOptions)</AdditionalOptions> | ||
| 56 | </Link> | ||
| 57 | </ItemDefinitionGroup> | ||
| 58 | |||
| 59 | <ItemDefinitionGroup Condition=" '$(Platform)'=='Win32' and '$(PlatformToolset)'!='v100'"> | ||
| 60 | <ClCompile> | ||
| 61 | <EnableEnhancedInstructionSet>NoExtensions</EnableEnhancedInstructionSet> | ||
| 62 | </ClCompile> | ||
| 63 | </ItemDefinitionGroup> | ||
| 64 | <ItemDefinitionGroup Condition=" '$(Platform)'=='arm' "> | ||
| 65 | <ClCompile> | ||
| 66 | <CallingConvention>CDecl</CallingConvention> | ||
| 67 | </ClCompile> | ||
| 68 | </ItemDefinitionGroup> | ||
| 69 | <ItemDefinitionGroup Condition=" '$(ConfigurationType)'=='StaticLibrary' "> | ||
| 70 | <ClCompile> | ||
| 71 | <DebugInformationFormat>OldStyle</DebugInformationFormat> | ||
| 72 | <OmitDefaultLibName>true</OmitDefaultLibName> | ||
| 73 | <IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries> | ||
| 74 | </ClCompile> | ||
| 75 | </ItemDefinitionGroup> | ||
| 76 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Debug' "> | ||
| 77 | <ClCompile> | ||
| 78 | <Optimization>Disabled</Optimization> | ||
| 79 | <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> | ||
| 80 | <PreprocessorDefinitions>_DEBUG;DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 81 | <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> | ||
| 82 | </ClCompile> | ||
| 83 | </ItemDefinitionGroup> | ||
| 84 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Debug' and '$(CLRSupport)'=='true' "> | ||
| 85 | <ClCompile> | ||
| 86 | <BasicRuntimeChecks></BasicRuntimeChecks> | ||
| 87 | <RuntimeLibrary>MultiThreadedDebugDll</RuntimeLibrary> | ||
| 88 | </ClCompile> | ||
| 89 | </ItemDefinitionGroup> | ||
| 90 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Release' "> | ||
| 91 | <ClCompile> | ||
| 92 | <Optimization>MinSpace</Optimization> | ||
| 93 | <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
| 94 | <FunctionLevelLinking>true</FunctionLevelLinking> | ||
| 95 | <IntrinsicFunctions>true</IntrinsicFunctions> | ||
| 96 | <RuntimeLibrary>MultiThreaded</RuntimeLibrary> | ||
| 97 | </ClCompile> | ||
| 98 | <Link> | ||
| 99 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
| 100 | <OptimizeReferences>true</OptimizeReferences> | ||
| 101 | </Link> | ||
| 102 | </ItemDefinitionGroup> | ||
| 103 | <ItemDefinitionGroup Condition=" '$(Configuration)'=='Release' and '$(CLRSupport)'=='true' "> | ||
| 104 | <ClCompile> | ||
| 105 | <BasicRuntimeChecks></BasicRuntimeChecks> | ||
| 106 | <RuntimeLibrary>MultiThreadedDll</RuntimeLibrary> | ||
| 107 | </ClCompile> | ||
| 108 | </ItemDefinitionGroup> | ||
| 109 | <ItemDefinitionGroup Condition=" '$(CLRSupport)'=='true' "> | ||
| 110 | <Link> | ||
| 111 | <KeyFile>$(LinkKeyFile)</KeyFile> | ||
| 112 | <DelaySign>$(LinkDelaySign)</DelaySign> | ||
| 113 | </Link> | ||
| 114 | </ItemDefinitionGroup> | ||
| 115 | </Project> | ||
diff --git a/src/libs/dutil/NativeMultiTargeting.Build.props b/src/libs/dutil/NativeMultiTargeting.Build.props deleted file mode 100644 index 1ff46559..00000000 --- a/src/libs/dutil/NativeMultiTargeting.Build.props +++ /dev/null | |||
| @@ -1,10 +0,0 @@ | |||
| 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 | <Project> | ||
| 5 | <!-- Overrides the standard Cpp.Build.props to include the PlatformToolset in the output path. --> | ||
| 6 | <PropertyGroup> | ||
| 7 | <IntDir>$(BaseIntermediateOutputPath)$(Configuration)\$(PlatformToolset)\$(PlatformTarget)\</IntDir> | ||
| 8 | <OutDir>$(OutputPath)$(PlatformToolset)\$(PlatformTarget)\</OutDir> | ||
| 9 | </PropertyGroup> | ||
| 10 | </Project> | ||
diff --git a/src/libs/dutil/WixToolset.DUtil/dutil.nuspec b/src/libs/dutil/WixToolset.DUtil/dutil.nuspec index 3499a2d5..fef60013 100644 --- a/src/libs/dutil/WixToolset.DUtil/dutil.nuspec +++ b/src/libs/dutil/WixToolset.DUtil/dutil.nuspec | |||
| @@ -1,27 +1,28 @@ | |||
| 1 | <?xml version="1.0"?> | 1 | <?xml version="1.0"?> |
| 2 | <package > | 2 | <package > |
| 3 | <metadata> | 3 | <metadata minClientVersion="4.0"> |
| 4 | <id>$id$</id> | 4 | <id>$id$</id> |
| 5 | <version>$version$</version> | 5 | <version>$version$</version> |
| 6 | <title>$title$</title> | ||
| 7 | <description>$description$</description> | ||
| 6 | <authors>$authors$</authors> | 8 | <authors>$authors$</authors> |
| 7 | <owners>$authors$</owners> | ||
| 8 | <license type="expression">MS-RL</license> | 9 | <license type="expression">MS-RL</license> |
| 9 | <projectUrl>https://github.com/wixtoolset/dutil</projectUrl> | ||
| 10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | 10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> |
| 11 | <description>$description$</description> | ||
| 12 | <copyright>$copyright$</copyright> | 11 | <copyright>$copyright$</copyright> |
| 12 | <projectUrl>$projectUrl$</projectUrl> | ||
| 13 | <repository type="$repositorytype$" url="$repositoryurl$" commit="$repositorycommit$" /> | ||
| 13 | </metadata> | 14 | </metadata> |
| 14 | 15 | ||
| 15 | <files> | 16 | <files> |
| 16 | <file src="build\$id$.props" target="build\" /> | 17 | <file src="$projectFolder$\build\$id$.props" target="build\" /> |
| 17 | <file src="inc\*" target="build\native\include" /> | 18 | <file src="$projectFolder$\inc\*" target="build\native\include" /> |
| 18 | <file src="..\..\build\$configuration$\v140\x64\dutil.lib" target="build\native\v140\x64" /> | 19 | <file src="..\..\v140\x64\dutil.lib" target="build\native\v140\x64" /> |
| 19 | <file src="..\..\build\$configuration$\v140\x86\dutil.lib" target="build\native\v140\x86" /> | 20 | <file src="..\..\v140\x86\dutil.lib" target="build\native\v140\x86" /> |
| 20 | <file src="..\..\build\$configuration$\v141\x64\dutil.lib" target="build\native\v141\x64" /> | 21 | <file src="..\..\v141\x64\dutil.lib" target="build\native\v141\x64" /> |
| 21 | <file src="..\..\build\$configuration$\v141\x86\dutil.lib" target="build\native\v141\x86" /> | 22 | <file src="..\..\v141\x86\dutil.lib" target="build\native\v141\x86" /> |
| 22 | <file src="..\..\build\$configuration$\v141\ARM64\dutil.lib" target="build\native\v141\ARM64" /> | 23 | <file src="..\..\v141\ARM64\dutil.lib" target="build\native\v141\ARM64" /> |
| 23 | <file src="..\..\build\$configuration$\v142\x64\dutil.lib" target="build\native\v142\x64" /> | 24 | <file src="..\..\v142\x64\dutil.lib" target="build\native\v142\x64" /> |
| 24 | <file src="..\..\build\$configuration$\v142\x86\dutil.lib" target="build\native\v142\x86" /> | 25 | <file src="..\..\v142\x86\dutil.lib" target="build\native\v142\x86" /> |
| 25 | <file src="..\..\build\$configuration$\v142\ARM64\dutil.lib" target="build\native\v142\ARM64" /> | 26 | <file src="..\..\v142\ARM64\dutil.lib" target="build\native\v142\ARM64" /> |
| 26 | </files> | 27 | </files> |
| 27 | </package> | 28 | </package> |
diff --git a/src/libs/dutil/WixToolset.DUtil/dutil.vcxproj b/src/libs/dutil/WixToolset.DUtil/dutil.vcxproj index 4e341438..a02e638a 100644 --- a/src/libs/dutil/WixToolset.DUtil/dutil.vcxproj +++ b/src/libs/dutil/WixToolset.DUtil/dutil.vcxproj | |||
| @@ -43,7 +43,7 @@ | |||
| 43 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 43 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
| 44 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 44 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 45 | 45 | ||
| 46 | <Import Project="..\NativeMultiTargeting.Build.props" /> | 46 | <Import Project="..\..\..\NativeMultiTargeting.Build.props" /> |
| 47 | 47 | ||
| 48 | <ItemGroup> | 48 | <ItemGroup> |
| 49 | <ClCompile Include="acl2util.cpp" /> | 49 | <ClCompile Include="acl2util.cpp" /> |
| @@ -170,13 +170,12 @@ | |||
| 170 | </ItemGroup> | 170 | </ItemGroup> |
| 171 | 171 | ||
| 172 | <ItemGroup> | 172 | <ItemGroup> |
| 173 | <None Include="packages.config" /> | ||
| 174 | <None Include="xsd\thmutil.xsd" /> | 173 | <None Include="xsd\thmutil.xsd" /> |
| 175 | </ItemGroup> | 174 | </ItemGroup> |
| 176 | 175 | ||
| 177 | <ItemGroup> | 176 | <ItemGroup> |
| 178 | <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" /> | 177 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> |
| 179 | <PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" /> | 178 | <PackageReference Include="GitInfo" PrivateAssets="All" /> |
| 180 | </ItemGroup> | 179 | </ItemGroup> |
| 181 | 180 | ||
| 182 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 181 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
diff --git a/src/libs/dutil/WixToolset.DUtil/packages.config b/src/libs/dutil/WixToolset.DUtil/packages.config deleted file mode 100644 index 5bbcd994..00000000 --- a/src/libs/dutil/WixToolset.DUtil/packages.config +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <packages> | ||
| 3 | <package id="Microsoft.Build.Tasks.Git" version="1.0.0" targetFramework="native" developmentDependency="true" /> | ||
| 4 | <package id="Microsoft.SourceLink.Common" version="1.0.0" targetFramework="native" developmentDependency="true" /> | ||
| 5 | <package id="Microsoft.SourceLink.GitHub" version="1.0.0" targetFramework="native" developmentDependency="true" /> | ||
| 6 | <package id="Nerdbank.GitVersioning" version="3.3.37" targetFramework="native" developmentDependency="true" /> | ||
| 7 | </packages> \ No newline at end of file | ||
diff --git a/src/libs/dutil/appveyor.cmd b/src/libs/dutil/appveyor.cmd deleted file mode 100644 index 85476b8e..00000000 --- a/src/libs/dutil/appveyor.cmd +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | @setlocal | ||
| 2 | @pushd %~dp0 | ||
| 3 | @set _C=Release | ||
| 4 | @if /i "%1"=="debug" set _C=Debug | ||
| 5 | |||
| 6 | nuget restore || exit /b | ||
| 7 | |||
| 8 | msbuild -t:Test -p:Configuration=%_C% src\test\DUtilUnitTest || exit /b | ||
| 9 | |||
| 10 | msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v140 || exit /b | ||
| 11 | msbuild -p:Configuration=%_C%;Platform=x64;PlatformToolset=v140 || exit /b | ||
| 12 | |||
| 13 | msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v141 || exit /b | ||
| 14 | msbuild -p:Configuration=%_C%;Platform=x64;PlatformToolset=v141 || exit /b | ||
| 15 | msbuild -p:Configuration=%_C%;Platform=ARM64;PlatformToolset=v141 || exit /b | ||
| 16 | |||
| 17 | msbuild -p:Configuration=%_C%;Platform=x86;PlatformToolset=v142 || exit /b | ||
| 18 | msbuild -p:Configuration=%_C%;Platform=x64;PlatformToolset=v142 || exit /b | ||
| 19 | msbuild -p:Configuration=%_C%;Platform=ARM64;PlatformToolset=v142 || exit /b | ||
| 20 | |||
| 21 | msbuild -p:Configuration=%_C% -t:PackNative src\dutil\dutil.vcxproj || exit /b | ||
| 22 | |||
| 23 | @popd | ||
| 24 | @endlocal \ No newline at end of file | ||
diff --git a/src/libs/dutil/appveyor.yml b/src/libs/dutil/appveyor.yml deleted file mode 100644 index f602d07c..00000000 --- a/src/libs/dutil/appveyor.yml +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 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 | # Do NOT modify this file. Update the canonical version in Home\repo-template\src\appveyor.yml | ||
| 4 | # then update all of the repos. | ||
| 5 | |||
| 6 | branches: | ||
| 7 | only: | ||
| 8 | - master | ||
| 9 | - develop | ||
| 10 | |||
| 11 | image: Visual Studio 2019 | ||
| 12 | |||
| 13 | version: 0.0.0.{build} | ||
| 14 | configuration: Release | ||
| 15 | |||
| 16 | environment: | ||
| 17 | DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
| 18 | DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
| 19 | NUGET_XMLDOC_MODE: skip | ||
| 20 | |||
| 21 | build_script: | ||
| 22 | - appveyor.cmd | ||
| 23 | |||
| 24 | test: off | ||
| 25 | |||
| 26 | pull_requests: | ||
| 27 | do_not_increment_build_number: true | ||
| 28 | |||
| 29 | nuget: | ||
| 30 | disable_publish_on_pr: true | ||
| 31 | |||
| 32 | skip_branch_with_pr: true | ||
| 33 | skip_tags: true | ||
| 34 | |||
| 35 | artifacts: | ||
| 36 | - path: build\Release\**\*.nupkg | ||
| 37 | name: nuget | ||
| 38 | - path: build\Release\**\*.msi | ||
| 39 | name: msi | ||
| 40 | |||
| 41 | notifications: | ||
| 42 | - provider: Slack | ||
| 43 | incoming_webhook: | ||
| 44 | secure: p5xuu+4x2JHfwGDMDe5KcG1k7gZxqYc4jWVwvyNZv5cvkubPD2waJs5yXMAXZNN7Z63/3PWHb7q4KoY/99AjauYa1nZ4c5qYqRPFRBKTHfA= | ||
diff --git a/src/libs/dutil/dutil.sln b/src/libs/dutil/dutil.sln index 433f42a5..f6bfcc97 100644 --- a/src/libs/dutil/dutil.sln +++ b/src/libs/dutil/dutil.sln | |||
| @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 | |||
| 3 | # Visual Studio Version 16 | 3 | # Visual Studio Version 16 |
| 4 | VisualStudioVersion = 16.0.30711.63 | 4 | VisualStudioVersion = 16.0.30711.63 |
| 5 | MinimumVisualStudioVersion = 15.0.26124.0 | 5 | MinimumVisualStudioVersion = 15.0.26124.0 |
| 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dutil", "src\dutil\dutil.vcxproj", "{1244E671-F108-4334-BA52-8A7517F26ECD}" | 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dutil", "WixToolset.DUtil\dutil.vcxproj", "{1244E671-F108-4334-BA52-8A7517F26ECD}" |
| 7 | EndProject | 7 | EndProject |
| 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DUtilUnitTest", "src\test\DUtilUnitTest\DUtilUnitTest.vcxproj", "{AB7EE608-E5FB-42A5-831F-0DEEEA141223}" | 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DUtilUnitTest", "test\DUtilUnitTest\DUtilUnitTest.vcxproj", "{AB7EE608-E5FB-42A5-831F-0DEEEA141223}" |
| 9 | EndProject | 9 | EndProject |
| 10 | Global | 10 | Global |
| 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
diff --git a/src/libs/dutil/nuget.config b/src/libs/dutil/nuget.config deleted file mode 100644 index d5ef8952..00000000 --- a/src/libs/dutil/nuget.config +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <configuration> | ||
| 3 | <packageSources> | ||
| 4 | <clear /> | ||
| 5 | <add key="wixbuildtools" value="https://ci.appveyor.com/nuget/wixbuildtools" /> | ||
| 6 | <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
| 7 | </packageSources> | ||
| 8 | </configuration> \ No newline at end of file | ||
diff --git a/src/libs/dutil/test/DUtilUnitTest/DUtilUnitTest.vcxproj b/src/libs/dutil/test/DUtilUnitTest/DUtilUnitTest.vcxproj index 18410e5d..cd8d16c4 100644 --- a/src/libs/dutil/test/DUtilUnitTest/DUtilUnitTest.vcxproj +++ b/src/libs/dutil/test/DUtilUnitTest/DUtilUnitTest.vcxproj | |||
| @@ -2,7 +2,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. --> | 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 | 3 | ||
| 4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 5 | <Import Project="..\..\..\packages\WixBuildTools.TestSupport.Native.4.0.47\build\WixBuildTools.TestSupport.Native.props" Condition="Exists('..\..\..\packages\WixBuildTools.TestSupport.Native.4.0.47\build\WixBuildTools.TestSupport.Native.props')" /> | 5 | <Import Project="..\..\..\..\internal\WixBuildTools.TestSupport.Native\build\WixBuildTools.TestSupport.Native.props" /> |
| 6 | |||
| 6 | <ItemGroup Label="ProjectConfigurations"> | 7 | <ItemGroup Label="ProjectConfigurations"> |
| 7 | <ProjectConfiguration Include="Debug|Win32"> | 8 | <ProjectConfiguration Include="Debug|Win32"> |
| 8 | <Configuration>Debug</Configuration> | 9 | <Configuration>Debug</Configuration> |
| @@ -29,7 +30,7 @@ | |||
| 29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 30 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 30 | 31 | ||
| 31 | <PropertyGroup> | 32 | <PropertyGroup> |
| 32 | <ProjectAdditionalIncludeDirectories>..\..\dutil\inc</ProjectAdditionalIncludeDirectories> | 33 | <ProjectAdditionalIncludeDirectories>..\..\WixToolset.DUtil\inc</ProjectAdditionalIncludeDirectories> |
| 33 | <ProjectAdditionalLinkLibraries>rpcrt4.lib;Mpr.lib;Ws2_32.lib;urlmon.lib;wininet.lib</ProjectAdditionalLinkLibraries> | 34 | <ProjectAdditionalLinkLibraries>rpcrt4.lib;Mpr.lib;Ws2_32.lib;urlmon.lib;wininet.lib</ProjectAdditionalLinkLibraries> |
| 34 | </PropertyGroup> | 35 | </PropertyGroup> |
| 35 | 36 | ||
| @@ -63,7 +64,6 @@ | |||
| 63 | </ItemGroup> | 64 | </ItemGroup> |
| 64 | 65 | ||
| 65 | <ItemGroup> | 66 | <ItemGroup> |
| 66 | <None Include="packages.config" /> | ||
| 67 | <ResourceCompile Include="UnitTest.rc" /> | 67 | <ResourceCompile Include="UnitTest.rc" /> |
| 68 | </ItemGroup> | 68 | </ItemGroup> |
| 69 | 69 | ||
| @@ -72,28 +72,11 @@ | |||
| 72 | </ItemGroup> | 72 | </ItemGroup> |
| 73 | 73 | ||
| 74 | <ItemGroup> | 74 | <ItemGroup> |
| 75 | <Reference Include="System" /> | 75 | <ProjectReference Include="..\..\WixToolset.DUtil\dutil.vcxproj"> |
| 76 | <Reference Include="System.Core" /> | ||
| 77 | <Reference Include="WixBuildTools.TestSupport"> | ||
| 78 | <HintPath>..\..\..\packages\WixBuildTools.TestSupport.4.0.47\lib\net472\WixBuildTools.TestSupport.dll</HintPath> | ||
| 79 | </Reference> | ||
| 80 | <Reference Include="WixBuildTools.TestSupport.Native"> | ||
| 81 | <HintPath>..\..\..\packages\WixBuildTools.TestSupport.Native.4.0.47\lib\net472\WixBuildTools.TestSupport.Native.dll</HintPath> | ||
| 82 | </Reference> | ||
| 83 | </ItemGroup> | ||
| 84 | |||
| 85 | <ItemGroup> | ||
| 86 | <ProjectReference Include="..\..\dutil\dutil.vcxproj"> | ||
| 87 | <Project>{1244E671-F108-4334-BA52-8A7517F26ECD}</Project> | 76 | <Project>{1244E671-F108-4334-BA52-8A7517F26ECD}</Project> |
| 88 | </ProjectReference> | 77 | </ProjectReference> |
| 89 | </ItemGroup> | 78 | </ItemGroup> |
| 79 | |||
| 90 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 80 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 91 | <Import Project="..\..\..\packages\WixBuildTools.TestSupport.Native.4.0.47\build\WixBuildTools.TestSupport.Native.targets" Condition="Exists('..\..\..\packages\WixBuildTools.TestSupport.Native.4.0.47\build\WixBuildTools.TestSupport.Native.targets')" /> | 81 | <Import Project="..\..\..\..\internal\WixBuildTools.TestSupport.Native\build\WixBuildTools.TestSupport.Native.targets" /> |
| 92 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 82 | </Project> |
| 93 | <PropertyGroup> | ||
| 94 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | ||
| 95 | </PropertyGroup> | ||
| 96 | <Error Condition="!Exists('..\..\..\packages\WixBuildTools.TestSupport.Native.4.0.47\build\WixBuildTools.TestSupport.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\WixBuildTools.TestSupport.Native.4.0.47\build\WixBuildTools.TestSupport.Native.props'))" /> | ||
| 97 | <Error Condition="!Exists('..\..\..\packages\WixBuildTools.TestSupport.Native.4.0.47\build\WixBuildTools.TestSupport.Native.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\..\packages\WixBuildTools.TestSupport.Native.4.0.47\build\WixBuildTools.TestSupport.Native.targets'))" /> | ||
| 98 | </Target> | ||
| 99 | </Project> \ No newline at end of file | ||
diff --git a/src/libs/dutil/test/DUtilUnitTest/packages.config b/src/libs/dutil/test/DUtilUnitTest/packages.config deleted file mode 100644 index a4fef2bf..00000000 --- a/src/libs/dutil/test/DUtilUnitTest/packages.config +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 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 | <packages> | ||
| 4 | <package id="xunit.abstractions" version="2.0.3" /> | ||
| 5 | <package id="xunit.assert" version="2.4.1" /> | ||
| 6 | <package id="xunit.core" version="2.4.1" /> | ||
| 7 | <package id="xunit.extensibility.core" version="2.4.1" /> | ||
| 8 | <package id="xunit.extensibility.execution" version="2.4.1" /> | ||
| 9 | <package id="xunit.runner.msbuild" version="2.4.1" /> | ||
| 10 | <package id="xunit.runner.visualstudio" version="2.4.1" /> | ||
| 11 | <package id="WixBuildTools.TestSupport" version="4.0.47" /> | ||
| 12 | <package id="WixBuildTools.TestSupport.Native" version="4.0.47" /> | ||
| 13 | </packages> \ No newline at end of file | ||
