Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
<ManualTests Include="**/tools/TDS/TDS.EndPoint/TDS.EndPoint.csproj" />
<ManualTests Include="**/tools/TDS/TDS.Servers/TDS.Servers.csproj" />
<ManualTests Include="**/CustomConfigurableRetryLogic/CustomRetryLogicProvider.csproj" />
<ManualTests Include="**/ManualTests/Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" />
<ManualTestsProj Include="**/ManualTests/Microsoft.Data.SqlClient.ManualTesting.Tests.csproj" />
<ManualTests Include="**/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" />
<ManualTestsProj Include="**/ManualTests/Microsoft.Data.SqlClient.ManualTests.csproj" />
Comment thread
benrr101 marked this conversation as resolved.
</ItemGroup>

<!-- Top Level Build targets -->
Expand Down Expand Up @@ -196,7 +196,7 @@
</Target>

<Target Name="RestoreNetCore" DependsOnTargets="RestoreSqlServerLib;RestoreAbstractions">
<MSBuild Projects="@(NetCoreDriver)" Targets="restore" Properties="$(ProjectProperties)" />

Check failure on line 199 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql19 net8_0_AnyCPU_NativeSNI_1)

build.proj#L199

build.proj(199,5): Error MSB3202: The project file "src\Microsoft.Data.SqlClient\netcore\src\Microsoft.Data.SqlClient.csproj" was not found.

Check failure on line 199 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql19 net462_AnyCPU_2)

build.proj#L199

build.proj(199,5): Error MSB3202: The project file "src\Microsoft.Data.SqlClient\netcore\src\Microsoft.Data.SqlClient.csproj" was not found.

Check failure on line 199 in build.proj

View check run for this annotation

Azure Pipelines / PR-SqlClient-Project (Win22_Sql19 net462_AnyCPU_1)

build.proj#L199

build.proj(199,5): Error MSB3202: The project file "src\Microsoft.Data.SqlClient\netcore\src\Microsoft.Data.SqlClient.csproj" was not found.
</Target>

<Target Name="RestoreTestsNetCore" DependsOnTargets="RestoreNetCore">
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Data.SqlClient.sln
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Address", "Microsoft.Data.S
{407890AC-9876-4FEF-A6F1-F36A876BAADE} = {407890AC-9876-4FEF-A6F1-F36A876BAADE}
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Data.SqlClient.ManualTesting.Tests", "Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj", "{45DB5F86-7AE3-45C6-870D-F9357B66BDB5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Data.SqlClient.ManualTests", "Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTests.csproj", "{45DB5F86-7AE3-45C6-870D-F9357B66BDB5}"
ProjectSection(ProjectDependencies) = postProject
{37431336-5307-4184-9356-C4B7E47DC714} = {37431336-5307-4184-9356-C4B7E47DC714}
EndProjectSection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,31 @@
</PropertyGroup>

<!-- Links to internal project files ================================= -->
<!-- @TODO: These should be removed -->
<ItemGroup>
<!-- @TODO: These should be removed -->
<!-- These files are links to internal classes in the MDS project that a collection of -->
<!-- tests directly test. Since InternalsVisibleTo doesn't work with ManualTests (not sure -->
<!-- why, to be honest), the only way to test them within this project is to directly -->
<!-- compile them as part of this project. This is not ideal in the slightest, and they -->
<!-- should ideally be UnitTests if they need to access internals. But detangling these -->
<!-- tests is far beyond the scope of the common project, so it is left as a TODO for now. -->
<Compile Include="$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft/Data/Common/MultipartIdentifier.cs" />
<Compile Include="$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Packet.cs" />
<Compile Include="$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserStateObject.Multiplexer.cs" />
</ItemGroup>

<!-- Embedded resources and content files =========================== -->
<ItemGroup>
<!-- This file sets some configuration setting that only apply to netfx. It cannot #if -->
<!-- included into the project, so it must be included via a condition attribute. -->
<!-- This file sets some configuration setting that only apply to netfx. It cannot be #if -->
<!-- included into the project, so it must be included via a condition attribute. -->
<None Update="app.config" Condition="'$(TargetFramework)' == 'net462'">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>

<ContentWithTargetPath Include="$(TestsPath)tools/Microsoft.Data.SqlClient.TestUtilities/xunit.runner.json">
<Content Include="$(TestsPath)tools/Microsoft.Data.SqlClient.TestUtilities/xunit.runner.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>xunit.runner.json</TargetPath>
</ContentWithTargetPath>
</Content>
</ItemGroup>

<!-- References ====================================================== -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

// TODO: These tests are marked as Windows only for now but should be run for all platforms once the Master Key is accessible to this app from Azure Key Vault.
#if _WINDOWS

using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand All @@ -19,12 +22,7 @@ namespace Microsoft.Data.SqlClient.ManualTesting.Tests.AlwaysEncrypted
{
/// <summary>
/// Always Encrypted public CspProvider Manual tests.
/// TODO: These tests are marked as Windows only for now but should be run for all platforms once the Master Key is accessible to this app from Azure Key Vault.
/// </summary>
#if !NETFRAMEWORK
[SupportedOSPlatform("windows")]
#endif
[PlatformSpecific(TestPlatforms.Windows)]
public class CspProviderExt
{
// [Fact(Skip="Run this in non-parallel mode")] or [ConditionalFact()]
Expand Down Expand Up @@ -142,3 +140,5 @@ private void ValidateResultSet(SqlDataReader sqlDataReader)
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if NET

using System;
using System.Collections;
using System.Collections.Generic;
Expand Down Expand Up @@ -91,3 +93,5 @@ public IEnumerator<object[]> GetEnumerator()
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
#if _WINDOWS

using System.Security.Cryptography.X509Certificates;

namespace Microsoft.Data.SqlClient.ManualTesting.Tests.AlwaysEncrypted.Setup
Expand All @@ -29,3 +30,5 @@ public CspProviderColumnMasterKey(string name, string providerName, string cspKe

}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.using System;

#if _WINDOWS
Comment thread
benrr101 marked this conversation as resolved.
Outdated

using System;
using System.Collections.Generic;
using System.Security.Cryptography;
Expand Down Expand Up @@ -75,3 +77,5 @@ protected override void Dispose(bool disposing)
}
}
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void XmlTest()
SqlCommand cmd2 = new SqlCommand(insertParamStr, conn);

cmd2.Parameters.Add("@x", SqlDbType.Xml);
XmlReader xr = XmlReader.Create("data.xml");
XmlReader xr = XmlReader.Create("DDDataTypesTest_Data.xml");
Comment thread
benrr101 marked this conversation as resolved.
cmd2.Parameters[0].Value = new SqlXml(xr);
cmd2.ExecuteNonQuery();
Comment thread
benrr101 marked this conversation as resolved.

Expand Down
Loading
Loading