Quantcast
Channel: SharpDevelop Community
Viewing all 1764 articles
Browse latest View live

WindowsFormsIntegration error

$
0
0

i cant start StartDeveleop. its showing this error. pls help

i get similar error in ilspy with rexil plugin

SharpDevelop Version : 4.4.1.9729-7196a277
.NET Version         : 4.0.30319.34209
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (India) (en-IN)
Current UI language  : en-US
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 27156kb
GC Heap Memory       : 1973kb

Unhandled exception terminated SharpDevelop
Exception thrown:
System.IO.FileNotFoundException: Could not load file or assembly 'WindowsFormsIntegration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'WindowsFormsIntegration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.InitializeWorkbench()
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings)
   at ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings)
   at ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()
   at ICSharpCode.SharpDevelop.SharpDevelopMain.Run()
   at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[ args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


---- Recent log messages:
18:11:14.712 [1] INFO - InitSharpDevelop...
18:11:14.746 [1] INFO - Looking for AddIns...
18:11:14.786 [1] INFO - Loading AddInTree...
18:11:14.838 [1] INFO - Running autostart commands...
18:11:14.839 [1] INFO - Loading addin GitAddIn
18:11:14.846 [1] INFO - Loading addin Subversion AddIn
18:11:14.854 [1] INFO - InitSharpDevelop finished
18:11:14.854 [1] INFO - Initializing workbench...
18:11:14.871 [1] INFO - Leaving RunApplication()
18:11:14.872 [1] FATAL - System.IO.FileNotFoundException: Could not load file or assembly 'WindowsFormsIntegration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'WindowsFormsIntegration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.InitializeWorkbench()
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)
   at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings)
   at ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings)
   at ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()
   at ICSharpCode.SharpDevelop.SharpDevelopMain.Run()
   at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[ args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


---- Post-error application state information:
Installed 3rd party AddIns:


System.Management

$
0
0

Just move my project made C#  .Net 2.0 by VS2005 and CSC  to SharpDevelop 5 .Net4.5

using System.Management; in list, as for C#  .Net 2.0 but mistake reference to

ManagementObjectSearcher objects = new ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMemory");

Probably the question in System.Management.dll for .Net4.5

Because if I use System.Management.dll open from .Net 2.0, no mistake indicated just no function in

if  (System.Environment.Version.ToString().Trim().Equals("XXXXXXXXXXXX"))

Question: wich way update .Net4.5 System.Management.dll for functions of System.Environment , the best for motherboardID )))

Corruption of Designer.cs

$
0
0

Hello,

Using SharpDev 5.1 for C# with windows components.

Afte rmoving, adding, renaming  or creating any controls at all the designer.cs becomes corrupted, essentially either removing Initialize() from the start of the file, re-adding the component definitions or adding a trucated re-starting of the designer at the end of the file.

If then generates errors accordingly (no def for Init, duplicate defs or EOF expected/not expected).

 

How do I remove adn recreate the designer without loosing all of my layout, events and so on, or otherwise correct this [mis]behavior?

 

csc/target:winexe c:\*.cs

$
0
0

for same resul, push to trey, how I should made compilation? I don't like blak window )))

why do not have 'Design' tab in Vb of sharpDevelop 5.1

$
0
0

why do not have 'Design' tab in Vb of sharpDevelop 5.1, i can get into 'Form design' interface.

 

there is  'Design' tab in C#, why?

unhandle exception

$
0
0

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5

.NET Version         : 4.5.50709

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : Chinese (Simplified, PRC) (zh-CN)

Current UI language  : en

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 204500kb

GC Heap Memory       : 71800kb

 

Exception thrown:

Debugger.DebuggerException: Evaluation can not be stopped

   at Debugger.Eval.WaitForResult()

   at Debugger.Eval.InvokeMethod(Thread evalThread, IMethod method, Value thisValue, Value[ args)

   at Debugger.Value.InvokeToString(Thread evalThread, Int32 maxLength)

   at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()

   at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)

   at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()

   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

   at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.RefreshPads()

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_DebuggingPaused(Object sender, DebuggerPausedEventArgs e)

   at Debugger.Process.OnPaused(DebuggerPausedEventArgs e)

   at Debugger.ManagedCallback.<>c__DisplayClass13_0.<ExitCallback>b__0()

   at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()

   at Debugger.MTA2STA.PerformCall()

   at Debugger.MTA2STA.PerformAllCalls()

   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Recent log messages:

