File tree 4 files changed +18
-7
lines changed
Microsoft.FeatureManagement
Microsoft.FeatureManagement.AspNetCore
4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ if ($RestoreOnly)
35
35
else
36
36
{
37
37
# Build
38
- dotnet build - o " $BuildRelativePath " - c $BuildConfig " $Solution " | Tee-Object - FilePath " $LogDirectory \build.log"
38
+ dotnet build - c $BuildConfig " $Solution " / p:OutDir = $BuildRelativePath | Tee-Object - FilePath " $LogDirectory \build.log"
39
39
}
40
40
41
41
exit $LASTEXITCODE
Original file line number Diff line number Diff line change @@ -15,15 +15,26 @@ $ErrorActionPreference = "Stop"
15
15
$PrebuiltBinariesDir = " bin\BuildOutput"
16
16
$PublishRelativePath = " bin\PackageOutput"
17
17
$LogDirectory = " $PSScriptRoot \buildlogs"
18
- $Solution = " $PSScriptRoot \Microsoft.FeatureManagement.sln"
18
+
19
+ $targetProjects = @ (
20
+
21
+ " Microsoft.FeatureManagement" ,
22
+ " Microsoft.FeatureManagement.AspNetCore"
23
+ )
19
24
20
25
# Create the log directory.
21
26
if ((Test-Path - Path $LogDirectory ) -ne $true ) {
22
27
New-Item - ItemType Directory - Path $LogDirectory | Write-Verbose
23
28
}
24
29
25
- #
26
- # The build system expects pre-built binaries to be in the folder pointed to by 'OutDir'.
27
- dotnet pack - o " $PublishRelativePath " / p:OutDir= $PrebuiltBinariesDir " $Solution " -- no- build | Tee-Object - FilePath " $LogDirectory \build.log"
30
+ foreach ($project in $targetProjects )
31
+ {
32
+ $projectPath = " $PSScriptRoot \src\$project \$project .csproj"
33
+ $outputPath = " $PSScriptRoot \src\$project \$PublishRelativePath "
34
+
35
+ #
36
+ # The build system expects pre-built binaries to be in the folder pointed to by 'OutDir'.
37
+ dotnet pack - o " $outputPath " / p:OutDir= $PrebuiltBinariesDir " $projectPath " -- no- build | Tee-Object - FilePath " $LogDirectory \build.log"
38
+ }
28
39
29
40
exit $LASTEXITCODE
Original file line number Diff line number Diff line change 31
31
</PropertyGroup >
32
32
33
33
<Target Name =" PrepublishScript" BeforeTargets =" PrepareForPublish" >
34
- <Copy SourceFiles =" $(DocumentationFile)" DestinationFolder =" $(PublishDir )\XMLComments" SkipUnchangedFiles =" false" />
34
+ <Copy SourceFiles =" $(DocumentationFile)" DestinationFolder =" $(OutDir )\XMLComments" SkipUnchangedFiles =" false" />
35
35
</Target >
36
36
37
37
</Project >
Original file line number Diff line number Diff line change 30
30
</PropertyGroup >
31
31
32
32
<Target Name =" PrepublishScript" BeforeTargets =" PrepareForPublish" >
33
- <Copy SourceFiles =" $(DocumentationFile)" DestinationFolder =" $(PublishDir )\XMLComments" SkipUnchangedFiles =" false" />
33
+ <Copy SourceFiles =" $(DocumentationFile)" DestinationFolder =" $(OutDir )\XMLComments" SkipUnchangedFiles =" false" />
34
34
</Target >
35
35
36
36
</Project >
You can’t perform that action at this time.
0 commit comments