@@ -150,7 +150,8 @@ Task("BuildProjects")
150
150
Information ( "\n Building Solution" ) ;
151
151
var buildSettings = new MSBuildSettings
152
152
{
153
- MaxCpuCount = 0
153
+ MaxCpuCount = 0 ,
154
+ PlatformTarget = PlatformTarget . MSIL
154
155
}
155
156
. SetConfiguration ( configuration )
156
157
. WithTarget ( "Restore" ) ;
@@ -162,7 +163,8 @@ Task("BuildProjects")
162
163
// Build once with normal dependency ordering
163
164
buildSettings = new MSBuildSettings
164
165
{
165
- MaxCpuCount = 0
166
+ MaxCpuCount = 0 ,
167
+ PlatformTarget = PlatformTarget . MSIL
166
168
}
167
169
. SetConfiguration ( configuration )
168
170
. WithTarget ( "Build" )
@@ -214,7 +216,8 @@ Task("Package")
214
216
// Invoke the pack target in the end
215
217
var buildSettings = new MSBuildSettings
216
218
{
217
- MaxCpuCount = 0
219
+ MaxCpuCount = 0 ,
220
+ PlatformTarget = PlatformTarget . MSIL
218
221
}
219
222
. SetConfiguration ( configuration )
220
223
. WithTarget ( "Pack" )
@@ -264,7 +267,7 @@ Task("Test")
264
267
NoBuild = true ,
265
268
Loggers = new [ ] { "trx;LogFilePrefix=VsTestResults" } ,
266
269
Verbosity = DotNetCoreVerbosity . Normal ,
267
- ArgumentCustomization = arg => arg . Append ( $ "-s { baseDir } /.runsettings") ,
270
+ ArgumentCustomization = arg => arg . Append ( $ "-s { baseDir } /.runsettings /p:Platform=AnyCPU ") ,
268
271
} ;
269
272
DotNetCoreTest ( file . FullPath , testSettings ) ;
270
273
} ) . DeferOnError ( ) ;
0 commit comments