15:03:22.949 [19] DEBUG - Received command ReportEvent

15:03:23.187 [19] DEBUG - Received command ReportEvent

15:03:23.188 [19] DEBUG - Received command ReportEvent

15:03:23.188 [19] DEBUG - Received command BuildDone

15:03:23.188 [19] INFO - Finished building CANDownload, success=True

15:03:23.195 [1] INFO - Debugger Command: Start (withDebugger=True)

15:03:23.196 [1] INFO - Saving layout file: C:\Users\Duan\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml

15:03:23.200 [1] INFO - Loading layout file: C:\Users\Duan\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml, hideAllLostPads=False

15:03:23.394 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)

15:03:23.394 [1] DEBUG - ChooseLayoutCommand.Run()

15:03:23.395 [1] INFO - Saving layout file: C:\Users\Duan\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml

15:03:33.187 [21] DEBUG - Telling worker process to exit

15:03:33.187 [21] DEBUG - Waiting for thread-join

15:03:33.189 [19] DEBUG - Cannot read from WorkerProcess 192916: end of stream

15:03:33.190 [19] DEBUG - Stopped reading from WorkerProcess 192916.

15:03:33.190 [19] DEBUG - Telling worker process to exit

15:03:33.190 [19] DEBUG - End of reader thread on WorkerProcess 192916.

15:03:33.191 [21] DEBUG - Joined!

15:03:33.841 [1] INFO - Open file d:\SharpDevelop\project\CANDownload\StateMachine.cs

15:03:33.906 [1] INFO - Evaluated node 'data' in 24 ms

15:03:33.946 [1] INFO - Evaluated node 'canobj' in 39 ms

15:03:33.952 [1] INFO - Evaluated node 'trans_totalms' in 5 ms

15:03:33.952 [1] INFO - Evaluated node 'trans_status' in 0 ms

15:03:33.957 [1] INFO - Evaluated node 'trans_start' in 5 ms

15:03:43.206 [1] ERROR - ThreadException caught

--> Exception:

Debugger.DebuggerException: Evaluation can not be stopped

   at Debugger.Eval.WaitForResult()

   at Debugger.Eval.InvokeMethod(Thread evalThread, IMethod method, Value thisValue, Value[ args)

   at Debugger.Value.InvokeToString(Thread evalThread, Int32 maxLength)

   at Debugger.AddIn.TreeModel.ValueNode.GetValueAndUpdateUI()

   at Debugger.AddIn.TreeModel.ValueNode..ctor(IImage image, String name, Func`1 getValue, Action`1 setValue)

   at Debugger.AddIn.TreeModel.ValueNode.<GetLocalVariables>d__14.MoveNext()

   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

   at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.RefreshPads()

   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_DebuggingPaused(Object sender, DebuggerPausedEventArgs e)

   at Debugger.Process.OnPaused(DebuggerPausedEventArgs e)

   at Debugger.ManagedCallback.<>c__DisplayClass13_0.<ExitCallback>b__0()

   at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()

   at Debugger.MTA2STA.PerformCall()

   at Debugger.MTA2STA.PerformAllCalls()

   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Post-error application state information:

Installed 3rd party AddIns: 

ProjectService.CurrentSolution: [Solution D:\SharpDevelop\project\CANDownload\CANDownload.sln with 1 projects]

ProjectService.CurrentProject: [CSharpProject: CANDownload]

Workbench.ActiveContent: [AvalonEditViewContent D:\SharpDevelop\project\CANDownload\StateMachine.cs]

Bug while adding Tweetinvi lib ref through Nuget

$
0
0

The bug report is attached below.

Note: the same process works in VS 2015 Community which I had to download to work with Tweetinvi.

------------------

SharpDevelop Version : 5.1.0.4936-Beta-3ea20cfa

.NET Version         : 4.6.01586

OS Version           : Microsoft Windows NT 6.3.9600.0

Current culture      : English (United States) (en-US)

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 159704kb

GC Heap Memory       : 21648kb

 

Unhandled WPF exception

Exception thrown:

System.InvalidOperationException: 'TweetinviAPI' already has a dependency defined for 'Autofac'.

   at NuGet.Manifest.ValidateDependencySets(IPackageMetadata metadata)

   at NuGet.Manifest.Validate(Manifest manifest)

   at NuGet.Manifest.ReadFrom(Stream stream, IPropertyProvider propertyProvider, Boolean validateSchema)

   at NuGet.LocalPackage.ReadManifest(Stream manifestStream)

   at NuGet.OptimizedZipPackage.EnsureManifest()

   at NuGet.OptimizedZipPackage..ctor(IFileSystem fileSystem, String packagePath)

   at NuGet.LocalPackageRepository.OpenPackage(String path)

   at NuGet.LocalPackageRepository.GetPackage(Func`2 openPackage, String path)

   at NuGet.LocalPackageRepository.<>c__DisplayClass13.<FindPackage>b__f(String path)

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)

   at NuGet.LocalPackageRepository.FindPackage(Func`2 openPackage, String packageId, SemanticVersion version)

   at NuGet.LocalPackageRepository.FindPackage(String packageId, SemanticVersion version)

   at NuGet.PackageRepositoryExtensions.FindPackage(IPackageRepository repository, String packageId, SemanticVersion version, IPackageConstraintProvider constraintProvider, Boolean allowPrereleaseVersions, Boolean allowUnlisted)

   at NuGet.DataServicePackage.EnsurePackage(IPackageCacheRepository cacheRepository)

   at NuGet.DataServicePackage.get_FrameworkAssemblies()

   at ICSharpCode.PackageManagement.PackageFromRepository.get_FrameworkAssemblies()

   at NuGet.PackageExtensions.HasProjectContent(IPackage package)

   at ICSharpCode.PackageManagement.IPackageExtensions.IsProjectPackage(IPackage package)

   at ICSharpCode.PackageManagement.PackageViewModel.IsProjectPackage(IPackage package)

   at ICSharpCode.PackageManagement.PackageViewModel.AddPackage()

   at ICSharpCode.PackageManagement.PackageViewModel.AddOrManagePackage()

   at ICSharpCode.PackageManagement.PackageViewModel.<CreateCommands>b__0(Object param)

   at ICSharpCode.PackageManagement.DelegateCommand.Execute(Object parameter)

   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

   at System.Windows.Controls.Primitives.ButtonBase.OnClick()

   at System.Windows.Controls.Button.OnClick()

   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)

   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)

   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)

   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

