diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-01 20:11:48 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2012-02-01 20:11:48 -0800 |
commit | 492f4566b70142e5fc41a9c3fb4564c64c66ac5f (patch) | |
tree | a9360f04b531f73be8a1b62fa9df81136a75b51a /tools | |
parent | 4e798edfaf93990c79d35e9322efc0b9c0415f49 (diff) | |
download | DotNetOpenAuth-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.proj | 30 |
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><%@ Register Assembly="DotNetOpenAuth[^"]+"</Pattern> + <Replacement><%@ 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="DotNetOpenAuth([^,]+), DotNetOpenAuth([^"]+)"</Pattern> + <Replacement>type="DotNetOpenAuth$1, DotNetOpenAuth"</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='<%@ Register Assembly="DotNetOpenAuth[^"]+"' - Replacement='<%@ 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="DotNetOpenAuth([^,]+), DotNetOpenAuth([^"]+)"' - Replacement='type="DotNetOpenAuth$1, DotNetOpenAuth"' - Condition=" '%(Extension)' == '.config' " /> + Files="@(DropSamplesFilesFixups)" + Pattern="%(Pattern)" + Replacement="%(Replacement)" /> <DowngradeProjects Projects="@(SampleProjectTargets);@(SampleSolutionTargets)" DowngradeMvc2ToMvc1="$(DowngradeMvc2ToMvc1)" |