Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Commit

Permalink
wrong version string
Browse files Browse the repository at this point in the history
  • Loading branch information
w8tcha committed May 30, 2019
1 parent e8b6aa6 commit e12755f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
21 changes: 12 additions & 9 deletions DNN 9/BuildScripts/ModulePackage.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
<Import Project="$(MSBuildExtensionsPath)\Microsoft\MicrosoftAjax\AjaxMin.tasks" />

<Target Name="PackageModule" Condition=" '$(Configuration)|$(Platform)' == 'Deploy|AnyCPU' ">
<GetAssemblyIdentity AssemblyFiles="$(MSBuildProjectDirectory)\Install\bin\WatchersNET.CKEditor.dll">
<Output TaskParameter="Assemblies" ItemName="AssemblyIdentities"/>
</GetAssemblyIdentity>
<XmlRead Prefix="n"
Namespace="http://schemas.microsoft.com/developer/msbuild/2003"
XPath="dotnetnuke/packages/package[starts-with(@name,'DotNetNuke.CKHtmlEditorProvider')]/@version"
XmlFileName="$(MSBuildProjectDirectory)\Install\$(DNNFileName).dnn">
<Output TaskParameter="Value" PropertyName="Version" />
</XmlRead>
<ItemGroup>
<DefaultExclude Include="**\.svn\**" />
<DefaultExclude Include="**\bin\**" />
Expand Down Expand Up @@ -155,17 +158,17 @@
<Output TaskParameter="Include" ItemName="OutputContent" />
</CreateItem>
<!-- Create the Install package -->
<Zip Files="@(OutputContent)" WorkingDirectory="$(MSBuildProjectDirectory)\Package" ZipFileName="$(PackageName)_%(AssemblyIdentities.Version)_Install_DNN9.$(Extension)" />
<Zip Files="@(OutputContent)" WorkingDirectory="$(MSBuildProjectDirectory)\Package" ZipFileName="$(PackageName)_$(Version)_Install_DNN9.$(Extension)" />
<!-- Copy the Install package to the deploy folder -->
<Copy SourceFiles="$(MSBuildProjectDirectory)\$(PackageName)_%(AssemblyIdentities.Version)_Install_DNN9.$(Extension)" DestinationFolder="$(MSBuildProjectDirectory)/../deploy" />
<Copy SourceFiles="$(MSBuildProjectDirectory)\$(PackageName)_$(Version)_Install_DNN9.$(Extension)" DestinationFolder="$(MSBuildProjectDirectory)/../deploy" />

<RemoveDir Directories ="$(MSBuildProjectDirectory)\Package" />

<Delete Files="$(MSBuildProjectDirectory)\ResourcesZip\**\*" ContinueOnError="true"/>
<RemoveDir Directories ="$(MSBuildProjectDirectory)\ResourcesZip" ContinueOnError="true" />

<Delete Files="$(MSBuildProjectDirectory)\Resources.$(Extension)" />
<Delete Files="$(MSBuildProjectDirectory)\$(PackageName)_%(AssemblyIdentities.Version)_Install_DNN9.$(Extension)" />
<Delete Files="$(MSBuildProjectDirectory)\$(PackageName)_$(Version)_Install_DNN9.$(Extension)" />

<!-- create the SOURCE RESOURCES.ZIP file -->
<Copy SourceFiles="@(SourceInclude)" DestinationFolder="$(MSBuildProjectDirectory)\Package\%(RecursiveDir)" />
Expand All @@ -174,10 +177,10 @@
<Output TaskParameter="Include" ItemName="OutputSource" />
</CreateItem>

<Zip Files="@(OutputSource)" WorkingDirectory="$(MSBuildProjectDirectory)\Package" ZipFileName="$(PackageName)_%(AssemblyIdentities.Version)_Source.$(Extension)" />
<Copy SourceFiles="$(MSBuildProjectDirectory)\$(PackageName)_%(AssemblyIdentities.Version)_Source.$(Extension)" DestinationFolder="$(MSBuildProjectDirectory)/../deploy" />
<Zip Files="@(OutputSource)" WorkingDirectory="$(MSBuildProjectDirectory)\Package" ZipFileName="$(PackageName)_$(Version)_Source.$(Extension)" />
<Copy SourceFiles="$(MSBuildProjectDirectory)\$(PackageName)_$(Version)_Source.$(Extension)" DestinationFolder="$(MSBuildProjectDirectory)/../deploy" />

<Delete Files="$(MSBuildProjectDirectory)\$(PackageName)_%(AssemblyIdentities.Version)_Source.$(Extension)" />
<Delete Files="$(MSBuildProjectDirectory)\$(PackageName)_$(Version)_Source.$(Extension)" />

<RemoveDir Directories ="$(MSBuildProjectDirectory)\Package" />

Expand Down
4 changes: 2 additions & 2 deletions DNN 9/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@

[assembly: ComVisible(false)]

[assembly: AssemblyVersion("2.01.26")]
[assembly: AssemblyFileVersion("2.01.2.6")]
[assembly: AssemblyVersion("02.01.26")]
[assembly: AssemblyFileVersion("02.01.2.6")]

0 comments on commit e12755f

Please sign in to comment.