Skip to content

Commit b98ffd6

Browse files
committedJan 14, 2011
add log; updated nuspec
1 parent b53fee7 commit b98ffd6

File tree

6 files changed

+67
-20
lines changed

6 files changed

+67
-20
lines changed
 

‎AE.Net.Mail.csproj

+6-3
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,17 @@
120120
<Compile Include="Properties\AssemblyInfo.cs" />
121121
</ItemGroup>
122122
<ItemGroup>
123-
<None Include="AE.Net.Mail.nuspec" />
123+
<None Include="AE.Net.Mail.nuspec">
124+
<SubType>Designer</SubType>
125+
</None>
126+
<None Include="Build.proj" />
124127
</ItemGroup>
125128
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
126129
<PropertyGroup>
127130
<PostBuildEvent>md "$(SolutionDir)\bin\Package\"
128-
md "$(SolutionDir)\bin\Package\Assemblies\"
131+
md "$(SolutionDir)\bin\Package\lib\"
129132
del "$(SolutionDir)\bin\Package\*.*" /q
130-
copy "$(SolutionDir)bin\Release\*.*" "$(SolutionDir)bin\Package\Assemblies\"
133+
copy "$(SolutionDir)bin\Release\*.*" "$(SolutionDir)bin\Package\lib\"
131134
copy "$(SolutionDir)AE.Net.Mail.nuspec" "$(SolutionDir)bin\Package\AE.Net.Mail.nuspec"
132135
"$(SolutionDir)NuGet.exe" pack "$(SolutionDir)bin\Package\AE.Net.Mail.nuspec" /o "$(SolutionDir)\bin\Package"</PostBuildEvent>
133136
</PropertyGroup>

‎AE.Net.Mail.nuspec

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<package>
3-
<metadata>
4-
<id>AE.Net.Mail</id>
5-
<version>1.0.0</version>
6-
<authors>Andy Edinborough</authors>
7-
<description>POP/IMap Client Library</description>
8-
<language>en-US</language>
9-
<licenseUrl>http://aenetmail.codeplex.com/license</licenseUrl>
10-
<projectUrl>http://aenetmail.codeplex.com/</projectUrl>
11-
</metadata>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package>
3+
<metadata>
4+
<id>AE.Net.Mail</id>
5+
<version>1.0.1</version>
6+
<owners>Andy Edinborough</owners>
7+
<authors>Andy Edinborough, Mentalis.org, Cyrille Colin</authors>
8+
<description>POP/IMap Client Library</description>
9+
<language>en-US</language>
10+
<licenseUrl>http://aenetmail.codeplex.com/license</licenseUrl>
11+
<projectUrl>http://aenetmail.codeplex.com/</projectUrl>
12+
</metadata>
1213
</package>

‎Build.proj

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="default">
2+
<PropertyGroup>
3+
<BaseDir>$(MSBuildProjectDirectory)</BaseDir>
4+
<Configuration Condition="'$(Configuration)'==''" >Release</Configuration>
5+
<BuildDir>$(BaseDir)\bin</BuildDir>
6+
<PackageDir>$(BuildDir)\Packages</PackageDir>
7+
<SolutionFile>$(BaseDir)\AE.Net.Mail.sln</SolutionFile>
8+
<MSBuildExtensions>$(BaseDir)\lib\msbuild\msbuild.community.tasks.dll</MSBuildExtensions>
9+
</PropertyGroup>
10+
11+
<UsingTask AssemblyFile="$(MSBuildExtensions)" TaskName="MSBuild.Community.Tasks.XmlUpdate" />
12+
13+
<Target Name="default" DependsOnTargets="Compile; Package" />
14+
15+
<Target Name="Compile">
16+
<MSBuild Projects="$(SolutionFile)" Properties="Configuration=$(Configuration)" />
17+
</Target>
18+
19+
<Target Name="Package">
20+
<ItemGroup>
21+
<MainBinaries Include="$(BaseDir)\bin\$(Configuration)\**\*.*" />
22+
</ItemGroup>
23+
24+
<!-- First copy the nuspec template files to the package dir -->
25+
<Copy SourceFiles="$(MSBuildProjectDirectory)\AE.Net.Mail.nuspec" DestinationFolder="$(PackageDir)\temp\FluentValidation" />
26+
27+
<!-- Copy the source files to the package dir -->
28+
<Copy SourceFiles="@(MainBinaries)" DestinationFolder="$(PackageDir)\temp\FluentValidation\lib\NET35\%(RecursiveDir)" />
29+
30+
<!-- Get the version number of the main FV assembly to insert into the nuspec files -->
31+
<GetAssemblyIdentity AssemblyFiles="$(OutputDir)\FluentValidation\FluentValidation.dll">
32+
<Output TaskParameter="Assemblies" ItemName="AsmInfo" />
33+
</GetAssemblyIdentity>
34+
35+
<!-- insert the version number into the nuspec files -->
36+
<XmlUpdate
37+
Namespace="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"
38+
XmlFileName="$(PackageDir)\temp\FluentValidation\FluentValidation.nuspec"
39+
XPath="/package/metadata/version"
40+
Value="%(AsmInfo.Version)" />
41+
42+
<Exec WorkingDirectory="$(BuildDir)\Packages" Command="$(BaseDir)\lib\nuget\nuget.exe pack $(PackageDir)\temp\FluentValidation\FluentValidation.nuspec" />
43+
</Target>
44+
</Project>

‎Logo.png

7.88 KB
Unable to render code block

‎Properties/AssemblyInfo.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
[assembly: AssemblyTitle("AE.Net.Mail")]
99
[assembly: AssemblyDescription("")]
1010
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("Microsoft")]
11+
[assembly: AssemblyCompany("Andy Edinborough")]
1212
[assembly: AssemblyProduct("AE.Net.Mail")]
13-
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
13+
[assembly: AssemblyCopyright("")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("1.0.1.0")]
36+
[assembly: AssemblyFileVersion("1.0.1.0")]

‎TextClient.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.IO;
3-
using System.Net.Sockets;
43
using System.Security.Cryptography;
54
using System.Security.Cryptography.X509Certificates;
65
using Org.Mentalis.Security.Ssl;
@@ -28,7 +27,7 @@ protected virtual void OnConnected(string result) {
2827

2928
public void Login(string username, string password) {
3029
if (!IsConnected) {
31-
throw new Exception("You must connect first !");
30+
throw new Exception("You must connect first!");
3231
}
3332
IsAuthenticated = false;
3433
OnLogin(username, password);

0 commit comments

Comments
 (0)
Please sign in to comment.