Skip to content

Commit

Permalink
Added nuget target to Makefile which in theory should work however th…
Browse files Browse the repository at this point in the history
…ere is a bug in mono that breaks nuget pack so until it's relsolved I can't build nuget packages without the Microsoft version of the .net Framework. Here's a bug report already filed with Xamarin:

https://bugzilla.xamarin.com/show_bug.cgi?id=17430
  • Loading branch information
jptrosclair committed Feb 15, 2014
1 parent 516b4e1 commit d298615
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ BUILD = xbuild
RELEASEDIR = Releases
RELEASE = System.Net.FtpClient.$(shell date +%y.%m.%d)
RELEASEPATH = $(RELEASEDIR)/$(RELEASE)
SNK = $(HOME)/Dropbox/Documents/System.Net.FtpClient-SNK/System.Net.FtpClient.snk

all: debug

release:
$(BUILD) /p:Configuration=Release System.Net.FtpClient/System.Net.FtpClient.csproj

release-signed:
$(BUILD) /p:Configuration=Release /p:SignAssembly=true /p:AssemblyOriginatorKeyFile="$(SNK)" System.Net.FtpClient/System.Net.FtpClient.csproj

debug:
$(BUILD) /p:Configuration=Debug System.Net.FtpClient/System.Net.FtpClient.csproj

Expand All @@ -22,9 +26,9 @@ clean:
rm -rf System.Net.FtpClient/obj
rm -rf Tests/bin
rm -rf Tests/obj
rm -rf $(RELEASEDIR)
rm -rf $(RELEASEPATH)

codeplex: release debug
codeplex: clean release debug
rm -rf $(RELEASEPATH)
mkdir -p $(RELEASEPATH)
mkdir -p $(RELEASEPATH)/bin
Expand All @@ -37,4 +41,8 @@ codeplex: release debug
cd $(RELEASEDIR); zip -r $(RELEASE).zip $(RELEASE)/
rm -rf $(RELEASEPATH)

nuget: clean release-signed
nuget pack System.Net.FtpClient/System.Net.FtpClient.csproj -Prop Configuration=Release -OutputDirectory $(RELEASEDIR)


packages: codeplex

0 comments on commit d298615

Please sign in to comment.