@@ -56,11 +56,11 @@ public void It_builds_with_disable_implicit_frameworkRefs()
56
56
57
57
void VerifyProjectsBuild ( TestAsset testAsset , params string [ ] buildArgs )
58
58
{
59
- VerifyBuild ( testAsset , "StopwatchLib" , "net45" , buildArgs ,
59
+ VerifyBuild ( testAsset , "StopwatchLib" , "net45" , "" , buildArgs ,
60
60
"StopwatchLib.dll" ,
61
61
"StopwatchLib.pdb" ) ;
62
62
63
- VerifyBuild ( testAsset , "EntityFrameworkApp" , "net451" , buildArgs ,
63
+ VerifyBuild ( testAsset , "EntityFrameworkApp" , "net451" , "win7-x86" , buildArgs ,
64
64
"EntityFrameworkApp.exe" ,
65
65
"EntityFrameworkApp.pdb" ,
66
66
"EntityFrameworkApp.runtimeconfig.dev.json" ,
@@ -69,7 +69,7 @@ void VerifyProjectsBuild(TestAsset testAsset, params string[] buildArgs)
69
69
// Try running EntityFrameworkApp.exe
70
70
var appProjectDirectory = Path . Combine ( testAsset . TestRoot , "EntityFrameworkApp" ) ;
71
71
var buildCommand = new BuildCommand ( Stage0MSBuild , appProjectDirectory ) ;
72
- var outputDirectory = buildCommand . GetOutputDirectory ( "net451" ) ;
72
+ var outputDirectory = buildCommand . GetOutputDirectory ( "net451" , runtimeIdentifier : "win7-x86" ) ;
73
73
74
74
Command . Create ( Path . Combine ( outputDirectory . FullName , "EntityFrameworkApp.exe" ) , Enumerable . Empty < string > ( ) )
75
75
. CaptureStdOut ( )
@@ -80,14 +80,14 @@ void VerifyProjectsBuild(TestAsset testAsset, params string[] buildArgs)
80
80
. HaveStdOutContaining ( "Required Test Provider" ) ;
81
81
}
82
82
83
- private void VerifyBuild ( TestAsset testAsset , string project , string targetFramework ,
83
+ private void VerifyBuild ( TestAsset testAsset , string project , string targetFramework , string runtimeIdentifier ,
84
84
string [ ] buildArgs ,
85
85
params string [ ] expectedFiles )
86
86
{
87
87
var appProjectDirectory = Path . Combine ( testAsset . TestRoot , project ) ;
88
88
89
89
var buildCommand = new BuildCommand ( Stage0MSBuild , appProjectDirectory ) ;
90
- var outputDirectory = buildCommand . GetOutputDirectory ( targetFramework ) ;
90
+ var outputDirectory = buildCommand . GetOutputDirectory ( targetFramework , runtimeIdentifier : runtimeIdentifier ) ;
91
91
92
92
buildCommand
93
93
. Execute ( buildArgs )
@@ -106,30 +106,30 @@ public void The_clean_target_removes_all_files_from_the_output_folder()
106
106
}
107
107
108
108
var testAsset = _testAssetsManager
109
- . CopyTestAsset ( "AppsWithFrameworkReferences" )
109
+ . CopyTestAsset ( "AppsWithFrameworkReferences" , "CleanTargetRemovesAll" )
110
110
. WithSource ( ) ;
111
111
112
112
testAsset . Restore ( "EntityFrameworkApp" ) ;
113
113
testAsset . Restore ( "StopwatchLib" ) ;
114
114
115
- VerifyClean ( testAsset , "StopwatchLib" , "net45" ,
115
+ VerifyClean ( testAsset , "StopwatchLib" , "net45" , "" ,
116
116
"StopwatchLib.dll" ,
117
117
"StopwatchLib.pdb" ) ;
118
118
119
- VerifyClean ( testAsset , "EntityFrameworkApp" , "net451" ,
119
+ VerifyClean ( testAsset , "EntityFrameworkApp" , "net451" , "win7-x86" ,
120
120
"EntityFrameworkApp.exe" ,
121
121
"EntityFrameworkApp.pdb" ,
122
122
"EntityFrameworkApp.runtimeconfig.dev.json" ,
123
123
"EntityFrameworkApp.runtimeconfig.json" ) ;
124
124
}
125
125
126
- private void VerifyClean ( TestAsset testAsset , string project , string targetFramework ,
126
+ private void VerifyClean ( TestAsset testAsset , string project , string targetFramework , string runtimeIdentifier ,
127
127
params string [ ] expectedFiles )
128
128
{
129
129
var appProjectDirectory = Path . Combine ( testAsset . TestRoot , project ) ;
130
130
131
131
var buildCommand = new BuildCommand ( Stage0MSBuild , appProjectDirectory ) ;
132
- var outputDirectory = buildCommand . GetOutputDirectory ( targetFramework ) ;
132
+ var outputDirectory = buildCommand . GetOutputDirectory ( targetFramework , runtimeIdentifier : runtimeIdentifier ) ;
133
133
134
134
buildCommand
135
135
. Execute ( )
0 commit comments