summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-07-21 19:45:12 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-07-21 19:45:12 -0700
commit75711ac4d618f0e95159e70709dbefbd026bfa61 (patch)
tree115738eaf5982a7e4ec627bd113a66cab76f6cd4
parent9533f64c85a79b80fb51843d151fa2046dc62b9c (diff)
downloadDotNetOpenAuth-75711ac4d618f0e95159e70709dbefbd026bfa61.zip
DotNetOpenAuth-75711ac4d618f0e95159e70709dbefbd026bfa61.tar.gz
DotNetOpenAuth-75711ac4d618f0e95159e70709dbefbd026bfa61.tar.bz2
Fixed VSIs to use the 2008 projects.
-rw-r--r--lib/DotNetOpenAuth.BuildTasks.dllbin101376 -> 101376 bytes
-rw-r--r--lib/DotNetOpenAuth.BuildTasks.pdbbin243200 -> 245248 bytes
-rw-r--r--projecttemplates/projecttemplates.proj1
-rw-r--r--src/DotNetOpenAuth.BuildTasks/DowngradeProjects.cs23
4 files changed, 20 insertions, 4 deletions
diff --git a/lib/DotNetOpenAuth.BuildTasks.dll b/lib/DotNetOpenAuth.BuildTasks.dll
index 26367b6..48f4c6c 100644
--- a/lib/DotNetOpenAuth.BuildTasks.dll
+++ b/lib/DotNetOpenAuth.BuildTasks.dll
Binary files differ
diff --git a/lib/DotNetOpenAuth.BuildTasks.pdb b/lib/DotNetOpenAuth.BuildTasks.pdb
index 242acd9..9c5e9f6 100644
--- a/lib/DotNetOpenAuth.BuildTasks.pdb
+++ b/lib/DotNetOpenAuth.BuildTasks.pdb
Binary files differ
diff --git a/projecttemplates/projecttemplates.proj b/projecttemplates/projecttemplates.proj
index 0fa6068..6b38dda 100644
--- a/projecttemplates/projecttemplates.proj
+++ b/projecttemplates/projecttemplates.proj
@@ -211,6 +211,7 @@
Projects="@(ProjectTemplates2008Layout)"
Condition="'%(Extension)' == '.csproj'"
DowngradeMvc2ToMvc1="$(DowngradeMvc2ToMvc1)"
+ InPlaceDowngrade="true"
/>
<Purge Directories="$(ProjectTemplates2008LayoutPath)"
diff --git a/src/DotNetOpenAuth.BuildTasks/DowngradeProjects.cs b/src/DotNetOpenAuth.BuildTasks/DowngradeProjects.cs
index 2188cd0..2f09583 100644
--- a/src/DotNetOpenAuth.BuildTasks/DowngradeProjects.cs
+++ b/src/DotNetOpenAuth.BuildTasks/DowngradeProjects.cs
@@ -25,6 +25,14 @@ namespace DotNetOpenAuth.BuildTasks {
[Required]
public ITaskItem[] Projects { get; set; }
+ /// <summary>
+ /// Gets or sets a value indicating whether project files are downgraded and re-saved to the same paths.
+ /// </summary>
+ public bool InPlaceDowngrade { get; set; }
+
+ /// <summary>
+ /// Gets or sets the set of newly created project files. Empty if <see cref="InPlaceDowngrade"/> is <c>true</c>.
+ /// </summary>
[Output]
public ITaskItem[] DowngradedProjects { get; set; }
@@ -44,9 +52,12 @@ namespace DotNetOpenAuth.BuildTasks {
switch (GetClassification(taskItem)) {
case ProjectClassification.VS2010Project:
case ProjectClassification.VS2010Solution:
- string projectNameForVS2008 = Path.Combine(
- Path.GetDirectoryName(taskItem.ItemSpec),
- Path.GetFileNameWithoutExtension(taskItem.ItemSpec) + "-vs2008" + Path.GetExtension(taskItem.ItemSpec));
+ string projectNameForVS2008 = InPlaceDowngrade
+ ? taskItem.ItemSpec
+ : Path.Combine(
+ Path.GetDirectoryName(taskItem.ItemSpec),
+ Path.GetFileNameWithoutExtension(taskItem.ItemSpec) + "-vs2008" +
+ Path.GetExtension(taskItem.ItemSpec));
newProjectToOldProjectMapping[taskItem.ItemSpec] = projectNameForVS2008;
break;
}
@@ -131,7 +142,11 @@ namespace DotNetOpenAuth.BuildTasks {
}
}
- this.DowngradedProjects = createdProjectFiles.ToArray();
+ if (InPlaceDowngrade) {
+ this.DowngradedProjects = new ITaskItem[0];
+ } else {
+ this.DowngradedProjects = createdProjectFiles.ToArray();
+ }
return !this.Log.HasLoggedErrors;
}