---- Recent log messages:

12:10:11.837 [1] INFO - Loading addin Search & Replace

12:10:11.858 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.ILanguageService

12:10:12.112 [1] DEBUG - Update Foldings

12:10:12.113 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Editor.Bookmarks.IBookmarkManager

12:10:12.137 [1] DEBUG - Trying to restore memento of '[AvalonEditViewContent E:\Programming Related\Code\TweetDownloader\TweetDownloader\Program.cs]' from key '1e13ec5:E:\PROGRAMMING RELATED\CODE\TWEETDOWNLOADER\TWEETDOWNLOADER\PROGRAM.CS'

12:10:12.193 [1] DEBUG - NavigationService -- resume logging

12:10:12.198 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent E:\Programming Related\Code\TweetDownloader\TweetDownloader\Program.cs]

12:10:12.198 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: Program.cs]

12:10:12.198 [1] INFO - CurrentProject changed to TweetDownloader

12:10:12.199 [1] DEBUG - NavigationService

ActiveViewContent: Program.cs

         Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}

12:10:12.199 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent E:\Programming Related\Code\TweetDownloader\TweetDownloader\Program.cs]

12:10:12.288 [1] INFO - Loading addin ASP.NET MVC Binding

12:10:12.294 [1] DEBUG - Service startup: ICSharpCode.UnitTesting.ITestService

12:10:12.306 [LoadSolutionProjects] DEBUG - TweetDownloader: ParseFiles() finished. 0 files were re-used from CC cache; 2 files were parsed (2 of those are serializable)

12:10:12.347 [1] DEBUG - Update Foldings

12:10:12.643 [7] DEBUG - Resolved (Line 25, Col 22) to 

12:10:12.762 [5] DEBUG - Git: OverlayIconManager Thread finished

12:10:13.451 [LoadSolutionProjects] DEBUG - LoadSolutionProjectsThread finished after 00:00:01.7801301

12:10:13.995 [5] DEBUG - Resolved (Line 25, Col 22) to 

12:10:17.057 [8] DEBUG - Resolved (Line 12, Col 17) to 

