Skip to content

Commit a2da42d

Browse files
committed
pr
1 parent 126f115 commit a2da42d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/BuildProps/Tests.Build.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
</PropertyGroup>
77

88
<PropertyGroup>
9-
<TargetFrameworks>net472;netcoreapp3.1;net6.0</TargetFrameworks>
9+
<TargetFrameworks>netcoreapp3.1;net6.0</TargetFrameworks>
10+
<TargetFrameworks Condition="'$(IsWindows)'=='true'">$(TargetFrameworks);net472</TargetFrameworks>
1011
<IsPackable>false</IsPackable>
1112
<SignAssembly>true</SignAssembly>
1213
<AssemblyOriginatorKeyFile>..\..\MongoDB.Driver.snk</AssemblyOriginatorKeyFile>

tests/SmokeTests/MongoDB.Driver.SmokeTests.Sdk/MongoDB.Driver.SmokeTests.Sdk.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<PackageReference Include="MongoDB.Driver.Encryption" Version="$(DRIVER_PACKAGE_VERSION)" Condition="'$(DRIVER_PACKAGE_VERSION)' != ''" />
1616
<ProjectReference Include="..\..\..\src\MongoDB.Driver\MongoDB.Driver.csproj" Condition="'$(DRIVER_PACKAGE_VERSION)' == ''" />
1717
<ProjectReference Include="..\..\..\src\MongoDB.Driver.Encryption\MongoDB.Driver.Encryption.csproj" Condition="'$(DRIVER_PACKAGE_VERSION)' == ''" />
18-
<ProjectReference Include="..\..\MongoDB.TestHelpers\MongoDB.TestHelpers.csproj" />
1918
</ItemGroup>
2019

2120
<ItemGroup>

tests/SmokeTests/MongoDB.Driver.SmokeTests.Sdk/ValidatePackagesVersionTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ public class ValidatePackagesVersionTests
2929
public ValidatePackagesVersionTests()
3030
{
3131
_packageVersion = Environment.GetEnvironmentVariable("DRIVER_PACKAGE_VERSION");
32-
33-
if (string.IsNullOrEmpty(_packageVersion))
34-
{
35-
throw new SkipException("Packages version validation skipped if project references is being used.");
36-
}
3732
}
3833

3934
[Fact]
@@ -46,6 +41,11 @@ public void ValidateEncryptionPackageVersion() =>
4641

4742
private static void ValidateAssemblyInformationalVersion(Assembly assembly, string expectedVersion)
4843
{
44+
if (string.IsNullOrEmpty(expectedVersion))
45+
{
46+
return;
47+
}
48+
4949
var assemblyInformationAttribute = assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>();
5050
assemblyInformationAttribute.Should().NotBeNull();
5151
assemblyInformationAttribute.InformationalVersion.Should().StartWith(expectedVersion);

0 commit comments

Comments
 (0)