diff options
Diffstat (limited to 'src/ext/Http')
-rw-r--r-- | src/ext/Http/http.cmd | 21 | ||||
-rw-r--r-- | src/ext/Http/http_t.proj | 17 | ||||
-rw-r--r-- | src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs | 11 | ||||
-rw-r--r-- | src/ext/Http/test/WixToolsetTest.Http/WixToolsetTest.Http.csproj | 7 |
4 files changed, 27 insertions, 29 deletions
diff --git a/src/ext/Http/http.cmd b/src/ext/Http/http.cmd deleted file mode 100644 index afcffb24..00000000 --- a/src/ext/Http/http.cmd +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | @setlocal | ||
2 | @pushd %~dp0 | ||
3 | |||
4 | @set _C=Debug | ||
5 | :parse_args | ||
6 | @if /i "%1"=="release" set _C=Release | ||
7 | @if not "%1"=="" shift & goto parse_args | ||
8 | |||
9 | @echo Http.wixext build %_C% | ||
10 | |||
11 | :: Build | ||
12 | msbuild -Restore -p:Configuration=%_C% -tl -nologo -warnaserror || exit /b | ||
13 | |||
14 | :: Test | ||
15 | dotnet test -c %_C% --no-build test\WixToolsetTest.Http || exit /b | ||
16 | |||
17 | :: Pack | ||
18 | msbuild -t:Pack -p:Configuration=%_C% -tl -nologo -warnaserror -p:NoBuild=true wixext\WixToolset.Http.wixext.csproj || exit /b | ||
19 | |||
20 | @popd | ||
21 | @endlocal | ||
diff --git a/src/ext/Http/http_t.proj b/src/ext/Http/http_t.proj new file mode 100644 index 00000000..8cd9c7d4 --- /dev/null +++ b/src/ext/Http/http_t.proj | |||
@@ -0,0 +1,17 @@ | |||
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 Sdk="Microsoft.Build.Traversal"> | ||
5 | <ItemGroup> | ||
6 | <ProjectReference Include="test\WixToolsetTest.Http\WixToolsetTest.Http.csproj" /> | ||
7 | <ProjectReference Include="wixext\WixToolset.Http.wixext.csproj" Targets="Pack" Properties="NoBuild=true" /> | ||
8 | </ItemGroup> | ||
9 | |||
10 | <Target Name="WixClean" BeforeTargets="Restore" Condition="'$(SuppressWixClean)' != 'true'"> | ||
11 | <RemoveDir Directories="$(RootBuildFolder)http.wixext" /> | ||
12 | <RemoveDir Directories="$(USERPROFILE)\.nuget\packages\wixtoolset.http.wixext" Condition="'$(NUGET_PACKAGES)' == ''" /> | ||
13 | <RemoveDir Directories="$(NUGET_PACKAGES)\wixtoolset.http.wixext" Condition="'$(NUGET_PACKAGES)' != ''" /> | ||
14 | |||
15 | <Delete Files="$(ArtifactsFolder)WixToolset.Http.wixext.*.nupkg" /> | ||
16 | </Target> | ||
17 | </Project> | ||
diff --git a/src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs b/src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs index ffd698f5..c91ce937 100644 --- a/src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs +++ b/src/ext/Http/test/WixToolsetTest.Http/HttpExtensionFixture.cs | |||
@@ -2,14 +2,15 @@ | |||
2 | 2 | ||
3 | namespace WixToolsetTest.Http | 3 | namespace WixToolsetTest.Http |
4 | { | 4 | { |
5 | using WixInternal.TestSupport; | 5 | using Microsoft.VisualStudio.TestTools.UnitTesting; |
6 | using WixInternal.Core.TestPackage; | 6 | using WixInternal.MSTestSupport; |
7 | using WixInternal.Core.MSTestPackage; | ||
7 | using WixToolset.Http; | 8 | using WixToolset.Http; |
8 | using Xunit; | ||
9 | 9 | ||
10 | [TestClass] | ||
10 | public class HttpExtensionFixture | 11 | public class HttpExtensionFixture |
11 | { | 12 | { |
12 | [Fact] | 13 | [TestMethod] |
13 | public void CanBuildUsingSsl() | 14 | public void CanBuildUsingSsl() |
14 | { | 15 | { |
15 | var folder = TestData.Get("TestData", "Ssl"); | 16 | var folder = TestData.Get("TestData", "Ssl"); |
@@ -29,7 +30,7 @@ namespace WixToolsetTest.Http | |||
29 | }, results); | 30 | }, results); |
30 | } | 31 | } |
31 | 32 | ||
32 | [Fact] | 33 | [TestMethod] |
33 | public void CanBuildUsingUrlReservation() | 34 | public void CanBuildUsingUrlReservation() |
34 | { | 35 | { |
35 | var folder = TestData.Get(@"TestData\UsingUrlReservation"); | 36 | var folder = TestData.Get(@"TestData\UsingUrlReservation"); |
diff --git a/src/ext/Http/test/WixToolsetTest.Http/WixToolsetTest.Http.csproj b/src/ext/Http/test/WixToolsetTest.Http/WixToolsetTest.Http.csproj index b23ef481..d5e6c929 100644 --- a/src/ext/Http/test/WixToolsetTest.Http/WixToolsetTest.Http.csproj +++ b/src/ext/Http/test/WixToolsetTest.Http/WixToolsetTest.Http.csproj | |||
@@ -1,10 +1,10 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 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. --> | 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 Sdk="Microsoft.NET.Sdk"> | 4 | <Project Sdk="MSTest.Sdk"> |
5 | <PropertyGroup> | 5 | <PropertyGroup> |
6 | <TargetFramework>net6.0</TargetFramework> | 6 | <TargetFramework>net6.0</TargetFramework> |
7 | <IsWixTestProject>true</IsWixTestProject> | 7 | <IsWixMSTestProject>true</IsWixMSTestProject> |
8 | </PropertyGroup> | 8 | </PropertyGroup> |
9 | 9 | ||
10 | <ItemGroup> | 10 | <ItemGroup> |
@@ -16,6 +16,7 @@ | |||
16 | </ItemGroup> | 16 | </ItemGroup> |
17 | 17 | ||
18 | <ItemGroup> | 18 | <ItemGroup> |
19 | <PackageReference Include="WixInternal.Core.TestPackage" /> | 19 | <PackageReference Include="WixInternal.MSTestSupport" /> |
20 | <PackageReference Include="WixInternal.Core.MSTestPackage" /> | ||
20 | </ItemGroup> | 21 | </ItemGroup> |
21 | </Project> | 22 | </Project> |