diff options
author | Lluis Sanchez <lluis@novell.com> | 2009-08-13 16:22:29 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2009-08-13 16:22:29 +0400 |
commit | 61401493fa75617de688a48473fc242a33b93d95 (patch) | |
tree | c8568e3248b0e6fcbc8bbb2a0d0bb8868ad66f7a /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates | |
parent | 23f607bf9746d76def92ea52ab007b8ce295d973 (diff) |
* MonoDevelop.Ide.Gui/ProjectOperations.cs:
* MonoDevelop.Ide.Templates/ProjectDescriptor.cs:
* MonoDevelop.Ide.Gui.Dialogs/GacReferencePanel.cs:
* MonoDevelop.Ide.Gui.Dialogs/SelectReferenceDialog.cs:
* MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs: Use the
new AssemblyContext class to query and resolve assemblies.
svn path=/trunk/monodevelop/; revision=139841
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectDescriptor.cs | 2 | ||||
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectDescriptor.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectDescriptor.cs index b4c7f1a901..e9666fdce4 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectDescriptor.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/ProjectDescriptor.cs @@ -99,7 +99,7 @@ namespace MonoDevelop.Ide.Templates // If SpecificVersion is not specified, then make sure the reference is // valid for the default runtime if (projectReference.ReferenceType == ReferenceType.Gac) { - string newRef = IdeApp.Workspace.ActiveRuntime.FindInstalledAssembly (projectReference.Reference, null, IdeApp.Services.ProjectService.DefaultTargetFramework); + string newRef = IdeApp.Workspace.ActiveRuntime.AssemblyContext.FindInstalledAssembly (projectReference.Reference, null, IdeApp.Services.ProjectService.DefaultTargetFramework); if (newRef != projectReference.Reference && newRef != null) projectReference = new ProjectReference (ReferenceType.Gac, newRef); } diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs index 8ebe2f07f6..d18631c62b 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs @@ -123,8 +123,8 @@ namespace MonoDevelop.Ide.Templates if (netProject != null) { // Add required references foreach (string aref in references) { - string res = netProject.TargetRuntime.GetAssemblyFullName (aref, netProject.TargetFramework); - res = netProject.TargetRuntime.GetAssemblyNameForVersion (res, netProject.TargetFramework); + string res = netProject.AssemblyContext.GetAssemblyFullName (aref, netProject.TargetFramework); + res = netProject.AssemblyContext.GetAssemblyNameForVersion (res, netProject.TargetFramework); if (!ContainsReference (netProject, res)) netProject.References.Add (new ProjectReference (ReferenceType.Gac, aref)); } |