12:10:17.980 [1] WARN - Codon (AddSeparator) specified in the insertbefore of the [Codon: name = MenuItem, id = ManagePackages, addIn=C:\Program Files (x86)\SharpDevelop\5.1\bin\..\AddIns\Misc\PackageManagement\PackageManagement.addin] codon does not exist!

12:10:17.980 [1] WARN - Codon (AddSeparator) specified in the insertbefore of the [Codon: name = MenuItem, id = RestorePackages, addIn=C:\Program Files (x86)\SharpDevelop\5.1\bin\..\AddIns\Misc\PackageManagement\PackageManagement.addin] codon does not exist!

12:10:18.002 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

12:10:18.140 [1] INFO - Loading addin Package Management

12:10:35.028 [1] ERROR - Unhandled WPF exception

--> Exception:

System.InvalidOperationException: 'TweetinviAPI' already has a dependency defined for 'Autofac'.

   at NuGet.Manifest.ValidateDependencySets(IPackageMetadata metadata)

   at NuGet.Manifest.Validate(Manifest manifest)

   at NuGet.Manifest.ReadFrom(Stream stream, IPropertyProvider propertyProvider, Boolean validateSchema)

   at NuGet.LocalPackage.ReadManifest(Stream manifestStream)

   at NuGet.OptimizedZipPackage.EnsureManifest()

   at NuGet.OptimizedZipPackage..ctor(IFileSystem fileSystem, String packagePath)

   at NuGet.LocalPackageRepository.OpenPackage(String path)

   at NuGet.LocalPackageRepository.GetPackage(Func`2 openPackage, String path)

   at NuGet.LocalPackageRepository.<>c__DisplayClass13.<FindPackage>b__f(String path)

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)

   at NuGet.LocalPackageRepository.FindPackage(Func`2 openPackage, String packageId, SemanticVersion version)

   at NuGet.LocalPackageRepository.FindPackage(String packageId, SemanticVersion version)

   at NuGet.PackageRepositoryExtensions.FindPackage(IPackageRepository repository, String packageId, SemanticVersion version, IPackageConstraintProvider constraintProvider, Boolean allowPrereleaseVersions, Boolean allowUnlisted)

   at NuGet.DataServicePackage.EnsurePackage(IPackageCacheRepository cacheRepository)

   at NuGet.DataServicePackage.get_FrameworkAssemblies()

   at ICSharpCode.PackageManagement.PackageFromRepository.get_FrameworkAssemblies()

   at NuGet.PackageExtensions.HasProjectContent(IPackage package)

   at ICSharpCode.PackageManagement.IPackageExtensions.IsProjectPackage(IPackage package)

   at ICSharpCode.PackageManagement.PackageViewModel.IsProjectPackage(IPackage package)

   at ICSharpCode.PackageManagement.PackageViewModel.AddPackage()

   at ICSharpCode.PackageManagement.PackageViewModel.AddOrManagePackage()

   at ICSharpCode.PackageManagement.PackageViewModel.<CreateCommands>b__0(Object param)

   at ICSharpCode.PackageManagement.DelegateCommand.Execute(Object parameter)

   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

   at System.Windows.Controls.Primitives.ButtonBase.OnClick()

   at System.Windows.Controls.Button.OnClick()

   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)

   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)

   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)

   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

---- Post-error application state information:

Installed 3rd party AddIns: 

ProjectService.CurrentSolution: [Solution E:\Programming Related\Code\TweetDownloader\TweetDownloader.sln with 1 projects]

ProjectService.CurrentProject: [CSharpProject: TweetDownloader]

Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad

-----------------------

imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found

$
0
0

 I received a project from a colleague who is using Microsoft Visual Studio.  He sent it in a 'RAR' file.   I 'unziped' the project into a folder and then tried to open the .csproj file.
I got the error below.  I do not have MS Visual Studio installed on my PC.  Is there any simple way to "convert" this Project to a SharpDevelop project file?

Here is the full Error Message on the opening of the .csproj file.

Can't load file GetSAPMaterialDescription.csproj under C:\Users\pearcth001\Documents\_Logistics IT\z dotNet\GetSAPMaterialDescription.
Check the file permission and the existence of that file.

The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  C:\Users\pearcth001\Documents\_Logistics IT\z dotNet\GetSAPMaterialDescription\GetSAPMaterialDescription.csproj


Are you still active?

$
0
0

Hello,

The #dev project has been a godsend for me to be honest.

I am wondering if the project and forums are still active?

 

 

 

