Browse Source

fix(build): Fix the path for publishing nuget packages

- update `common.props`
- use `dotnet pack xxx`
pull/1248/head
colin 9 months ago
parent
commit
1c42cc2e22
  1. 4
      build/build-aspnetcore-publish-sln.ps1
  2. 4
      common.props

4
build/build-aspnetcore-publish-sln.ps1

@ -2,8 +2,8 @@
# Build all solutions # Build all solutions
foreach ($solution in $solutionArray) { foreach ($solution in $solutionArray) {
#dotnet pack -c Release --include-source --include-symbols $solution.File --no-cache dotnet pack -c Release --include-source --include-symbols $solution.File --no-cache
dotnet build -c Release $solution.File --no-cache # dotnet build -c Release $solution.File --no-cache
} }
Set-Location $rootFolder Set-Location $rootFolder

4
common.props

@ -34,5 +34,9 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>$(SolutionDir)LocalNuget</OutputPath> <OutputPath>$(SolutionDir)LocalNuget</OutputPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>$(SolutionDir)LocalNuget</OutputPath>
</PropertyGroup>
</Project> </Project>
Loading…
Cancel
Save