File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
SmokeTests/MongoDB.Driver.SmokeTests.Sdk Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments