Skip to content

Commit b986633

Browse files
authored
Fix MimeKitLite NuGet include (#989)
* Fix 500 * MimeKiteLite : fix NuGet include * .
1 parent 6aa7aac commit b986633

File tree

6 files changed

+58
-4
lines changed

6 files changed

+58
-4
lines changed

WireMock.Net Solution.sln

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WireMock.Net.Testcontainers
117117
EndProject
118118
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{0147029F-FA4A-44B3-B79A-3C3574054EE4}"
119119
EndProject
120-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultipartUploader", "tools\MultipartUploader\MultipartUploader.csproj", "{07C30227-ADEC-4BDE-8CDC-849D85A690BB}"
120+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MultipartUploader", "tools\MultipartUploader\MultipartUploader.csproj", "{07C30227-ADEC-4BDE-8CDC-849D85A690BB}"
121+
EndProject
122+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WireMock.Net.Console.NET7.UsingNuGet", "examples\WireMock.Net.Console.NET7.UsingNuGet\WireMock.Net.Console.NET7.UsingNuGet.csproj", "{941229D6-191B-4B5E-AC81-0905EBF4F19D}"
121123
EndProject
122124
Global
123125
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -285,6 +287,10 @@ Global
285287
{07C30227-ADEC-4BDE-8CDC-849D85A690BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
286288
{07C30227-ADEC-4BDE-8CDC-849D85A690BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
287289
{07C30227-ADEC-4BDE-8CDC-849D85A690BB}.Release|Any CPU.Build.0 = Release|Any CPU
290+
{941229D6-191B-4B5E-AC81-0905EBF4F19D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
291+
{941229D6-191B-4B5E-AC81-0905EBF4F19D}.Debug|Any CPU.Build.0 = Debug|Any CPU
292+
{941229D6-191B-4B5E-AC81-0905EBF4F19D}.Release|Any CPU.ActiveCfg = Release|Any CPU
293+
{941229D6-191B-4B5E-AC81-0905EBF4F19D}.Release|Any CPU.Build.0 = Release|Any CPU
288294
EndGlobalSection
289295
GlobalSection(SolutionProperties) = preSolution
290296
HideSolutionNode = FALSE
@@ -332,6 +338,7 @@ Global
332338
{12B016A5-9D8B-4EFE-96C2-CA51BE43367D} = {8F890C6F-9ACC-438D-928A-AD61CDA862F2}
333339
{56A38798-C48B-4A4A-B805-071E05C02CE1} = {985E0ADB-D4B4-473A-AA40-567E279B7946}
334340
{07C30227-ADEC-4BDE-8CDC-849D85A690BB} = {0147029F-FA4A-44B3-B79A-3C3574054EE4}
341+
{941229D6-191B-4B5E-AC81-0905EBF4F19D} = {985E0ADB-D4B4-473A-AA40-567E279B7946}
335342
EndGlobalSection
336343
GlobalSection(ExtensibilityGlobals) = postSolution
337344
SolutionGuid = {DC539027-9852-430C-B19F-FD035D018458}

examples/WireMock.Net.Console.NET6/WireMock.Net.Console.NET6.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<ProjectReference Include="..\..\src\WireMock.Net\WireMock.Net.csproj" />
3131
<PackageReference Include="log4net" Version="2.0.15" />
3232
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.0" />
33-
<PackageReference Include="MimeKitLite" Version="4.1.0.1" />
3433
</ItemGroup>
3534

3635
<ItemGroup>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System.Net;
2+
using System.Text;
3+
using FluentAssertions;
4+
using WireMock.Logging;
5+
using WireMock.RequestBuilders;
6+
using WireMock.ResponseBuilders;
7+
using WireMock.Server;
8+
using WireMock.Settings;
9+
10+
namespace WireMock.Net.Console.NET7.UsingNuGet;
11+
12+
internal class Program
13+
{
14+
private static async Task Main(string[] args)
15+
{
16+
var server = WireMockServer.Start(new WireMockServerSettings
17+
{
18+
Logger = new WireMockConsoleLogger(),
19+
});
20+
21+
server.Given(Request.Create().UsingPost().WithPath("/some/endpoint"))
22+
.RespondWith(Response.Create().WithStatusCode(HttpStatusCode.Created));
23+
24+
var httpClient = new HttpClient { BaseAddress = new Uri(server.Url!) };
25+
var requestUri = new Uri(httpClient.BaseAddress!, "some/endpoint");
26+
var content = new StringContent(string.Empty, Encoding.UTF8, "application/json");
27+
28+
// Act
29+
var actual = await httpClient.PostAsync(requestUri, content);
30+
31+
// Assert
32+
actual.StatusCode.Should().Be(HttpStatusCode.Created);
33+
}
34+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net7.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="FluentAssertions" Version="6.11.0" />
12+
<PackageReference Include="WireMock.Net" Version="1.5.32" />
13+
</ItemGroup>
14+
15+
</Project>

src/WireMock.Net/WireMock.Net.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
<ItemGroup Condition="'$(TargetFramework)' != 'netstandard1.3' and '$(TargetFramework)' != 'net451' and '$(TargetFramework)' != 'net452' and '$(TargetFramework)' != 'net46' and '$(TargetFramework)' != 'net461'">
162162
<PackageReference Include="GraphQL" Version="7.5.0" />
163163
<PackageReference Include="GraphQL.NewtonsoftJson" Version="7.5.0" />
164-
<PackageReference Include="MimeKitLite" Version="4.1.0.1" PrivateAssets="all" />
164+
<PackageReference Include="MimeKitLite" Version="4.1.0.1" />
165165
</ItemGroup>
166166

167167
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">

test/WireMock.Net.Tests/WireMock.Net.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
9696
</PackageReference>
9797
<PackageReference Include="Verify.Xunit" Version="19.6.0" />
98-
<PackageReference Include="MimeKitLite" Version="4.1.0.1" PrivateAssets="all" />
9998
</ItemGroup>
10099

101100
<ItemGroup Condition="'$(TargetFramework)' != 'net452'">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy