Skip to content

Commit d44a074

Browse files
committed
Simplified the solution generation. Added Tools.Common and StaticAnalysis.
1 parent 21206f8 commit d44a074

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build.proj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@
304304
<!-- Build and create package content -->
305305
<Exec Command="dotnet --version"/>
306306
<Exec Command="dotnet new sln -n Azure.PowerShell --force"/>
307-
<PropertyGroup>
308-
<GenerateSolutionCommand>$projects = (Get-ChildItem -Path src/ResourceManager -Recurse -Include '*.csproj' | Where-Object { $_.FullName -notlike '*.Test.Netcore.csproj' } | ForEach-Object { $_.FullName }) -join ' '; Invoke-Expression ""dotnet sln Azure.PowerShell.sln add $projects""</GenerateSolutionCommand>
309-
</PropertyGroup>
310-
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;$(GenerateSolutionCommand)&quot;" />
307+
<ItemGroup>
308+
<ModuleCsprojFiles Include="$(LibraryRoot)src/ResourceManager/**/*.csproj" Exclude="$(LibraryRoot)src/ResourceManager/**/*.Test.Netcore.csproj" />
309+
</ItemGroup>
310+
<Exec Command="dotnet sln Azure.PowerShell.sln add @(ModuleCsprojFiles->'%(FullPath)', ' ')" />
311+
<Exec Command="dotnet sln Azure.PowerShell.sln add $(LibraryRoot)tools/Tools.Common/Tools.Common.Netcore.csproj $(LibraryRoot)tools/StaticAnalysis/StaticAnalysis.Netcore.csproj"/>
311312
<Exec Command="dotnet publish Azure.PowerShell.sln -c $(Configuration)"/>
312313

313314
<!-- Delete powershell runtime files -->

0 commit comments

Comments
 (0)