Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2007-04-19 15:38:51 +0400
committerLluis Sanchez <lluis@novell.com>2007-04-19 15:38:51 +0400
commitfae25576c07e3d16616255d5fb5fd2446f4a71f3 (patch)
treef1b53a29ead24795f9ef2865354777f7cbdf12ce /Extras/AspNetAddIn/Project/AspNetAppProject.cs
parentda2a3db3ac052094248571e74f4ff919f6bd46a8 (diff)
* Project/AspNetAppProject.cs: Track api changes.
* AspNetAddIn.addin.xml, Makefile.am: Added dependency to MonoDevelop.Deployment. * AspNetAddIn.mdp: Don't copy referenced assemblies. svn path=/trunk/monodevelop/; revision=75926
Diffstat (limited to 'Extras/AspNetAddIn/Project/AspNetAppProject.cs')
-rw-r--r--Extras/AspNetAddIn/Project/AspNetAppProject.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/Extras/AspNetAddIn/Project/AspNetAppProject.cs b/Extras/AspNetAddIn/Project/AspNetAppProject.cs
index a84b6132ee..961c87702a 100644
--- a/Extras/AspNetAddIn/Project/AspNetAppProject.cs
+++ b/Extras/AspNetAddIn/Project/AspNetAppProject.cs
@@ -39,7 +39,7 @@ using MonoDevelop.Core.ProgressMonitoring;
using MonoDevelop.Projects;
using MonoDevelop.Projects.Parser;
using MonoDevelop.Projects.Serialization;
-using MonoDevelop.Projects.Deployment;
+using MonoDevelop.Deployment;
using AspNetAddIn.Parser.Tree;
using AspNetAddIn.Parser;
@@ -47,7 +47,7 @@ using AspNetAddIn.Parser;
namespace AspNetAddIn
{
[DataInclude (typeof(AspNetAppProjectConfiguration))]
- public class AspNetAppProject : DotNetProject
+ public class AspNetAppProject : DotNetProject, IDeployable
{
//caching to avoid too much reparsing
//may have to drop at some point to avoid memory issues
@@ -140,24 +140,22 @@ namespace AspNetAddIn
#endregion
//custom version of GetDeployFiles which puts libraries in the bin directory
- public override DeployFileCollection GetDeployFiles ()
+ public DeployFileCollection GetDeployFiles ()
{
DeployFileCollection files = new DeployFileCollection ();
//add files that are marked to 'deploy'
foreach (ProjectFile pf in ProjectFiles)
if (pf.BuildAction == BuildAction.FileCopy)
- files.Add (new DeployFile (pf.FilePath, pf.RelativePath));
+ files.Add (new DeployFile (pf));
//add referenced libraries
- DeployFileCollection dfc = GetReferenceDeployFiles (false);
- foreach (DeployFile df in dfc)
- df.RelativeTargetPath = Path.Combine ("bin", df.RelativeTargetPath);
- files.AddRange (dfc);
+ foreach (string refFile in GetReferenceDeployFiles (false))
+ files.Add (new DeployFile (refFile, Path.Combine ("bin", Path.GetFileName (refFile)), TargetDirectory.ProgramFiles));
//add the compiled output file
string outputFile = this.GetOutputFileName ();
- if ( !string.IsNullOrEmpty (outputFile))
+ if (!string.IsNullOrEmpty (outputFile))
files.Add (new DeployFile (outputFile, Path.Combine ("bin", Path.GetFileName (outputFile)), TargetDirectory.ProgramFiles));
return files;