Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>