Skip to content

Commit 23835b3

Browse files
committed
Strong-name; closes issue #8
1 parent 062b144 commit 23835b3

File tree

9 files changed

+135
-10
lines changed

9 files changed

+135
-10
lines changed

NCrontab.Signed.nuspec

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package>
3+
<metadata>
4+
<id>ncrontab.signed</id>
5+
<title>NCrontab (Signed)</title>
6+
<version>3.1.0</version>
7+
<authors>Atif Aziz</authors>
8+
<description>NCrontab is crontab for Microsoft .NET Framework 3.5 and above. It provides parsing and formatting of crontab expressions as well as calculation of occurrences of time based on a schedule expressed in the crontab format.</description>
9+
<language>en-US</language>
10+
<copyright>Copyright &#169; 2008 Atif Aziz. All rights reserved.</copyright>
11+
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
12+
<projectUrl>https://github.com/atifaziz/NCrontab</projectUrl>
13+
<tags>cron schedule time signed</tags>
14+
<releaseNotes>3.1: CrontabFieldImpl and CrontabFieldAccumulator are now private.
15+
3.0: Replaces uses of Converter with Func and therefore requires .NET Framework 3.5 as a minimum.
16+
17+
Release 3.x also makes the library available as a PCL for:
18+
- Microsoft .NET Framework 4.5
19+
- Microsoft Windows 8.0
20+
- Microsoft Windows Phone 8.1
21+
- Microsoft Windows Phone Silverlight 8.0</releaseNotes>
22+
</metadata>
23+
<files>
24+
<file src="bin\Release\NCrontab.Signed.*" target="lib\net35-client" />
25+
<file src="bin\Release\NCrontab.Signed.*" target="lib\net40-client" />
26+
<file src="bin\Release\NCrontab.Signed.*" target="lib\net45" />
27+
<file src="bin\Portable\Release\NCrontab.Signed.*" target="lib\portable-net45+netcore45+wpa81+wp8" />
28+
<file src="COPYING.txt" target="COPYING.txt" />
29+
<file src="*.cs" target="src" />
30+
<file src="NCrontab\**\*.cs" target="src\NCrontab" exclude="**\obj*\**\*.cs" />
31+
</files>
32+
</package>

NCrontab.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Release 3.x also makes the library available as a PCL for:
2121
- Microsoft Windows Phone Silverlight 8.0</releaseNotes>
2222
</metadata>
2323
<files>
24-
<file src="bin\Release\*" target="lib\net35-client" />
25-
<file src="bin\Release\*" target="lib\net40-client" />
26-
<file src="bin\Release\*" target="lib\net45" />
27-
<file src="bin\Portable\Release\*" target="lib\portable-net45+netcore45+wpa81+wp8" />
24+
<file src="bin\Release\NCrontab.*" target="lib\net35-client" exclude="bin\**\NCrontab.Signed.*" />
25+
<file src="bin\Release\NCrontab.*" target="lib\net40-client" exclude="bin\**\NCrontab.Signed.*" />
26+
<file src="bin\Release\NCrontab.*" target="lib\net45" exclude="bin\Release\NCrontab.Signed.*" />
27+
<file src="bin\Portable\Release\NCrontab.*" target="lib\portable-net45+netcore45+wpa81+wp8" exclude="bin\**\NCrontab.Signed.*" />
2828
<file src="COPYING.txt" target="COPYING.txt" />
2929
<file src="*.cs" target="src" />
3030
<file src="NCrontab\**\*.cs" target="src\NCrontab" exclude="**\obj*\**\*.cs" />

