Skip to content
This repository was archived by the owner on Feb 12, 2018. It is now read-only.

Commit 6d7c975

Browse files
committed
Fixing packaging and settings
1 parent 50a7ead commit 6d7c975

8 files changed

Lines changed: 73 additions & 28 deletions

BuildScripts/MSBuild.Community.Tasks.Targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<MSBuildCommunityTasksPath Condition="'$(MSBuildCommunityTasksPath)' == ''">$(MSBuildProjectDirectory)\BuildScripts</MSBuildCommunityTasksPath>
5-
<MSBuildDnnBinPath Condition="'$(MSBuildDnnBinPath)' == ''">$(MSBuildProjectDirectory)\..\..\bin</MSBuildDnnBinPath>
6-
<MSBuildCommunityTasksLib>$(SolutionDir)\packages\MSBuildTasks.1.4.0.61\tools\MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib>
5+
<MSBuildDnnBinPath Condition="'$(MSBuildDnnBinPath)' == ''">$(MSBuildProjectDirectory)\..\..\..\bin</MSBuildDnnBinPath>
6+
<MSBuildCommunityTasksLib>$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib>
77
</PropertyGroup>
88
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AspNet.InstallAspNet" />
99
<UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AssemblyInfo" />

BuildScripts/ModulePackage.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<SourceInclude Include="**\*.txt" Exclude="**\obj\**;**\_ReSharper*\**;" />
4242
<SourceInclude Include="**\images\**" />
4343
<SourceInclude Include="**\*.vb" />
44-
<SourceInclude Include="**\Packages\**" />
44+
<SourceInclude Include="**\Packages\**" />
4545
<SourceInclude Include="**\*.vb.designer" />
4646
<SourceInclude Include="**\*.vbproj" />
4747
<SourceInclude Include="**\*.targets" />
@@ -66,6 +66,7 @@
6666
</CreateItem>
6767

6868
<Copy SourceFiles="$(MSBuildDnnBinPath)\$(AssemblyName).dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>
69+
<Copy SourceFiles="$(MSBuildDnnBinPath)\PerceptiveMCAPI.dll" DestinationFolder="$(MSBuildProjectDirectory)\Package\bin"/>
6970
<Copy SourceFiles="@(SqlDataProviderFiles)" DestinationFolder="$(MSBuildProjectDirectory)\Package\%(RecursiveDir)" />
7071
<Copy SourceFiles="@(PackageManifestFiles)" DestinationFolder="$(MSBuildProjectDirectory)\Package" />
7172
<Copy SourceFiles="@(PackageTxtFiles)" DestinationFolder="$(MSBuildProjectDirectory)\Package" />

Licenses/PerceptiveMCAPI.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
The MailChimpConnector project makes use of the PerceptiveMCAP project, which can be found here:
2+
3+
http://perceptivemcapi.codeplex.com/
4+
5+
That API is licensed under the following conditions:
6+
7+
Microsoft Public License (Ms-PL)
8+
9+
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
10+
11+
1. Definitions
12+
13+
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.
14+
15+
A "contribution" is the original software, or any additions or changes to the software.
16+
17+
A "contributor" is any person that distributes its contribution under this license.
18+
19+
"Licensed patents" are a contributor's patent claims that read directly on its contribution.
20+
21+
2. Grant of Rights
22+
23+
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
24+
25+
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
26+
27+
3. Conditions and Limitations
28+
29+
(A) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
30+
31+
(B) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
32+
33+
(C) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
34+
35+
(D) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
36+
37+
(E) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.

MailChimpConnector.dnn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
<name>Connect.Modules.MailChimpConnector.dll</name>
7979
<path>bin</path>
8080
</assembly>
81+
<assembly>
82+
<name>PerceptiveMCAPI.dll</name>
83+
<path>bin</path>
84+
</assembly>
8185
</assemblies>
8286
</component>
8387
</components>

MailChimpConnector.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Global
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{279C5C96-5031-407A-919C-EF50FD06454D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{279C5C96-5031-407A-919C-EF50FD06454D}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{279C5C96-5031-407A-919C-EF50FD06454D}.Debug|Any CPU.ActiveCfg = Release|Any CPU
15+
{279C5C96-5031-407A-919C-EF50FD06454D}.Debug|Any CPU.Build.0 = Release|Any CPU
1616
{279C5C96-5031-407A-919C-EF50FD06454D}.Release|Any CPU.ActiveCfg = Release|Any CPU
1717
{279C5C96-5031-407A-919C-EF50FD06454D}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection

MailChimpConnector.v12.suo

-4.5 KB
Binary file not shown.

MailChimpConnector.vbproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<DefineDebug>false</DefineDebug>
3636
<DefineTrace>true</DefineTrace>
3737
<Optimize>true</Optimize>
38-
<OutputPath>..\..\bin\</OutputPath>
38+
<OutputPath>..\..\..\bin\</OutputPath>
3939
<DocumentationFile>Connect.Modules.MailChimpConnector.xml</DocumentationFile>
4040
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
4141
</PropertyGroup>
@@ -125,6 +125,7 @@
125125
</ItemGroup>
126126
<ItemGroup>
127127
<Content Include="License.txt" />
128+
<Content Include="Licenses\PerceptiveMCAPI.txt" />
128129
<Content Include="module.css" />
129130
<Content Include="ReleaseNotes.txt" />
130131
<Content Include="Settings.ascx" />

View.ascx.vb

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -115,28 +115,6 @@ Public Class View
115115
DotNetNuke.Framework.AJAX.RegisterScriptManager()
116116
LoadList()
117117

118-
If Not Page.IsPostBack Then
119-
If IsSubscribed() Then
120-
pnlSettings.Visible = True
121-
pnlSettingsResult.Visible = False
122-
pnlSubscribe.Visible = False
123-
pnlSubscribeResult.Visible = False
124-
pnlUnSubscribe.Visible = False
125-
pnlUnSubscribeResult.Visible = False
126-
pnlError.Visible = False
127-
Else
128-
pnlSettings.Visible = False
129-
pnlSettingsResult.Visible = False
130-
pnlSubscribe.Visible = True
131-
pnlSubscribeResult.Visible = False
132-
pnlUnSubscribe.Visible = False
133-
pnlUnSubscribeResult.Visible = False
134-
pnlError.Visible = False
135-
End If
136-
End If
137-
138-
ProcessTemplates()
139-
140118
End Sub
141119

142120
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
@@ -525,12 +503,36 @@ Public Class View
525503
_mergefields = output.result
526504
Else
527505
ShowModuleSettingsNote()
506+
Exit Sub
528507
End If
529508
Else
530509
ShowModuleSettingsNote()
510+
Exit Sub
531511
End If
532512

533513

514+
If Not Page.IsPostBack Then
515+
If IsSubscribed() Then
516+
pnlSettings.Visible = True
517+
pnlSettingsResult.Visible = False
518+
pnlSubscribe.Visible = False
519+
pnlSubscribeResult.Visible = False
520+
pnlUnSubscribe.Visible = False
521+
pnlUnSubscribeResult.Visible = False
522+
pnlError.Visible = False
523+
Else
524+
pnlSettings.Visible = False
525+
pnlSettingsResult.Visible = False
526+
pnlSubscribe.Visible = True
527+
pnlSubscribeResult.Visible = False
528+
pnlUnSubscribe.Visible = False
529+
pnlUnSubscribeResult.Visible = False
530+
pnlError.Visible = False
531+
End If
532+
End If
533+
534+
ProcessTemplates()
535+
534536
End Sub
535537

536538
Private Sub ShowModuleSettingsNote()

0 commit comments

Comments
 (0)