Search-result window jumping around

$
0
0

When performing a search, the search result window looses its position on the monitor and i frweh window inside the main window is allocated.

This happens with 5.1.0.5216-0e58df71, but it has previously happened as well.

I'm not sure whether this a bug or a feature; to me this is a bug.

 

 

 

 

Windows SDK in Windows 8

$
0
0

Hello, 

I am trying to create a c++ dll with SharpDevelop 5.1.0.5134 RC on a Windows 8 system. I have installed the Windows SDK, but SharpDevelop keeps giving me the same error: 

" Please ensure that the Windows SDK is installed on your computer.

The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. C:\Users\Me\Documents\SharpDevelop Projects\test\test\test.vcxproj" 

I have no Idea what is meant with the "<Import> declaration". Is this a setting or system variable that I have to configure?

 

After some searching I also found the following information about Windows SDK for Windows 8:

"The Windows SDK no longer ships with a complete command-line build environment. The Windows SDK now requires a compiler and build environment to be installed separately. By removing the command-line build environment, the Windows SDK no longer ships the following components: Windows SDK Platform Toolset, Visual C++ Compilers and C Runtime (CRT), and Windows SDK Configuration Tool.". Does that mean mine is a lost cause or is there another source for these tools as they seem fairly important....

 

I really hope someone can help me out here. Tomorrow I will try to do the same thing on a Windows 7 system, I hope the Windows SDK will be detected there, but if there are any settings I have to provide, please tell me where to do this.

Many thanks in advance, Nico

Does 5.1 not support python?

$
0
0

i install sharpdevelop 5.1,cant find python project that was found in 4.4 version

Unhandled WPF exception

$
0
0

SharpDevelop Version : 4.4.2.9749-39bf891c
.NET Version         : 4.0.30319.42000
OS Version           : Microsoft Windows NT 6.2.9200.0
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 156756kb
GC Heap Memory       : 37370kb

Unhandled WPF exception
Exception thrown:
System.Runtime.InteropServices.COMException (0x80131301): Process was terminated. (Exception from HRESULT: 0x80131301)
   at Debugger.Interop.CorDebug.ICorDebugProcess.__Stop(UInt32 dwTimeoutIgnored)
   at Debugger.Process.AsyncTerminate()
   at Debugger.Process.Terminate()
   at ICSharpCode.SharpDevelop.Services.WindowsDebugger.Stop()
   at ICSharpCode.SharpDevelop.Debugging.DebuggerService.OnBeforeSolutionClosing(Object sender, SolutionCancelEventArgs e)
   at ICSharpCode.SharpDevelop.Project.ProjectService.OnBeforeSolutionClosing(SolutionCancelEventArgs e)
   at ICSharpCode.SharpDevelop.Project.ProjectService.IsClosingCanceled()
   at ICSharpCode.SharpDevelop.Gui.WpfWorkbench.OnClosing(CancelEventArgs e)
   at System.Windows.Window.WmClose()
   at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
