summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-02-01 20:11:48 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-02-01 20:11:48 -0800
commit492f4566b70142e5fc41a9c3fb4564c64c66ac5f (patch)
treea9360f04b531f73be8a1b62fa9df81136a75b51a /tools
parent4e798edfaf93990c79d35e9322efc0b9c0415f49 (diff)
downloadDotNetOpenAuth-492f4566b70142e5fc41a9c3fb4564c64c66ac5f.zip
DotNetOpenAuth-492f4566b70142e5fc41a9c3fb4564c64c66ac5f.tar.gz
DotNetOpenAuth-492f4566b70142e5fc41a9c3fb4564c64c66ac5f.tar.bz2
Fixes references in project templates to dotnetopenauth so that they target the unified assembly.
Fixes #63
Diffstat (limited to 'tools')
-rw-r--r--tools/drop.proj30
1 files changed, 16 insertions, 14 deletions
diff --git a/tools/drop.proj b/tools/drop.proj
index 69a636c..973540b 100644
--- a/tools/drop.proj
+++ b/tools/drop.proj
@@ -120,6 +120,19 @@
@(DropDocFiles);
@(DropSpecsFiles)
" />
+
+ <DropSamplesFilesFixups Include="@(DropSamplesFiles)" Condition=" '%(Extension)' == '.aspx' ">
+ <Pattern>&lt;%@ Register Assembly="DotNetOpenAuth[^"]+"</Pattern>
+ <Replacement>&lt;%@ Register Assembly="DotNetOpenAuth"</Replacement>
+ </DropSamplesFilesFixups>
+ <DropSamplesFilesFixups Include="@(DropSamplesFiles)" Condition=" '%(Extension)' == '.xaml' ">
+ <Pattern>xmlns\:(.+)assembly=DotNetOpenAuth([^;"]+)</Pattern>
+ <Replacement>xmlns:$1assembly=DotNetOpenAuth</Replacement>
+ </DropSamplesFilesFixups>
+ <DropSamplesFilesFixups Include="@(DropSamplesFiles)" Condition=" '%(Extension)' == '.config' ">
+ <Pattern>type=&quot;DotNetOpenAuth([^,]+), DotNetOpenAuth([^&quot;]+)&quot;</Pattern>
+ <Replacement>type=&quot;DotNetOpenAuth$1, DotNetOpenAuth&quot;</Replacement>
+ </DropSamplesFilesFixups>
</ItemGroup>
<!-- clean up any previous drop with the same name so we don't aggregate files. -->
@@ -137,20 +150,9 @@
<ChangeProjectReferenceToAssemblyReference Projects="@(SampleProjectTargets)"
ProjectReferences="@(ProjectReferencesToRemove)" References="@(AssemblyReferencesToReplaceWith)" />
<RegexFileReplace
- Files="@(DropSamplesFiles)"
- Pattern='&lt;%@ Register Assembly="DotNetOpenAuth[^"]+"'
- Replacement='&lt;%@ Register Assembly="DotNetOpenAuth"'
- Condition=" '%(Extension)' == '.aspx' " />
- <RegexFileReplace
- Files="@(DropSamplesFiles)"
- Pattern='xmlns\:(.+)assembly=DotNetOpenAuth([^;"]+)'
- Replacement='xmlns:$1assembly=DotNetOpenAuth'
- Condition=" '%(Extension)' == '.xaml' " />
- <RegexFileReplace
- Files="@(DropSamplesFiles)"
- Pattern='type=&quot;DotNetOpenAuth([^,]+), DotNetOpenAuth([^&quot;]+)&quot;'
- Replacement='type=&quot;DotNetOpenAuth$1, DotNetOpenAuth&quot;'
- Condition=" '%(Extension)' == '.config' " />
+ Files="@(DropSamplesFilesFixups)"
+ Pattern="%(Pattern)"
+ Replacement="%(Replacement)" />
<DowngradeProjects
Projects="@(SampleProjectTargets);@(SampleSolutionTargets)"
DowngradeMvc2ToMvc1="$(DowngradeMvc2ToMvc1)"