Hello,
I just got a unhandled exception when replacing a project with the same name: to reproduce the issue I first created a project using the "WPF Application", named it Pazaak3. Only afterward did I realize I just picked the wrong template and went to File -> New -> Project and chose the "Windows Applications" template... gave it the same name as before and answered yes to both questions (overwrite and file(s) already exist) and then the crash.
Crash output:
"SharpDevelop Version : 5.1.0.5071-Beta 2-5f965cb9
.NET Version : 4.5.51209
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : Swedish (Sweden) (sv-SE)
Current UI language : en
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 132316kb
GC Heap Memory : 22120kb
Exception thrown:
System.InvalidOperationException: An equivalent project (a project with the same global properties and tools version) is already present in the project collection, with the path "C:\Users\Jocke\Documents\SharpDevelop Projects\Pazaak3\Pazaak3\Pazaak3.csproj". To load an equivalent into this project collection, unload this project first.
at Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[ args)
at Microsoft.Build.Evaluation.ProjectCollection.LoadedProjectCollection.AddProject(Project project)
at Microsoft.Build.Evaluation.ProjectCollection.OnAfterRenameLoadedProject(String oldFullPathIfAny, Project project)
at Microsoft.Build.Evaluation.Project.<Initialize>b__3(String oldFullPath)
at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project..ctor(ProjectRootElement xml, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
at ICSharpCode.SharpDevelop.Project.MSBuildInternals.LoadProject(ProjectCollection projectCollection, ProjectRootElement rootElement, IDictionary`2 globalProps)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.OpenConfiguration(String configuration, String platform)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.FindPropertyObject(String configuration, String platform, String propertyName, ProjectPropertyGroupElement& group, PropertyStorageLocations& location)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.SetPropertyInternal(String configuration, String platform, String propertyName, String newValue, PropertyStorageLocations location, Boolean treatPropertyValueAsLiteral)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.SetProperty(String configuration, String platform, String propertyName, String newValue, PropertyStorageLocations location, Boolean treatPropertyValueAsLiteral)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject..ctor(ProjectCreateInformation information)
at ICSharpCode.SharpDevelop.Project.CompilableProject..ctor(ProjectCreateInformation information)
at CSharpBinding.CSharpProject..ctor(ProjectCreateInformation info)
at CSharpBinding.CSharpProjectBinding.CreateProject(ProjectCreateInformation info)
at ICSharpCode.SharpDevelop.Templates.ProjectDescriptor.CreateProject(ProjectTemplateResult templateResults, String defaultLanguage, ISolutionFolder target)
at ICSharpCode.SharpDevelop.Templates.ProjectTemplateImpl.CreateProjects(ProjectTemplateOptions options)
at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.CreateProject()
at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.TryCreateProject(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
---- Recent log messages:
00:18:42.680 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Workbench.IDisplayBindingService
00:18:42.718 [1] INFO - Loading addin Search & Replace
00:18:42.729 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.ILanguageService
00:18:42.750 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Editor.Bookmarks.IBookmarkManager
00:18:42.752 [7] DEBUG - Git: OverlayIconManager Thread finished
00:18:42.756 [1] INFO - Loading addin WPF Designer AddIn
00:18:42.781 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent C:\Users\Jocke\Documents\SharpDevelop Projects\Pazaak3\Pazaak3\Window1.xaml]' from key '1e13ec5:C:\USERS\JOCKE\DOCUMENTS\SHARPDEVELOP PROJECTS\PAZAAK3\PAZAAK3\WINDOW1.XAML'
00:18:42.813 [14] DEBUG - Git: OverlayIconManager Thread started
00:18:42.814 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\Jocke\Documents\SharpDevelop Projects\Pazaak3\Pazaak3\Window1.xaml]
00:18:42.814 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Window1.xaml]
00:18:42.815 [1] INFO - CurrentProject changed to Pazaak3
00:18:42.815 [1] DEBUG - NavigationService
ActiveViewContent: Window1.xaml
Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
00:18:42.815 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\Jocke\Documents\SharpDevelop Projects\Pazaak3\Pazaak3\Window1.xaml]
00:18:42.826 [1] DEBUG - NavigationService -- suspend logging
00:18:42.826 [1] DEBUG - NavigationService -- resume logging
00:18:42.826 [1] DEBUG - NavigationService -- suspend logging
00:18:42.826 [1] DEBUG - NavigationService -- resume logging
00:18:42.853 [LoadSolutionProjects] DEBUG - Pazaak3: ParseFiles() finished. 0 files were re-used from CC cache; 5 files were parsed (4 of those are serializable)
00:18:42.879 [1] INFO - Loading addin ASP.NET MVC Binding
00:18:42.882 [1] DEBUG - Service startup: ICSharpCode.UnitTesting.ITestService
00:18:43.038 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.AvalonEdit.AddIn.resources, Version=5.1.0.5071, Culture=en, PublicKeyToken=null
00:18:43.038 [1] DEBUG - TypeResolutionService: AssemblyResolveEventHandler: ICSharpCode.AvalonEdit.AddIn.resources, Version=5.1.0.5071, Culture=en, PublicKeyToken=null
00:18:43.085 [LoadSolutionProjects] DEBUG - LoadSolutionProjectsThread finished after 00:00:00.4517719
00:18:43.113 [14] DEBUG - Git: OverlayIconManager Thread finished
00:22:25.768 [1] ERROR - ThreadException caught
--> Exception:
System.InvalidOperationException: An equivalent project (a project with the same global properties and tools version) is already present in the project collection, with the path "C:\Users\Jocke\Documents\SharpDevelop Projects\Pazaak3\Pazaak3\Pazaak3.csproj". To load an equivalent into this project collection, unload this project first.
at Microsoft.Build.Shared.ErrorUtilities.ThrowInvalidOperation(String resourceName, Object[ args)
at Microsoft.Build.Evaluation.ProjectCollection.LoadedProjectCollection.AddProject(Project project)
at Microsoft.Build.Evaluation.ProjectCollection.OnAfterRenameLoadedProject(String oldFullPathIfAny, Project project)
at Microsoft.Build.Evaluation.Project.<Initialize>b__3(String oldFullPath)
at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings)
at Microsoft.Build.Evaluation.Project..ctor(ProjectRootElement xml, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings)
at ICSharpCode.SharpDevelop.Project.MSBuildInternals.LoadProject(ProjectCollection projectCollection, ProjectRootElement rootElement, IDictionary`2 globalProps)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.OpenConfiguration(String configuration, String platform)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.FindPropertyObject(String configuration, String platform, String propertyName, ProjectPropertyGroupElement& group, PropertyStorageLocations& location)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.SetPropertyInternal(String configuration, String platform, String propertyName, String newValue, PropertyStorageLocations location, Boolean treatPropertyValueAsLiteral)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.SetProperty(String configuration, String platform, String propertyName, String newValue, PropertyStorageLocations location, Boolean treatPropertyValueAsLiteral)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject..ctor(ProjectCreateInformation information)
at ICSharpCode.SharpDevelop.Project.CompilableProject..ctor(ProjectCreateInformation information)
at CSharpBinding.CSharpProject..ctor(ProjectCreateInformation info)
at CSharpBinding.CSharpProjectBinding.CreateProject(ProjectCreateInformation info)
at ICSharpCode.SharpDevelop.Templates.ProjectDescriptor.CreateProject(ProjectTemplateResult templateResults, String defaultLanguage, ISolutionFolder target)
at ICSharpCode.SharpDevelop.Templates.ProjectTemplateImpl.CreateProjects(ProjectTemplateOptions options)
at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.CreateProject()
at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.TryCreateProject(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution C:\Users\Jocke\Documents\SharpDevelop Projects\Pazaak3\Pazaak3.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: Pazaak3]
Workbench.ActiveContent: [AvalonEditViewContent C:\Users\Jocke\Documents\SharpDevelop Projects\Pazaak3\Pazaak3\Window1.xaml]"
Dxdiag:
Time of this report: 5/1/2015, 00:24:11
Machine name: JOAKIM
Operating System: Windows 7 Professional 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.150316-1654)
Language: Swedish (Regional Setting: Swedish)
System Manufacturer: Gigabyte Technology Co., Ltd.
System Model: To be filled by O.E.M.
BIOS: BIOS Date: 02/21/12 15:12:36 Ver: 04.06.05
Processor: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (8 CPUs), ~3.9GHz
Memory: 8192MB RAM
Available OS Memory: 8154MB RAM
Page File: 3176MB used, 13130MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 11
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 96 DPI (100 percent)
DWM DPI Scaling: Disabled
DxDiag Version: 6.01.7601.17514 32bit Unicode