22:21:57.546 [1] DEBUG - Debugger: Callback: LoadModule C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll
22:21:57.551 [1] DEBUG - Debugger: Callback: LoadAssembly
22:21:57.551 [1] DEBUG - Debugger: Callback: LoadModule C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
22:21:57.562 [1] DEBUG - Debugger: Callback: LoadAssembly
22:21:57.562 [1] DEBUG - Debugger: Callback: LoadModule C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
22:22:03.316 [1] DEBUG - Debugger: Callback: LoadAssembly
22:22:03.316 [1] DEBUG - Debugger: Callback: LoadModule C:\WINDOWS\assembly\GAC\Microsoft.mshtml\7.0.3300.0__b03f5f7f11d50a3a\Microsoft.mshtml.dll
22:22:03.336 [1] DEBUG - Debugger: Callback: Exception
22:22:03.336 [1] DEBUG - Debugger: Process has queued callbacks
22:22:03.346 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_FIRST_CHANCE)
22:22:03.348 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_CATCH_HANDLER_FOUND)
22:22:03.351 [1] DEBUG - Debugger: Callback: CreateThread 2304
22:22:03.366 [1] DEBUG - Debugger: Callback: CreateThread 11260
22:22:05.990 [11] DEBUG - Telling worker process to exit
22:22:05.990 [11] DEBUG - Waiting for thread-join
22:22:05.991 [7] DEBUG - Cannot read from WorkerProcess 9356: end of stream
22:22:05.991 [7] DEBUG - Stopped reading from WorkerProcess 9356.
22:22:05.991 [7] DEBUG - Telling worker process to exit
22:22:05.991 [7] DEBUG - End of reader thread on WorkerProcess 9356.
22:22:05.991 [11] DEBUG - Joined!
22:22:20.766 [1] DEBUG - Debugger: Callback: Exception
22:22:20.766 [1] DEBUG - Debugger: Process has queued callbacks
22:22:20.768 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_FIRST_CHANCE)
22:22:20.769 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_CATCH_HANDLER_FOUND)
22:22:26.236 [1] DEBUG - Debugger: Callback: CreateThread 11096

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [AvalonEditViewContent D:\mr-college-al-results\Program.vb]
ProjectService.OpenSolution: [Solution: FileName=D:\mr-college-al-results\MR College AL Results.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [VBNetProject: MR College AL Results]

Will ILSpy work on a 32 bit machine

$
0
0

I'm in a situation where I can't test out ILSpy to see if it works until it gets approved by my IT dept.  I have a desktop application that will only run on a 32 bit machine.  Will ILSpy work on 32 bit dlls and exes?

 

AvalonEdit How change color of ¶ (pilcrow --> end of line)

$
0
0

Hi there's any way to change the lightgray color of ¶ pilcrow character? this appear when choose Option.EndOfLine

thanks in advance Luka


Version 5 VB Support

$
0
0

Sorry if this has been answered before, I cant find the answer any such way.

Will version 5 gain VB language support ?

 

Error loading references

$
0
0

Eu instalei o SharpDevelop e ao criar minha primeira solução tenho erro ao carregar referencias para o arquivo(Loading references to "file name"). No load. Fica apenas loading e se clico em algum local o programa não responde ( SharpDelevolp não está respondendo).

 

Me ajude. Desde já agradeço. Sou novo usuário em SharpDevelop.

Add reference problem

$
0
0

I have added these three references to my solution using References/Add reference option :

Microsoft.DirectX
Microsoft.DirectX.Direct3D
Microsoft.DirectX.Direct3DX;


After that, above references can be seen inside Project / References folder.

Then I have typed in using directives to program code:

using Microsoft.DirectX;using Microsoft.DirectX.Direct3D;using Microsoft.DirectX.Direct3DX;


When I have tried to build program, this error message came up:

The type or namespace name 'Direct3DX' does not exist in the namespace 'Microsoft.DirectX' (are you missing an assembly reference?) (CS0234) - D:\PROJEKTI\Teren\Teren\Graphical_Matrix_Representation.cs:64,25.

How this error is possible when reference exists inside Project / References folder ?


I have read most of the answers to similar questions but there is no solution to my problem.

I have tried to download Microsoft.DirectX.Direct3DX.dll and manually add reference to the project, but there is same error.

Is there a sharp develop substitute for Microsoft DirectX.

 

Unhandled exception

$
0
0

SharpDevelop Version : 4.4.1.9729-7196a277

.NET Version         : 4.0.30319.42000

OS Version           : Microsoft Windows NT 6.2.9200.0

Current culture      : English (South Africa) (en-ZA)

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 50688kb

GC Heap Memory       : 4067kb

 

Unhandled exception

Exception thrown:

System.Configuration.ConfigurationErrorsException: The type 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior, Microsoft.VisualStudio.Diagnostics.ServiceModelSink, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' registered for extension 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior' could not be loaded. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line 238)

   at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[ keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)

   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)

   at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)

   at System.Configuration.ConfigurationManager.GetSection(String sectionName)

   at System.ServiceModel.Activation.AspNetEnvironment.UnsafeGetSectionFromConfigurationManager(String sectionPath)

   at System.ServiceModel.Activation.AspNetEnvironment.UnsafeGetConfigurationSection(String sectionPath)

   at System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedSection(ContextInformation evalContext, String sectionPath)

   at System.ServiceModel.Description.ConfigLoader.LookupCommonBehaviors(ContextInformation context)

   at System.ServiceModel.Description.ConfigLoader.LoadCommonClientBehaviors(ServiceEndpoint serviceEndpoint)

   at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration)

   at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)

   at System.ServiceModel.ChannelFactory.InitializeEndpoint(Binding binding, EndpointAddress address)

   at System.ServiceModel.ChannelFactory`1..ctor(Binding binding, EndpointAddress remoteAddress)

   at System.ServiceModel.ClientBase`1..ctor(Binding binding, EndpointAddress remoteAddress)

   at ICSharpCode.UsageDataCollector.UsageDataUploader.StartUpload(Binding binding, EndpointAddress endpoint)

   at ICSharpCode.UsageDataCollector.UsageDataUploader.StartUpload(String uploadUrl)

   at ICSharpCode.UsageDataCollector.AnalyticsMonitor.<>c__DisplayClassa.<OpenSession>b__6(Object param0)

   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

 

