diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-02-05 13:08:36 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-02-05 13:08:36 +0300 |
commit | 94d7fa1429f293873d0e55f7f5ad8c097434e481 (patch) | |
tree | 43dc8f884af268642a28a1fb7a860d367dccc38c /main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs | |
parent | 379f20e2db1ba66394887d8a416d4de858ab694a (diff) |
[Core] Misc model fixes
Replaced the SupportsX() methods in SolutionItem by a single method for
getting all supported features as a falgs enum.
Properly refresh the project builder when there are in-memory project changes.
Added new virtual methods for fast check build and handling of custom
solution data.
Diffstat (limited to 'main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs index 557faff76b..3a062edb35 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/CompiledAssemblyProject.cs @@ -201,30 +201,10 @@ namespace MonoDevelop.Projects return cmd; } - public override bool HasSlnData { - get { - return true; - } - } - - public override DataItem WriteSlnData () + internal protected override Task OnSave (ProgressMonitor monitor) { - DataSerializer ser = new DataSerializer (MSBuildProjectService.DataContext); - ser.SerializationContext.BaseFile = FileName; - ser.SerializationContext.DirectorySeparatorChar = '\\'; - DataItem data = (DataItem) ser.Serialize (this, typeof(CompiledAssemblyProject)); - return data; - } - - public override void ReadSlnData (DataItem item) - { - // Remove the default configuration, since new ones will be loaded - Configurations.Clear (); - - DataSerializer ser = new DataSerializer (MSBuildProjectService.DataContext); - ser.SerializationContext.BaseFile = FileName; - ser.SerializationContext.DirectorySeparatorChar = '\\'; - ser.Deserialize (this, item); + // Compiled assemblies can't be saved + return Task.FromResult (0); } } |