diff options
author | Rob Mensching <rob@firegiant.com> | 2021-12-19 12:09:04 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-12-30 12:51:23 -0800 |
commit | 0aee408e0b07b92d90ede67800616f7f278a3dc4 (patch) | |
tree | 33eba852b65ba11392898bc3f2f4114b12964e01 /src/ext/ComPlus | |
parent | 91259637be1eccd149093eb49c7ff68826d1d331 (diff) | |
download | wix-0aee408e0b07b92d90ede67800616f7f278a3dc4.tar.gz wix-0aee408e0b07b92d90ede67800616f7f278a3dc4.tar.bz2 wix-0aee408e0b07b92d90ede67800616f7f278a3dc4.zip |
Simplify and normalize ext projects
Now that wix.targets is more compatible with MS.Common.targets
the extension projects can be simplified. Also made their project
files more consistent with each other.
Diffstat (limited to 'src/ext/ComPlus')
-rw-r--r-- | src/ext/ComPlus/complus.cmd | 17 | ||||
-rw-r--r-- | src/ext/ComPlus/wixext/WixToolset.ComPlus.wixext.csproj | 8 |
2 files changed, 11 insertions, 14 deletions
diff --git a/src/ext/ComPlus/complus.cmd b/src/ext/ComPlus/complus.cmd index bea27765..67e55339 100644 --- a/src/ext/ComPlus/complus.cmd +++ b/src/ext/ComPlus/complus.cmd | |||
@@ -1,22 +1,21 @@ | |||
1 | @setlocal | 1 | @setlocal |
2 | @pushd %~dp0 | 2 | @pushd %~dp0 |
3 | @set _C=Release | ||
4 | @if /i "%1"=="debug" set _C=Debug | ||
5 | 3 | ||
6 | :: Restore | 4 | @set _C=Debug |
7 | msbuild -p:Configuration=%_C% -t:Restore || exit /b | 5 | :parse_args |
6 | @if /i "%1"=="release" set _C=Release | ||
7 | @if not "%1"=="" shift & goto parse_args | ||
8 | 8 | ||
9 | :: Build | 9 | @echo ComPlus.wixext build %_C% |
10 | ::msbuild -p:Configuration=%_C% -p:Platform=Win32 ca\complusca.vcxproj || exit /b | ||
11 | ::msbuild -p:Configuration=%_C% -p:Platform=x64 ca\complusca.vcxproj || exit /b | ||
12 | 10 | ||
13 | msbuild -p:Configuration=%_C% test\WixToolsetTest.ComPlus\WixToolsetTest.ComPlus.csproj || exit /b | 11 | :: Build |
12 | msbuild -Restore -p:Configuration=%_C% || exit /b | ||
14 | 13 | ||
15 | :: Test | 14 | :: Test |
16 | dotnet test -c %_C% --no-build test\WixToolsetTest.ComPlus || exit /b | 15 | dotnet test -c %_C% --no-build test\WixToolsetTest.ComPlus || exit /b |
17 | 16 | ||
18 | :: Pack | 17 | :: Pack |
19 | msbuild -p:Configuration=%_C% -p:NoBuild=true -t:Pack wixext\WixToolset.ComPlus.wixext.csproj || exit /b | 18 | msbuild -t:Pack -p:Configuration=%_C% -p:NoBuild=true wixext\WixToolset.ComPlus.wixext.csproj || exit /b |
20 | 19 | ||
21 | @popd | 20 | @popd |
22 | @endlocal \ No newline at end of file | 21 | @endlocal \ No newline at end of file |
diff --git a/src/ext/ComPlus/wixext/WixToolset.ComPlus.wixext.csproj b/src/ext/ComPlus/wixext/WixToolset.ComPlus.wixext.csproj index 806977b2..57db47a5 100644 --- a/src/ext/ComPlus/wixext/WixToolset.ComPlus.wixext.csproj +++ b/src/ext/ComPlus/wixext/WixToolset.ComPlus.wixext.csproj | |||
@@ -4,11 +4,10 @@ | |||
4 | <Project Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="Microsoft.NET.Sdk"> |
5 | <PropertyGroup> | 5 | <PropertyGroup> |
6 | <TargetFramework>netstandard2.0</TargetFramework> | 6 | <TargetFramework>netstandard2.0</TargetFramework> |
7 | <DebugType>embedded</DebugType> | ||
8 | <RootNamespace>WixToolset.ComPlus</RootNamespace> | 7 | <RootNamespace>WixToolset.ComPlus</RootNamespace> |
9 | <Description>WiX Toolset ComPlus Extension</Description> | 8 | <Description>WiX Toolset ComPlus Extension</Description> |
10 | <Title>WiX Toolset ComPlus Extension</Title> | 9 | <Title>WiX Toolset ComPlus Extension</Title> |
11 | <IsTool>true</IsTool> | 10 | <DebugType>embedded</DebugType> |
12 | <IncludeSymbols>true</IncludeSymbols> | 11 | <IncludeSymbols>true</IncludeSymbols> |
13 | </PropertyGroup> | 12 | </PropertyGroup> |
14 | 13 | ||
@@ -16,12 +15,11 @@ | |||
16 | <EmbeddedResource Include="$(OutputPath)..\complus.wixlib" /> | 15 | <EmbeddedResource Include="$(OutputPath)..\complus.wixlib" /> |
17 | </ItemGroup> | 16 | </ItemGroup> |
18 | 17 | ||
19 | <ItemGroup> | 18 | <ItemGroup Condition=" '$(NCrunch)'=='' "> |
20 | <ProjectReference Include="..\wixlib\complus.wixproj" ReferenceOutputAssembly="false" Condition=" '$(NCrunch)'=='' " /> | 19 | <ProjectReference Include="..\wixlib\complus.wixproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" /> |
21 | </ItemGroup> | 20 | </ItemGroup> |
22 | 21 | ||
23 | <ItemGroup> | 22 | <ItemGroup> |
24 | <PackageReference Include="WixToolset.Data" PrivateAssets="all" /> | ||
25 | <PackageReference Include="WixToolset.Extensibility" PrivateAssets="all" /> | 23 | <PackageReference Include="WixToolset.Extensibility" PrivateAssets="all" /> |
26 | </ItemGroup> | 24 | </ItemGroup> |
27 | </Project> | 25 | </Project> |