---- Recent log messages:

13:22:59.440 [1] INFO - InitSharpDevelop...

13:22:59.488 [1] INFO - Looking for AddIns...

13:22:59.492 [1] INFO - Loading AddInTree...

13:22:59.545 [1] INFO - Running autostart commands...

13:22:59.551 [1] INFO - Loading addin Usage Data Collector

13:22:59.553 [1] INFO - Loading addin GitAddIn

13:22:59.554 [1] INFO - Loading addin Subversion AddIn

13:23:01.248 [1] INFO - InitSharpDevelop finished

13:23:01.252 [1] INFO - Initializing workbench...

13:23:02.480 [1] INFO - Loading addin SharpDevelop

13:23:02.506 [1] WARN - Codon (FindNextSelected) specified in the insertafter of the [Codon: name = MenuItem, id = Replace, addIn=C:\Program Files (x86)\SharpDevelop\4.4\bin\..\AddIns\Misc\SearchAndReplace\SearchAndReplace.addin] codon does not exist!

13:23:02.609 [5] FATAL - UnhandledException caught

--> Exception:

System.Configuration.ConfigurationErrorsException: The type 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior, Microsoft.VisualStudio.Diagnostics.ServiceModelSink, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' registered for extension 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior' could not be loaded. (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config line 238)

   at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[ keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)

   at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)

   at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)

   at System.Configuration.ConfigurationManager.GetSection(String sectionName)

   at System.ServiceModel.Activation.AspNetEnvironment.UnsafeGetSectionFromConfigurationManager(String sectionPath)

   at System.ServiceModel.Activation.AspNetEnvironment.UnsafeGetConfigurationSection(String sectionPath)

   at System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedSection(ContextInformation evalContext, String sectionPath)

   at System.ServiceModel.Description.ConfigLoader.LookupCommonBehaviors(ContextInformation context)

   at System.ServiceModel.Description.ConfigLoader.LoadCommonClientBehaviors(ServiceEndpoint serviceEndpoint)

   at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration)

   at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)

   at System.ServiceModel.ChannelFactory.InitializeEndpoint(Binding binding, EndpointAddress address)

   at System.ServiceModel.ChannelFactory`1..ctor(Binding binding, EndpointAddress remoteAddress)

   at System.ServiceModel.ClientBase`1..ctor(Binding binding, EndpointAddress remoteAddress)

   at ICSharpCode.UsageDataCollector.UsageDataUploader.StartUpload(Binding binding, EndpointAddress endpoint)

   at ICSharpCode.UsageDataCollector.UsageDataUploader.StartUpload(String uploadUrl)

   at ICSharpCode.UsageDataCollector.AnalyticsMonitor.<>c__DisplayClassa.<OpenSession>b__6(Object param0)

   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

   at System.Threading.ThreadPoolWorkQueue.Dispatch()

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

13:23:02.759 [5] FATAL - Runtime is terminating because of unhandled exception.

13:23:02.790 [1] INFO - Loading addin AvalonEdit.AddIn

13:23:02.802 [1] INFO - Loading addin CodeCoverageAddIn

13:23:02.802 [1] INFO - Loading addin Unit Testing Addin

 

---- Post-error application state information:

Installed 3rd party AddIns: 

Using SharpDevelop with Xamarin.Forms Windows projects - A numeric comparison was attempted...

$
0
0

Hello, I'm trying to use SharpDevelop with Xamarin.Forms projects which were created using Visual Studio 2015 community edition. Android projects seem to be working OK so far, and I know I can't build iOS projects because I don't have a Mac, but SharpDevelop seems to be unable to load projects for Windows 10 Universal (.UWP.csproj), Windows 8 Desktop (.Windows.csproj) or Windows 8 Phone (.WinPhone.csproj). Instead, an error is displayed similar to

