Skip to content

Commit 9d4110a

Browse files
committed
still working on v1.8
1 parent 38780c6 commit 9d4110a

File tree

5 files changed

+16
-20
lines changed

5 files changed

+16
-20
lines changed

src/Unearth.Common/Unearth.Common.csproj

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,6 @@
77
<Version>1.7.2.1020</Version>
88
</PropertyGroup>
99

10-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
11-
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
12-
</PropertyGroup>
13-
14-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
15-
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
16-
</PropertyGroup>
17-
18-
<ItemGroup>
19-
<Compile Remove="DnsQuery.cs" />
20-
<Compile Remove="DnsQueryAsync.cs" />
21-
</ItemGroup>
22-
2310
<ItemGroup>
2411
<ProjectReference Include="..\Unearth.Core\Unearth.Core.csproj" />
2512
</ItemGroup>

src/Unearth.Core/Dns/Linux/LDnsQuery.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Runtime.InteropServices;
66
using System.Threading.Tasks;
77

8-
#if (NETSTANDARD2_0)
98
namespace Unearth.Dns.Linux
109
{
1110
internal class LDnsQuery : IDnsQuery
@@ -253,4 +252,3 @@ public LDnsHeader(LDnsReader reader)
253252
public UInt16 DataLen { get; }
254253
}
255254
}
256-
#endif

src/Unearth.Core/StringValues.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Collections.Generic;
44
// ReSharper disable All
55

6-
#if (! NETSTANDARD2_0)
76
namespace Unearth
87
{
98
/// <summary>
@@ -456,5 +455,4 @@ void IDisposable.Dispose()
456455
namespace Microsoft.Extensions.Primitives
457456
{
458457
// This prevents compile errors - don't delete it in the NetFX project
459-
}
460-
#endif
458+
}

src/Unearth.Core/Unearth.Core.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@
77
<Version>1.7.2.1020</Version>
88
</PropertyGroup>
99

10+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0'">
11+
<Compile Remove="StringValues.cs" />
12+
</ItemGroup>
13+
14+
<ItemGroup Condition=" '$(TargetFramework)' == 'net47'">
15+
<Compile Remove="Dns\Linux\LDnsQuery.cs" />
16+
</ItemGroup>
17+
1018
<ItemGroup>
1119
<PackageReference Include="Microsoft.Extensions.Primitives" Version="2.0.0" />
1220
</ItemGroup>
1321

22+
<ItemGroup>
23+
<Folder Include="Dns\Linux\" />
24+
</ItemGroup>
25+
1426
</Project>

test/UnitTests/DatabaseTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public async Task SqlDatabase_Test()
1515
var locator = new DatabaseLocator(); // {ServiceDomain = "kmb.home"};
1616
Console.WriteLine("Testing in {0}", locator.ServiceDomain);
1717

18-
DatabaseService svc = await locator.Locate("onumbers-db", DatabaseProtocol.Sql);
18+
DatabaseService svc = await locator.Locate("fluf-workflow-db", DatabaseProtocol.Sql);
1919
Assert.IsNotNull(svc);
2020

2121
string[] connArray = svc.ConnectionStrings.ToArray();
@@ -25,7 +25,8 @@ public async Task SqlDatabase_Test()
2525
Console.WriteLine(s);
2626

2727
Assert.AreEqual(
28-
"Server=tcp:dilbert7.kmb.home,1433;Database=Onumbers;Integrated Security=SSPI;",
28+
"Server=tcp:vrdworkflow01.rnd.ipzo.net,1433;Database=WorkflowConfig;User ID=fluf_app;Password=Password1!;",
29+
//"Server=tcp:dilbert7.kmb.home,1433;Database=Onumbers;Integrated Security=SSPI;",
2930
//"Server=tcp:vrdlfadb01.rnd.ipzo.net,1433;Database=Onumbers;User ID=sa;Password=C4bb4g5;Applicaiton Name=kellyb;",
3031
connArray[0]
3132
);

0 commit comments

Comments
 (0)