NCrontab.sln

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,51 @@ EndProject
2929
Global
3030
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3131
Debug|Any CPU = Debug|Any CPU
32+
DebugSigned|Any CPU = DebugSigned|Any CPU
3233
Release|Any CPU = Release|Any CPU
34+
ReleaseSigned|Any CPU = ReleaseSigned|Any CPU
3335
EndGlobalSection
3436
GlobalSection(ProjectConfigurationPlatforms) = postSolution
3537
{1948D266-8DCB-4AC5-98E6-A609713011CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3638
{1948D266-8DCB-4AC5-98E6-A609713011CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{1948D266-8DCB-4AC5-98E6-A609713011CB}.DebugSigned|Any CPU.ActiveCfg = DebugSigned|Any CPU
40+
{1948D266-8DCB-4AC5-98E6-A609713011CB}.DebugSigned|Any CPU.Build.0 = DebugSigned|Any CPU
3741
{1948D266-8DCB-4AC5-98E6-A609713011CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
3842
{1948D266-8DCB-4AC5-98E6-A609713011CB}.Release|Any CPU.Build.0 = Release|Any CPU
43+
{1948D266-8DCB-4AC5-98E6-A609713011CB}.ReleaseSigned|Any CPU.ActiveCfg = ReleaseSigned|Any CPU
44+
{1948D266-8DCB-4AC5-98E6-A609713011CB}.ReleaseSigned|Any CPU.Build.0 = ReleaseSigned|Any CPU
3945
{89D84924-0952-40FC-8994-758C4215ABEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4046
{89D84924-0952-40FC-8994-758C4215ABEB}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{89D84924-0952-40FC-8994-758C4215ABEB}.DebugSigned|Any CPU.ActiveCfg = Debug|Any CPU
48+
{89D84924-0952-40FC-8994-758C4215ABEB}.DebugSigned|Any CPU.Build.0 = Debug|Any CPU
4149
{89D84924-0952-40FC-8994-758C4215ABEB}.Release|Any CPU.ActiveCfg = Release|Any CPU
4250
{89D84924-0952-40FC-8994-758C4215ABEB}.Release|Any CPU.Build.0 = Release|Any CPU
51+
{89D84924-0952-40FC-8994-758C4215ABEB}.ReleaseSigned|Any CPU.ActiveCfg = Release|Any CPU
52+
{89D84924-0952-40FC-8994-758C4215ABEB}.ReleaseSigned|Any CPU.Build.0 = Release|Any CPU
4353
{7F587D68-75DD-4779-8744-85E9B07EC565}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4454
{7F587D68-75DD-4779-8744-85E9B07EC565}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{7F587D68-75DD-4779-8744-85E9B07EC565}.DebugSigned|Any CPU.ActiveCfg = Debug|Any CPU
56+
{7F587D68-75DD-4779-8744-85E9B07EC565}.DebugSigned|Any CPU.Build.0 = Debug|Any CPU
4557
{7F587D68-75DD-4779-8744-85E9B07EC565}.Release|Any CPU.ActiveCfg = Release|Any CPU
4658
{7F587D68-75DD-4779-8744-85E9B07EC565}.Release|Any CPU.Build.0 = Release|Any CPU
59+
{7F587D68-75DD-4779-8744-85E9B07EC565}.ReleaseSigned|Any CPU.ActiveCfg = Release|Any CPU
60+
{7F587D68-75DD-4779-8744-85E9B07EC565}.ReleaseSigned|Any CPU.Build.0 = Release|Any CPU
4761
{02F42DAC-8A9F-45BB-B734-BB08F0D194C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4862
{02F42DAC-8A9F-45BB-B734-BB08F0D194C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
63+
{02F42DAC-8A9F-45BB-B734-BB08F0D194C4}.DebugSigned|Any CPU.ActiveCfg = Debug|Any CPU
64+
{02F42DAC-8A9F-45BB-B734-BB08F0D194C4}.DebugSigned|Any CPU.Build.0 = Debug|Any CPU
4965
{02F42DAC-8A9F-45BB-B734-BB08F0D194C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
5066
{02F42DAC-8A9F-45BB-B734-BB08F0D194C4}.Release|Any CPU.Build.0 = Release|Any CPU
67+
{02F42DAC-8A9F-45BB-B734-BB08F0D194C4}.ReleaseSigned|Any CPU.ActiveCfg = Release|Any CPU
68+
{02F42DAC-8A9F-45BB-B734-BB08F0D194C4}.ReleaseSigned|Any CPU.Build.0 = Release|Any CPU
5169
{D8441CFB-E606-4304-8CA3-FD6E0FF1CD73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5270
{D8441CFB-E606-4304-8CA3-FD6E0FF1CD73}.Debug|Any CPU.Build.0 = Debug|Any CPU
71+
{D8441CFB-E606-4304-8CA3-FD6E0FF1CD73}.DebugSigned|Any CPU.ActiveCfg = DebugSigned|Any CPU
72+
{D8441CFB-E606-4304-8CA3-FD6E0FF1CD73}.DebugSigned|Any CPU.Build.0 = DebugSigned|Any CPU
5373
{D8441CFB-E606-4304-8CA3-FD6E0FF1CD73}.Release|Any CPU.ActiveCfg = Release|Any CPU
5474
{D8441CFB-E606-4304-8CA3-FD6E0FF1CD73}.Release|Any CPU.Build.0 = Release|Any CPU
75+
{D8441CFB-E606-4304-8CA3-FD6E0FF1CD73}.ReleaseSigned|Any CPU.ActiveCfg = ReleaseSigned|Any CPU
76+
{D8441CFB-E606-4304-8CA3-FD6E0FF1CD73}.ReleaseSigned|Any CPU.Build.0 = ReleaseSigned|Any CPU
5577
EndGlobalSection
5678
GlobalSection(SolutionProperties) = preSolution
5779
HideSolutionNode = FALSE

NCrontab/AssemblyInfo.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424

2525
#endregion
2626

27+
#if SIGNED
28+
[assembly: AssemblyTitle("NCrontab.Signed")]
29+
#else
2730
[assembly: AssemblyTitle("NCrontab")]
31+
#endif
2832
[assembly: AssemblyDescription("Crontab for .NET")]
2933

30-
[assembly: CLSCompliant(true)]
34+
[assembly: CLSCompliant(true)]

NCrontab/NCrontab.Portable.csproj

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,34 @@
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
3636
</PropertyGroup>
37+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugSigned|AnyCPU'">
38+
<AssemblyName>NCrontab.Signed</AssemblyName>
39+
<IntermediateOutputPath>obj.portable\DebugSigned</IntermediateOutputPath>
40+
<DebugSymbols>true</DebugSymbols>
41+
<OutputPath>..\bin\Portable\Debug\</OutputPath>
42+
<DefineConstants>DEBUG;TRACE;SIGNED</DefineConstants>
43+
<DebugType>full</DebugType>
44+
<PlatformTarget>AnyCPU</PlatformTarget>
45+
<ErrorReport>prompt</ErrorReport>
46+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
47+
</PropertyGroup>
48+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseSigned|AnyCPU'">
49+
<AssemblyName>NCrontab.Signed</AssemblyName>
50+
<IntermediateOutputPath>obj.portable\ReleaseSigned</IntermediateOutputPath>
51+
<OutputPath>..\bin\Portable\Release\</OutputPath>
52+
<DefineConstants>TRACE;SIGNED</DefineConstants>
53+
<Optimize>true</Optimize>
54+
<DebugType>pdbonly</DebugType>
55+
<PlatformTarget>AnyCPU</PlatformTarget>
56+
<ErrorReport>prompt</ErrorReport>
57+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
58+
</PropertyGroup>
59+
<PropertyGroup>
60+
<SignAssembly>true</SignAssembly>
61+
</PropertyGroup>
62+
<PropertyGroup>
63+
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
64+
</PropertyGroup>
3765
<ItemGroup>
3866
<!-- A reference to the entire .NET Framework is automatically included -->
3967
<Compile Include="AssemblyInfo.cs" />
@@ -63,6 +91,9 @@
6391
<ItemGroup>
6492
<Folder Include="Properties\" />
6593
</ItemGroup>
94+
<ItemGroup>
95+
<None Include="key.snk" />
96+
</ItemGroup>
6697
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
6798
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
6899
Other similar extension points exist, see Microsoft.Common.targets.

NCrontab/NCrontab.csproj

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
<AssemblyKeyContainerName>
1313
</AssemblyKeyContainerName>
1414
<AssemblyName>NCrontab</AssemblyName>
15-
<AssemblyOriginatorKeyFile>
16-
</AssemblyOriginatorKeyFile>
15+
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
1716
<DefaultClientScript>JScript</DefaultClientScript>
1817
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
1918
<DefaultTargetSchema>IE50</DefaultTargetSchema>
@@ -94,6 +93,35 @@
9493
<ErrorReport>prompt</ErrorReport>
9594
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
9695
</PropertyGroup>
96+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugSigned|AnyCPU'">
97+
<AssemblyName>NCrontab.Signed</AssemblyName>
98+
<IntermediateOutputPath>obj\DebugSigned</IntermediateOutputPath>
99+
<DebugSymbols>true</DebugSymbols>
100+
<OutputPath>..\bin\Debug\</OutputPath>
101+
<DefineConstants>DEBUG;TRACE;SIGNED</DefineConstants>
102+
<BaseAddress>285212672</BaseAddress>
103+
<FileAlignment>4096</FileAlignment>
104+
<DebugType>full</DebugType>
105+
<PlatformTarget>AnyCPU</PlatformTarget>
106+
<ErrorReport>prompt</ErrorReport>
107+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
108+
<SignAssembly>true</SignAssembly>
109+
</PropertyGroup>
110+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseSigned|AnyCPU'">
111+
<AssemblyName>NCrontab.Signed</AssemblyName>
112+
<IntermediateOutputPath>obj\ReleaseSigned</IntermediateOutputPath>
113+
<DebugSymbols>true</DebugSymbols>
114+
<OutputPath>..\bin\Release\</OutputPath>
115+
<DefineConstants>TRACE;SIGNED</DefineConstants>
116+
<BaseAddress>285212672</BaseAddress>
117+
<Optimize>true</Optimize>
118+
<FileAlignment>4096</FileAlignment>
119+
<DebugType>pdbonly</DebugType>
120+
<PlatformTarget>AnyCPU</PlatformTarget>
121+
<ErrorReport>prompt</ErrorReport>
122+
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
123+
<SignAssembly>true</SignAssembly>
124+
</PropertyGroup>
97125
<ItemGroup>
98126
<Reference Include="System">
99127
<Name>System</Name>
@@ -153,6 +181,7 @@
153181
<Generator>TextTemplatingFileGenerator</Generator>
154182
<LastGenOutput>AssemblyInfo.g.cs</LastGenOutput>
155183
</None>
184+
<None Include="key.snk" />
156185
</ItemGroup>
157186
<ItemGroup>
158187
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />

NCrontab/key.snk

596 Bytes
Binary file not shown.

build.cmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ if "%nuget%"=="" (
66
echo For more on NuGet, see https://github.com/nuget/home
77
)
88
pushd "%~dp0"
9-
nuget restore && call :build Debug %* && call :build Release %*
9+
nuget restore ^
10+
&& call :build Debug %* ^
11+
&& call :build Release %* ^
12+
&& call :build DebugSigned %* ^
13+
&& call :build ReleaseSigned %*
1014
popd
1115
goto :EOF
1216

pack.cmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ for %%i in (NuGet.exe) do set nuget=%%~dpnx$PATH:i
1010
if "%nuget%"=="" goto :nonuget
1111
if not exist dist md dist
1212
if not %errorlevel%==0 exit /b %errorlevel%
13-
call build /v:m ^
14-
&& nuget pack ncrontab.nuspec -OutputDirectory dist -Symbols
13+
call build /v:m && call :pack ncrontab && call :pack ncrontab.signed
14+
goto :EOF
15+
16+
:pack
17+
nuget pack %1.nuspec -OutputDirectory dist -Symbols
1518
goto :EOF
1619

1720
:nonuget

0 commit comments

Comments
 (0)