Skip to content

Commit

Permalink
Merge pull request #97 from Geta/develop
Browse files Browse the repository at this point in the history
Moving nuget packaging to TeamCity;
  • Loading branch information
Andris authored Jun 12, 2020
2 parents 60339f3 + 542fbdb commit 026547a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/Geta.Tags.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@
</None>
</ItemGroup>
<ItemGroup />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Import Project="$(SolutionDir)\src\msbuild\Main.proj" />
<ProjectExtensions>
<VisualStudio>
Expand Down
15 changes: 3 additions & 12 deletions src/msbuild/Main.proj
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@

<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == ''">$(MSBuildProjectDirectory)\..\</SolutionDir>
<NuGetExe>$(SolutionDir)\.nuget\NuGet.exe</NuGetExe>
<TmpOutDir>$(SolutionDir)\tmp</TmpOutDir>
<NuspecFile>$(SolutionDir)\src\Geta.Tags.nuspec</NuspecFile>
</PropertyGroup>

<Target Name="CreateNugetPackage" AfterTargets="Build">
<Target Name="ZipDirectory" AfterTargets="Build">
<PropertyGroup>
<Version></Version>
</PropertyGroup>
Expand Down Expand Up @@ -81,16 +79,9 @@
OutputFileName="$(OutDir)\Geta.Tags.zip"
OverwriteExistingFile="true" />

<!-- Create the package -->
<PropertyGroup>
<NugetCommand>
"$(NuGetExe)" pack "$(NuspecFile)" -OutputDirectory "$(OutDir.TrimEnd('\\'))" -Version "$(Version)" -Properties Configuration=$(Configuration)
</NugetCommand>

</PropertyGroup>
<Exec Command="$(NugetCommand)"/>

<!-- Cleanup -->
<RemoveDir Directories="$(TmpOutDir)" />

</Target>

</Project>

0 comments on commit 026547a

Please sign in to comment.