@@ -22,15 +22,14 @@ public override void Run(BuildContext context)
2222
2323 var nugetSource = context . MakeAbsolute ( Paths . Nuget ) . FullPath ;
2424
25- context . Information ( "\n Testing msbuild task with dotnet build (for .net core) \n " ) ;
25+ context . Information ( "\n Testing msbuild task with dotnet build\n " ) ;
2626 var frameworks = new [ ] { Constants . NetVersion60 , Constants . NetVersion70 } ;
2727 foreach ( var framework in frameworks )
2828 {
2929 var dotnetMsBuildSettings = new DotNetMSBuildSettings ( ) ;
30- dotnetMsBuildSettings . WithProperty ( "TargetFrameworks" , framework ) ;
31- dotnetMsBuildSettings . WithProperty ( "TargetFramework" , framework ) ;
30+ dotnetMsBuildSettings . SetTargetFramework ( framework ) ;
3231 dotnetMsBuildSettings . WithProperty ( "GitVersionMsBuildVersion" , version ) ;
33- var projPath = context . MakeAbsolute ( Paths . Integration . Combine ( "core" ) ) ;
32+ var projPath = context . MakeAbsolute ( Paths . Integration ) ;
3433
3534 context . DotNetBuild ( projPath . FullPath , new DotNetBuildSettings
3635 {
@@ -40,8 +39,8 @@ public override void Run(BuildContext context)
4039 Sources = new [ ] { nugetSource }
4140 } ) ;
4241
43- var netcoreExe = Paths . Integration . Combine ( "core" ) . Combine ( "build" ) . Combine ( framework ) . CombineWithFilePath ( "app.dll" ) ;
44- context . ValidateOutput ( "dotnet" , netcoreExe . FullPath , context . Version . GitVersion . FullSemVer ) ;
42+ var exe = Paths . Integration . Combine ( "build" ) . Combine ( framework ) . CombineWithFilePath ( "app.dll" ) ;
43+ context . ValidateOutput ( "dotnet" , exe . FullPath , context . Version . GitVersion . FullSemVer ) ;
4544 }
4645 }
4746}
0 commit comments