Skip to content

Commit 7ff6009

Browse files
committed
Enable nuget package generation for SharpMap.Extensions
1 parent 4f2218f commit 7ff6009

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

SharpMap.Extensions/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
[assembly: AssemblyTitle("SharpMap Extensions")]
99
[assembly: AssemblyDescription("Extensions for the SharpMap Engine")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("iter.dk")]
10+
[assembly: AssemblyCompany("SharpMap-Team")]
1211
[assembly: AssemblyProduct("SharpMap.Extensions")]
1312
[assembly: AssemblyCopyright("Copyright © 2006 - 2012 Christian Gräfe, SharpMap-Team")]
1413
[assembly: AssemblyTrademark("")]

SharpMap.Extensions/SharpMap.Extensions.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
3+
4+
<Import Project="$(MSBuildProjectDirectory)\..\SharpMap.Common.props"/>
5+
36
<PropertyGroup>
47
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
58
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -173,10 +176,11 @@
173176
<PostBuildEvent>
174177
</PostBuildEvent>
175178
</PropertyGroup>
176-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
177-
Other similar extension points exist, see Microsoft.Common.targets.
178-
<Target Name="BeforeBuild">
179-
</Target> -->
179+
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release' ">
180+
<Message Importance="high" Text="$(MSBuildBinPath)"/>
181+
<Message Importance="high" Text="$(MSBuildToolsPath)"/>
182+
<Exec Command="&quot;NuGet.exe&quot; pack &quot;$(MSBuildProjectDirectory)\$(MSBuildProjectFile)&quot; -Symbols -version $(Version) -Properties Configuration=Release -outputdirectory &quot;$(MSBuildProjectDirectory)\$(OutDir).&quot;" />
183+
</Target>
180184
<ItemGroup>
181185
<ProjectReference Include="..\SharpMap\SharpMap.csproj">
182186
<Project>{C83777FC-AABB-47D9-911F-D76255D4D541}</Project>

0 commit comments

Comments
 (0)