diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-06-04 13:03:05 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-06-04 13:03:05 +0300 |
commit | 5e38a397791c2740b69242d717075a678227fe5c (patch) | |
tree | ea69875f73790a308c1a16f0674f00f068fa25f1 /main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs | |
parent | bc39d03c24e385be00f41d543d577bc4a32177d1 (diff) |
BuildResult fixes
Replaced static properties BuildResult.Success and Cancel by creation methods
since BuildResult is not an immutable object. The method creates a new instance
every time.
Set the SourceTarget on BuildResult objects generated by a project.
Diffstat (limited to 'main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs index 918d3e9106..b4bab5a992 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs @@ -139,7 +139,7 @@ namespace MonoDevelop.Projects protected override Task<BuildResult> OnBuild (ProgressMonitor monitor, ConfigurationSelector configuration, OperationContext operationContext) { - return Task.FromResult (BuildResult.Success); + return Task.FromResult (BuildResult.CreateSuccess ()); } protected async override Task OnExecute (ProgressMonitor monitor, ExecutionContext context, ConfigurationSelector configuration) |