Skip to content

Commit

Permalink
A few different updates, details below
Browse files Browse the repository at this point in the history
Added support for -Verbose
Added support to look for msdeploy.exe in v3/v2/v1 folder:
  • Loading branch information
sayedihashimi committed Dec 31, 2011
1 parent 4acc8c2 commit c12011c
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ OutputRoot/

# Known files to ignore always #
*.suo
*.user
*.user
~*.docx
msbuild.log
69 changes: 69 additions & 0 deletions Nuget/Sedodream.Package.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Don't make this _Deploy becuase it conflicts with default IIS app path name -->
<_DeployFolderName>_Deploy_</_DeployFolderName>
<SedodreamInstallFolder Condition=" '$(SedodreamInstallFolder)'=='' ">$(MSBuildProjectDirectory)\SedodreamPackage\</SedodreamInstallFolder>
<SedodreamPublishProjPath Condition=" '$(SedodreamPublishProjPath)'=='' ">$(SedodreamInstallFolder)Sedodream.Publish.proj</SedodreamPublishProjPath>
<SlowCheetahTransformXmlTaskPath Condition=" '$(SlowCheetahTransformXmlTaskPath)'=='' ">$(MSBuildThisFileDirectory)\SlowCheetah.Tasks.dll</SlowCheetahTransformXmlTaskPath>
</PropertyGroup>

<Target Name="CopyPublishPs1ToPackageFolder" AfterTargets="Package">
<PropertyGroup>
<_PublishPs1>$(SedodreamInstallFolder)Publish-Interactive.ps1</_PublishPs1>
</PropertyGroup>

<Copy SourceFiles="$(_PublishPs1)" DestinationFiles="$(DefaultPackageOutputDir)\Publish-Interactive.ps1"/>

</Target>

<PropertyGroup>
<CopyAllFilesToSingleFolderForPackageDependsOn>
IncludWebConfigTransformsForPublishing;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForPackageDependsOn>
</PropertyGroup>

<Target Name="IncludWebConfigTransformsForPublishing">
<ItemGroup>
<_WCTransforms Include="$(MSBuildProjectDirectory)\web.config;$(MSBuildProjectDirectory)\web.*.config"/>

<_SlowCheetahTasksItem Remove="@(_SlowCheetahTasksItem)"/>
<_SlowCheetahTasksItem Include="$(SlowCheetahTransformXmlTaskPath)"/>
</ItemGroup>

<PropertyGroup>
<_SlowCheetahFilename>@(_SlowCheetahTasksItem->'%(Filename)%(Extension)')</_SlowCheetahFilename>
</PropertyGroup>

<ItemGroup>
<FilesForPackagingFromProject Include="%(_WCTransforms.Identity)">
<DestinationRelativePath>$(_DeployFolderName)\%(RecursiveDir)t.%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>

<!-- Add the assemlby which has the TrasnfromXml task-->
<FilesForPackagingFromProject Include="$(SlowCheetahTransformXmlTaskPath)">
<DestinationRelativePath>$(_DeployFolderName)\$(_SlowCheetahFilename)</DestinationRelativePath>
</FilesForPackagingFromProject>

<!-- Add the MSBuild file into the package as well -->
<FilesForPackagingFromProject Include="$(SedodreamPublishProjPath)">
<DestinationRelativePath>$(_DeployFolderName)\Sedodream.Publish.proj</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Target>

<Target Name="AddSetParamToPackage" AfterTargets="GenerateSampleDeployScript">
<ItemGroup>
<_TmpItem Remove="@(_TmpItem)"/>
<_TmpItem Include="$(GenerateSampleParametersValueLocation)"/>
</ItemGroup>

<!-- Add the SetParameters.xml file -->
<ItemGroup>
<FilesForPackagingFromProject Include="@(_TmpItem)">
<DestinationRelativePath>$(_DeployFolderName)\%(_TmpItem.Filename)%(_TmpItem.Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Target>

</Project>
Binary file modified Powershell/Publish-Interactive.ps1
Binary file not shown.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
More content to come later here.
2 changes: 1 addition & 1 deletion Sedodream.Publish-Nuget.proj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ContentItems Include="$(SourceRoot)Powershell\Publish-Interactive.ps1">
<DestDir>SedodreamPackage\</DestDir>
</ContentItems>
<ContentItems Include="$(SourceRoot)SampleWeb\Sedodream.Package.targets">
<ContentItems Include="$(SourceRoot)Nuget\Sedodream.Package.targets">
<DestDir>SedodreamPackage\</DestDir>
</ContentItems>
<ContentItems Include="$(SourceRoot)Sedodream.Publish.proj">
Expand Down
Binary file added things-to-test.docx
Binary file not shown.

0 comments on commit c12011c

Please sign in to comment.