File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -126,22 +126,34 @@ Task("Test")
126
126
Console . WriteLine ( $ "TEST_WITH_DEFAULT_GUID_REPRESENTATION={ testWithDefaultGuidRepresentation } ") ;
127
127
}
128
128
129
+ var settings = new DotNetCoreTestSettings
130
+ {
131
+ NoBuild = true ,
132
+ NoRestore = true ,
133
+ Configuration = configuration ,
134
+ ArgumentCustomization = args => args . Append ( "-- RunConfiguration.TargetPlatform=x64" )
135
+ } ;
136
+ switch ( target . ToLowerInvariant ( ) )
137
+ {
138
+ case "testnet452" : settings . Framework = "net452" ; break ;
139
+ case "testnetstandard15" : settings . Framework = "netcoreapp1.1" ; break ;
140
+ case "testnetstandard20" : settings . Framework = "netcoreapp2.1" ; break ;
141
+ }
129
142
DotNetCoreTest (
130
143
testProject . FullPath ,
131
- new DotNetCoreTestSettings {
132
- NoBuild = true ,
133
- NoRestore = true ,
134
- Configuration = configuration ,
135
- ArgumentCustomization = args => args . Append ( "-- RunConfiguration.TargetPlatform=x64" )
136
- }
144
+ settings
137
145
) ;
138
146
} ) ;
139
147
148
+ Task ( "TestNet452" ) . IsDependentOn ( "Test" ) ;
149
+ Task ( "TestNetStandard15" ) . IsDependentOn ( "Test" ) ;
150
+ Task ( "TestNetStandard20" ) . IsDependentOn ( "Test" ) ;
151
+
140
152
Task ( "TestAwsAuthentication" )
141
153
. IsDependentOn ( "Build" )
142
154
. DoesForEach (
143
155
GetFiles ( "./**/MongoDB.Driver.Tests.csproj" ) ,
144
- testProject =>
156
+ testProject =>
145
157
{
146
158
DotNetCoreTest (
147
159
testProject . FullPath ,
You can’t perform that action at this time.
0 commit comments