Skip to content

Commit

Permalink
Replaced namespace and project name with tokens.
Browse files Browse the repository at this point in the history
  • Loading branch information
irobinson committed Nov 14, 2011
1 parent db69a3c commit d6158d6
Show file tree
Hide file tree
Showing 21 changed files with 49 additions and 47 deletions.
2 changes: 1 addition & 1 deletion Models/EditModel.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Models
namespace $Namespace$$safeprojectname$.Models
{
public class EditModel
{
Expand Down
2 changes: 1 addition & 1 deletion Models/ViewModel.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Models
namespace $Namespace$$safeprojectname$.Models
{
public class ViewModel
{
Expand Down
2 changes: 1 addition & 1 deletion Presenters/EditPresenter.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Presenters
namespace $Namespace$$safeprojectname$.Presenters
{
using DotNetNuke.Web.Mvp;
using Models;
Expand Down
2 changes: 1 addition & 1 deletion Presenters/ViewPresenter.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Presenters
namespace $Namespace$$safeprojectname$.Presenters
{
using System;
using DotNetNuke.Web.Mvp;
Expand Down
10 changes: 5 additions & 5 deletions Properties/AssemblyInfo.cs
Expand Up @@ -4,12 +4,12 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WebFormsMvpModule")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("$YourCompany$$safeprojectname$")]
[assembly: AssemblyDescription("A DotNetNuke Module from $YourCompany$")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("Copyright © Ian Robinson 2011")]
[assembly: AssemblyCopyright("2011 $YourCompany$")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -30,5 +30,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyVersion("00.00.01.00")]
[assembly: AssemblyFileVersion("00.00.01.00")]
2 changes: 1 addition & 1 deletion Views/Edit.ascx
@@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="Edit.ascx.cs" Inherits="WebFormsMvpModule.Views.Edit" %>
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="Edit.ascx.cs" Inherits="$Namespace$$safeprojectname$.Views.Edit" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/labelcontrol.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>

Expand Down
2 changes: 1 addition & 1 deletion Views/Edit.ascx.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Views
namespace $Namespace$$safeprojectname$.Views
{
using System;
using DotNetNuke.UI.Skins;
Expand Down
2 changes: 1 addition & 1 deletion Views/Edit.ascx.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Views/IEditView.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Views
namespace $Namespace$$safeprojectname$.Views
{
using System;
using DotNetNuke.Web.Mvp;
Expand Down
2 changes: 1 addition & 1 deletion Views/IViewView.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Views
namespace $Namespace$$safeprojectname$.Views
{
using DotNetNuke.Web.Mvp;

Expand Down
2 changes: 1 addition & 1 deletion Views/Settings.ascx
@@ -1,4 +1,4 @@
<%@ Control Language="C#" CodeBehind="Settings.ascx.cs" Inherits="WebFormsMvpModule.Views.Settings" %>
<%@ Control Language="C#" CodeBehind="Settings.ascx.cs" Inherits="$Namespace$$safeprojectname$.Views.Settings" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/labelcontrol.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>

Expand Down
2 changes: 1 addition & 1 deletion Views/Settings.ascx.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Views
namespace $Namespace$$safeprojectname$.Views
{
using DotNetNuke.Entities.Modules;

Expand Down
2 changes: 1 addition & 1 deletion Views/Settings.ascx.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Views/View.ascx
@@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="View.ascx.cs" Inherits="WebFormsMvpModule.Views.View" %>
<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="View.ascx.cs" Inherits="$Namespace$$safeprojectname$.Views.View" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>

<!-- Include the necessary client resources for this control -->
Expand Down
2 changes: 1 addition & 1 deletion Views/View.ascx.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Views
namespace $Namespace$$safeprojectname$.Views
{
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Actions;
Expand Down
2 changes: 1 addition & 1 deletion Views/View.ascx.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion WebFormsMvpModule.Tests/EditPresenterTests.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Tests
namespace $Namespace$$safeprojectname$.Tests
{
using MbUnit.Framework;

Expand Down
12 changes: 6 additions & 6 deletions WebFormsMvpModule.Tests/Properties/AssemblyInfo.cs
Expand Up @@ -4,12 +4,12 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WebFormsMvpModule.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("$YourCompany$$safeprojectname$")]
[assembly: AssemblyDescription("A DotNetNuke Module from $YourCompany$")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WebFormsMvpModule.Tests")]
[assembly: AssemblyCopyright("Copyright © Ian Robinson 2011")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("2011 $YourCompany$")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -30,5 +30,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.0.1.0")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyVersion("00.00.01.00")]
[assembly: AssemblyFileVersion("00.00.01.00")]
2 changes: 1 addition & 1 deletion WebFormsMvpModule.Tests/ViewPresenterTests.cs
@@ -1,4 +1,4 @@
namespace WebFormsMvpModule.Tests
namespace $Namespace$$safeprojectname$.Tests
{
using MbUnit.Framework;

Expand Down
10 changes: 5 additions & 5 deletions WebFormsMvpModule.csproj
Expand Up @@ -10,8 +10,8 @@
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WebFormsMvpModule</RootNamespace>
<AssemblyName>WebFormsMvpModule</AssemblyName>
<RootNamespace>$NameSpace$$safeprojectname$</RootNamespace>
<AssemblyName>$safeprojectname$</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down Expand Up @@ -116,7 +116,7 @@
<None Include="BuildScripts\MSBuild.Community.Tasks.Targets" />
<None Include="Dependencies\MSBuild Community Tasks\MSBuild.Community.Tasks.msi" />
<None Include="README.md" />
<None Include="WebFormsMvpModule.dnn" />
<None Include="$safeprojectname$.dnn" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\App_LocalResources\View.ascx.resx" />
Expand All @@ -137,8 +137,8 @@
</ProjectExtensions>
<PropertyGroup>
<Extension>zip</Extension>
<DNNFileName>WebFormsMvpModule</DNNFileName>
<PackageName>WebFormsMvpModule</PackageName>
<DNNFileName>$safeprojectname$</DNNFileName>
<PackageName>$safeprojectname$</PackageName>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\BuildScripts</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="BuildScripts\ModulePackage.Targets" />
Expand Down
30 changes: 16 additions & 14 deletions WebFormsMvpModule.dnn
@@ -1,13 +1,15 @@
<dotnetnuke type="Package" version="5.0">
<packages>
<package name="WebFormsMvpModule" type="Module" version="00.00.02">
<package name="$safeprojectname$" type="Module" version="00.00.01">

<friendlyName>WebFormsMvp Module</friendlyName>
<description></description>
<friendlyName>$safeprojectname$</friendlyName>
<description>$YourCompany$ $safeprojectname$ Module</description>

<owner>
<name>Ian Robinson</name>
<url>http://github.com/irobinson</url>
<name>$YourCompany$</name>
<organization>$YourCompany$</organization>
<url>$YourWebsite$</url>
<email>$YourEmail$</email>
</owner>

<license src="License.html"/>
Expand All @@ -24,7 +26,7 @@
<!-- http://www.dotnetnuke.com/Resources/Wiki/Page/Manifest-ResourceFile-Component.aspx -->
<component type="ResourceFile">
<resourceFiles>
<basePath>DesktopModules/WebFormsMvpModule</basePath>
<basePath>DesktopModules/$safeprojectname$</basePath>
<resourceFile>
<name>Resources.zip</name>
</resourceFile>
Expand All @@ -35,18 +37,18 @@
<!-- http://www.dotnetnuke.com/Resources/Wiki/Page/Manifest-Module-Component.aspx-->
<component type="Module">
<desktopModule>
<moduleName>WebFormsMvp Module</moduleName>
<foldername>WebFormsMvpModule</foldername>
<moduleName>$safeprojectname$</moduleName>
<foldername>$safeprojectname$</foldername>
<moduleDefinitions>
<moduleDefinition>
<friendlyName>WebFormsMvp Module</friendlyName>
<friendlyName>$safeprojectname$</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<!-- the default view control uses an empty key by convention -->
<!-- all other registered controls require a key -->
<controlKey />
<controlSrc>DesktopModules/WebFormsMvpModule/Views/View.ascx</controlSrc>
<controlSrc>DesktopModules/$safeprojectname$/Views/View.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle />
<controlType>View</controlType>
Expand All @@ -55,7 +57,7 @@
</moduleControl>
<moduleControl>
<controlKey>Edit</controlKey>
<controlSrc>DesktopModules/WebFormsMvpModule/Views/Edit.ascx</controlSrc>
<controlSrc>DesktopModules/$safeprojectname$/Views/Edit.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle />
<controlType>Edit</controlType>
Expand All @@ -64,7 +66,7 @@
</moduleControl>
<moduleControl>
<controlKey>Settings</controlKey>
<controlSrc>DesktopModules/WebFormsMvpModule/Views/Settings.ascx</controlSrc>
<controlSrc>DesktopModules/$safeprojectname$/Views/Settings.ascx</controlSrc>
<supportsPartialRendering>False</supportsPartialRendering>
<controlTitle />
<controlType>Edit</controlType>
Expand All @@ -82,7 +84,7 @@
<assemblies>
<basePath>bin</basePath>
<assembly>
<name>WebFormsMvpModule.dll</name>
<name>$safeprojectname$.dll</name>
</assembly>
</assemblies>
</component>
Expand All @@ -93,7 +95,7 @@
<!--
<component type="Script">
<scripts>
<basePath>DesktopModules\WebFormsMvpModule</basePath>
<basePath>DesktopModules\$safeprojectname$</basePath>
<script type="Install">
<path>SqlScripts</path>
<name>00.00.01.SqlDataProvider</name>
Expand Down

0 comments on commit d6158d6

Please sign in to comment.