diff options
author | Rob Mensching <rob@firegiant.com> | 2020-06-27 15:11:01 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2020-06-27 15:14:32 -0700 |
commit | c8481ac86c8b00b0b2085c2a3c8dc97f921d4003 (patch) | |
tree | e8371299f00c298f7a771142d4cf0f6baf37ebd9 | |
parent | 8661d3841198215a75367cfd4a3a6f705a801127 (diff) | |
download | wix-c8481ac86c8b00b0b2085c2a3c8dc97f921d4003.tar.gz wix-c8481ac86c8b00b0b2085c2a3c8dc97f921d4003.tar.bz2 wix-c8481ac86c8b00b0b2085c2a3c8dc97f921d4003.zip |
Build wixlib with WixToolset.Sdk
-rw-r--r-- | global.json | 5 | ||||
-rw-r--r-- | src/FindLocalWix.props | 8 | ||||
-rw-r--r-- | src/wixlib/iis.wixproj | 43 | ||||
-rw-r--r-- | src/wixlib/packages.config | 5 |
4 files changed, 13 insertions, 48 deletions
diff --git a/global.json b/global.json new file mode 100644 index 00000000..7a995d0a --- /dev/null +++ b/global.json | |||
@@ -0,0 +1,5 @@ | |||
1 | { | ||
2 | "msbuild-sdks": { | ||
3 | "WixToolset.Sdk": "4.0.0-build-0143" | ||
4 | } | ||
5 | } | ||
diff --git a/src/FindLocalWix.props b/src/FindLocalWix.props deleted file mode 100644 index 1666e4fe..00000000 --- a/src/FindLocalWix.props +++ /dev/null | |||
@@ -1,8 +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 xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
5 | <PropertyGroup> | ||
6 | <WixTargetsPath Condition=" '$(Configuration)' == 'Debug' And Exists('$(MSBuildThisFileDirectory)..\..\Tools\README.md') And Exists('$(MSBuildThisFileDirectory)..\..\Tools\build\Debug\net461\wix.targets') ">$(MSBuildThisFileDirectory)..\..\Tools\build\Debug\net461\wix.targets</WixTargetsPath> | ||
7 | </PropertyGroup> | ||
8 | </Project> | ||
diff --git a/src/wixlib/iis.wixproj b/src/wixlib/iis.wixproj index b41197ac..3ebfc2f4 100644 --- a/src/wixlib/iis.wixproj +++ b/src/wixlib/iis.wixproj | |||
@@ -1,45 +1,18 @@ | |||
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. --> | 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. --> |
3 | <Project DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="15.0"> | 2 | <Project Sdk="WixToolset.Sdk"> |
4 | <Import Project="..\..\packages\WixToolset.MSBuild.4.0.0-build-0102\build\WixToolset.MSBuild.props" Condition="Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0102\build\WixToolset.MSBuild.props')" /> | 3 | |
5 | <Import Project="..\FindLocalWix.props" /> | ||
6 | <PropertyGroup> | 4 | <PropertyGroup> |
7 | <ProjectGuid>{92FE99D2-355D-4F52-A7C1-10EECB4A5BB1}</ProjectGuid> | ||
8 | <OutputName>iis</OutputName> | ||
9 | <OutputType>Library</OutputType> | 5 | <OutputType>Library</OutputType> |
10 | <BindFiles>true</BindFiles> | 6 | <BindFiles>true</BindFiles> |
11 | <Pedantic>true</Pedantic> | ||
12 | <Cultures>en-us</Cultures> | 7 | <Cultures>en-us</Cultures> |
13 | </PropertyGroup> | 8 | </PropertyGroup> |
9 | |||
14 | <ItemGroup> | 10 | <ItemGroup> |
15 | <Compile Include="IIsExtension.wxs" /> | 11 | <ProjectReference Include="..\ca\iisca.vcxproj" /> |
16 | <Compile Include="IIsExtension_x86.wxs" /> | ||
17 | <EmbeddedResource Include="en-us.wxl" /> | ||
18 | <EmbeddedResource Include="de-de.wxl" /> | ||
19 | <EmbeddedResource Include="ja-jp.wxl" /> | ||
20 | <EmbeddedResource Include="pt-br.wxl" /> | ||
21 | </ItemGroup> | 12 | </ItemGroup> |
13 | |||
22 | <ItemGroup> | 14 | <ItemGroup> |
23 | <None Include="IIsExtension_Platform.wxi" /> | 15 | <PackageReference Include="Nerdbank.GitVersioning" Version="2.1.65" PrivateAssets="All" /> |
24 | <None Include="packages.config" /> | ||
25 | </ItemGroup> | 16 | </ItemGroup> |
26 | <ItemGroup> | 17 | |
27 | <ProjectReference Include="..\ca\iisca.vcxproj"> | 18 | </Project> |
28 | <Name>iisca</Name> | ||
29 | <Project>{CB3FB8C4-14BF-4EA6-9F01-7FB258E5AEF3}</Project> | ||
30 | </ProjectReference> | ||
31 | </ItemGroup> | ||
32 | <Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' AND Exists('$(WixTargetsPath)') " /> | ||
33 | <Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\wix.targets') " /> | ||
34 | <Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' "> | ||
35 | <Error Text="WiX Toolset build tools (v4.0 or later) must be installed to build this project. To download the WiX Toolset, go to http://wixtoolset.org/releases/." /> | ||
36 | </Target> | ||
37 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||
38 | <PropertyGroup> | ||
39 | <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> | ||
40 | </PropertyGroup> | ||
41 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> | ||
42 | <Error Condition="!Exists('..\..\packages\WixToolset.MSBuild.4.0.0-build-0102\build\WixToolset.MSBuild.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.MSBuild.4.0.0-build-0102\build\WixToolset.MSBuild.props'))" /> | ||
43 | </Target> | ||
44 | <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" /> | ||
45 | </Project> \ No newline at end of file | ||
diff --git a/src/wixlib/packages.config b/src/wixlib/packages.config deleted file mode 100644 index 8db41667..00000000 --- a/src/wixlib/packages.config +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <packages> | ||
3 | <package id="Nerdbank.GitVersioning" version="2.1.65" developmentDependency="true" targetFramework="net40" /> | ||
4 | <package id="WixToolset.MSBuild" version="4.0.0-build-0102" developmentDependency="true" targetFramework="net40" /> | ||
5 | </packages> \ No newline at end of file | ||