ICSharpCode.SharpDevelop.Project.ProjectLoadException: A numeric comparison was attempted on "$(TargetPlatformMinVersion)" that evaluates to "10.0.10586.0" instead of a number, in condition "'$(TargetPlatformIdentifier)' == 'UAP' And '$(TargetPlatformMinVersion)' != '' And '$(TargetPlatformMinVersion)' > '10.0.10587.0'".  C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\Microsoft.Windows.UI.Xaml.Common.targets ---> Microsoft.Build.Exceptions.InvalidProjectFileException: A numeric comparison was attempted on "$(TargetPlatformMinVersion)" that evaluates to "10.0.10586.0" instead of a number, in condition "'$(TargetPlatformIdentifier)' == 'UAP' And '$(TargetPlatformMinVersion)' != '' And '$(TargetPlatformMinVersion)' > '10.0.10587.0'".  C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\Microsoft.Windows.UI.Xaml.Common.targets
   at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[ args)
   at Microsoft.Build.Evaluation.NumericComparisonExpressionNode.BoolEvaluate(IConditionEvaluationState state)
   at Microsoft.Build.Evaluation.AndExpressionNode.BoolEvaluate(IConditionEvaluationState state)
   at Microsoft.Build.Evaluation.GenericExpressionNode.Evaluate(IConditionEvaluationState state)
   at Microsoft.Build.Evaluation.ConditionEvaluator.EvaluateConditionCollectingConditionedProperties[P,I](String condition, ParserOptions options, Expander`2 expander, ExpanderOptions expanderOptions, Dictionary`2 conditionedPropertiesTable, String evaluationDirectory, ElementLocation elementLocation, ILoggingService loggingServices, BuildEventContext buildEventContext)
   at Microsoft.Build.Evaluation.Evaluator`4.EvaluateConditionCollectingConditionedProperties(ProjectElement element, ExpanderOptions expanderOptions, ParserOptions parserOptions)
   at Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyGroupElement(ProjectPropertyGroupElement propertyGroupElement)
   at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
   at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
   at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
   at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
   at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
   at Microsoft.Build.Evaluation.Evaluator`4.Evaluate()
   at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCache projectRootElementCache, BuildEventContext buildEventContext, ProjectInstance projectInstanceIfAnyForDebuggerOnly)
   at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation)
   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.GetEvaluatedProperty(String propertyName)
   at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.LoadProjectInternal(ProjectLoadInformation loadInformation)
   at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject..ctor(ProjectLoadInformation loadInformation)
   --- End of inner exception stack trace ---
   at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject..ctor(ProjectLoadInformation loadInformation)
   at ICSharpCode.SharpDevelop.Project.CompilableProject..ctor(ProjectLoadInformation information)
   at CSharpBinding.CSharpProject..ctor(ProjectLoadInformation loadInformation)
   at CSharpBinding.CSharpProjectBinding.LoadProject(ProjectLoadInformation loadInformation)
   at ICSharpCode.SharpDevelop.Project.SDProjectService.LoadProject(ProjectLoadInformation info)
   at ICSharpCode.SharpDevelop.Project.SolutionLoader.LoadProjectWithErrorHandling(ProjectLoadInformation projectInfo)

The problem appears to be that MSBuild is trying to compare a 4-part version number with a property which MSBuild is expecting to be numeric, and that MSBuild 14.0 allows this but MSBuild 12.0 doesn't. I've tried resolving this by changing any references to VisualStudioVersion or ToolsVersion in the project files from 12 or 12.0 to 14 or 14.0, but it just seems to move the problem to a similar error another condition somewhere else in the MSBuild target files, each time saying a numeric comparison was attempted with a 4-part version number, and it seems that for some reason it's MSBuild 12.0 attempting the comparison, even though I'm trying to use MSBuild 14.0.

If I use MSBuild Explorer to build the project, this particular problem seems to go away if I add the line

call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"

to the pre-build commands, seemingly enforcing the use of MSBuild 14.0 at all stages. Can I do something similar within SharpDevelop to tell it to use MSBuild 14.0 to load these projects?

Thanks

Simon

 

My SharpDevelop info:

SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version         : 4.6.01586
OS Version           : Microsoft Windows NT 6.3.9600.0
Current culture      : English (United Kingdom) (en-GB)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 410216kb
GC Heap Memory       : 231786kb

 

Viewing all 1764 articles
Browse latest View live