Closed danieleads closed 8 years ago
By the way, this is a great idea and I would love to help in whatever way I can to get this working. I'm an admin rather than a developer, so I'm afraid I'm fairly useless debugging the actual issue. But I have XamarinStudio installed and am happy to compile / test any code changes.
Ideally you should not need to build a .NET application from source when using it on another platform, so what you tried ought to work. That said, I would still suggest, that you try to download the source code and build it on your OSX. I did that on Linux with Xamarin, which worked without any code changes, and probably the same approach should work on OSX. There could easily be some issues with the executable because of the target CPU, that is automatically resolved when building it yourself.
I don't have a Mac, nor do I know anyone nearby with a Mac, so it is difficult for me to test it myself.
Get the mono SDK from http://www.mono-project.com/download/#download-mac and use xbuild to compile the StopWatch.sln solution. Let me know if you get any compile errors - I'll be able to help with that.
Cheers and thanks for trying this out on OSX! :-)
Build FAILED.
Warnings:
/Users/deads/Downloads/jirastopwatch-1.5.0/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/Downloads/jirastopwatch-1.5.0/source/StopWatch/StopWatch.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Reference 'RestSharp' not resolved
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Reference 'System.Deployment' not resolved
Errors:
/Users/deads/Downloads/jirastopwatch-1.5.0/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/Downloads/jirastopwatch-1.5.0/source/StopWatch/StopWatch.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->
JiraClient.cs(16,7): error CS0246: The type or namespace name `RestSharp' could not be found. Are you missing an assembly reference?
JiraClient.cs(242,17): error CS0246: The type or namespace name `RestClient' could not be found. Are you missing an assembly reference?
2 Warning(s)
2 Error(s)
You need this package http://restsharp.org/
I cannot right now remember, how I did the build on Linux/Mono. It's getting late now, but I can have a look at it tomorrow and get you some more feedback.
Cool - was able to figure out how to add the package directly from Xamarin. Now I see the following Warning only when building:
Build succeeded.
Warnings:
/Users/deads/Downloads/jirastopwatch-1.5.0/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/Downloads/jirastopwatch-1.5.0/source/StopWatch/StopWatch.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Reference 'System.Deployment' not resolved
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.4387850
So the .exe builds, but then throws this when trying to run it:
ITHAA1DEADS:Debug deads$ mono StopWatch.exe
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at StopWatch.MainForm.MainForm_Resize (System.Object sender, System.EventArgs e) <0x6db6538 + 0x00012> in <filename unknown>:0
at System.Windows.Forms.Control.OnResizeInternal (System.EventArgs e) <0x33a04a0 + 0x00067> in <filename unknown>:0
at System.Windows.Forms.Control.OnResize (System.EventArgs e) <0x33a0480 + 0x0001a> in <filename unknown>:0
at System.Windows.Forms.Form.OnResize (System.EventArgs e) <0x6db0d90 + 0x00017> in <filename unknown>:0
at System.Windows.Forms.Control.OnSizeChanged (System.EventArgs e) <0x33a03a0 + 0x00025> in <filename unknown>:0
at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) <0x339ff08 + 0x001e8> in <filename unknown>:0
at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32 width, Int32 height) <0x33af408 + 0x000e3> in <filename unknown>:0
at System.Windows.Forms.Control.SetBoundsCoreInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x33aef78 + 0x0034b> in <filename unknown>:0
at System.Windows.Forms.Control.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x33aef38 + 0x00036> in <filename unknown>:0
at System.Windows.Forms.Form.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x6db08f0 + 0x000ff> in <filename unknown>:0
at System.Windows.Forms.Control.SetBoundsInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x33a5968 + 0x001ae> in <filename unknown>:0
at System.Windows.Forms.Control.SetBounds (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x33a58a8 + 0x000a3> in <filename unknown>:0
at System.Windows.Forms.Control.ScaleControl (SizeF factor, BoundsSpecified specified) <0x6db62c0 + 0x000bf> in <filename unknown>:0
at System.Windows.Forms.ScrollableControl.ScaleControl (SizeF factor, BoundsSpecified specified) <0x6db6288 + 0x00027> in <filename unknown>:0
at System.Windows.Forms.Form.ScaleControl (SizeF factor, BoundsSpecified specified) <0x6db6250 + 0x00027> in <filename unknown>:0
at System.Windows.Forms.Control.Scale (SizeF factor) <0x6db5db8 + 0x001a0> in <filename unknown>:0
at System.Windows.Forms.ContainerControl.PerformAutoScale (Boolean called_by_scale) <0x6db30e0 + 0x00137> in <filename unknown>:0
at System.Windows.Forms.ContainerControl.PerformAutoScale () <0x6db30b0 + 0x0001b> in <filename unknown>:0
at System.Windows.Forms.ContainerControl.PerformDelayedAutoScale () <0x6db4da8 + 0x0001f> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.ContainerControl:PerformDelayedAutoScale ()
at System.Windows.Forms.Control.ResumeLayout (Boolean performLayout) <0x6da2590 + 0x00233> in <filename unknown>:0
at StopWatch.MainForm.InitializeComponent () <0x33b16d8 + 0x0165b> in <filename unknown>:0
at StopWatch.MainForm..ctor () <0x77de90 + 0x0002f> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) StopWatch.MainForm:.ctor ()
at StopWatch.Program.Main () <0x777f20 + 0x00073> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
at StopWatch.MainForm.MainForm_Resize (System.Object sender, System.EventArgs e) <0x6db6538 + 0x00012> in <filename unknown>:0
at System.Windows.Forms.Control.OnResizeInternal (System.EventArgs e) <0x33a04a0 + 0x00067> in <filename unknown>:0
at System.Windows.Forms.Control.OnResize (System.EventArgs e) <0x33a0480 + 0x0001a> in <filename unknown>:0
at System.Windows.Forms.Form.OnResize (System.EventArgs e) <0x6db0d90 + 0x00017> in <filename unknown>:0
at System.Windows.Forms.Control.OnSizeChanged (System.EventArgs e) <0x33a03a0 + 0x00025> in <filename unknown>:0
at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) <0x339ff08 + 0x001e8> in <filename unknown>:0
at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32 width, Int32 height) <0x33af408 + 0x000e3> in <filename unknown>:0
at System.Windows.Forms.Control.SetBoundsCoreInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x33aef78 + 0x0034b> in <filename unknown>:0
at System.Windows.Forms.Control.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x33aef38 + 0x00036> in <filename unknown>:0
at System.Windows.Forms.Form.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x6db08f0 + 0x000ff> in <filename unknown>:0
at System.Windows.Forms.Control.SetBoundsInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x33a5968 + 0x001ae> in <filename unknown>:0
at System.Windows.Forms.Control.SetBounds (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) <0x33a58a8 + 0x000a3> in <filename unknown>:0
at System.Windows.Forms.Control.ScaleControl (SizeF factor, BoundsSpecified specified) <0x6db62c0 + 0x000bf> in <filename unknown>:0
at System.Windows.Forms.ScrollableControl.ScaleControl (SizeF factor, BoundsSpecified specified) <0x6db6288 + 0x00027> in <filename unknown>:0
at System.Windows.Forms.Form.ScaleControl (SizeF factor, BoundsSpecified specified) <0x6db6250 + 0x00027> in <filename unknown>:0
at System.Windows.Forms.Control.Scale (SizeF factor) <0x6db5db8 + 0x001a0> in <filename unknown>:0
at System.Windows.Forms.ContainerControl.PerformAutoScale (Boolean called_by_scale) <0x6db30e0 + 0x00137> in <filename unknown>:0
at System.Windows.Forms.ContainerControl.PerformAutoScale () <0x6db30b0 + 0x0001b> in <filename unknown>:0
at System.Windows.Forms.ContainerControl.PerformDelayedAutoScale () <0x6db4da8 + 0x0001f> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.ContainerControl:PerformDelayedAutoScale ()
at System.Windows.Forms.Control.ResumeLayout (Boolean performLayout) <0x6da2590 + 0x00233> in <filename unknown>:0
at StopWatch.MainForm.InitializeComponent () <0x33b16d8 + 0x0165b> in <filename unknown>:0
at StopWatch.MainForm..ctor () <0x77de90 + 0x0002f> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) StopWatch.MainForm:.ctor ()
at StopWatch.Program.Main () <0x777f20 + 0x00073> in <filename unknown>:0
Heh the same error as the original... Okay I'll see if I can make something of it
I think I found the culprit. In MainForm_Resize I have a new feature that enables the window to be minimized to the system tray. This is partially done by accessing an object called NotifyIcon:
this.notifyIcon.Visible = true;
But NotifyIcon has not been implemented in Mono. So now I've completely disabled this feature when running on non-Windows OS'es.
Try to get latest source, compile it and try again.
Grabbed RestSharp from NuGet again, definitely got a different error this time:
ITHAA1DEADS:jirastopwatch-master deads$ xbuild StopWatch.sln
XBuild Engine Version 12.0
Mono, Version 4.2.2.0
Copyright (C) 2005-2013 Various Mono authors
Build started 2/25/2016 5:09:30 PM.
__________________________________________________
Project "/Users/deads/Downloads/jirastopwatch-master/StopWatch.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
Target Build:
Project "/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/StopWatch.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Target ResolveAssemblyReferences:
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Reference 'System.Deployment' not resolved
For searchpath {CandidateAssemblyFiles}
Warning: {CandidateAssemblyFiles} not supported currently
For searchpath {HintPathFromItem}
HintPath attribute not found
For searchpath {TargetFrameworkDirectory}
Considered target framework dir /Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5, assembly named 'System.Deployment' not found.
Considered target framework dir /Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Facades/, assembly named 'System.Deployment' not found.
For searchpath {PkgConfig}
Considered System.Deployment, but could not find in any pkg-config files.
For searchpath {GAC}
Considered System.Deployment, but could not find in the GAC.
For searchpath {RawFileName}
Considered 'System.Deployment' as a file, but the file does not exist
For searchpath bin/Debug/
Considered '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/System.Deployment' as a file, but the file does not exist
Considered '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/System.Deployment.exe' as a file, but the file does not exist
Considered '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/System.Deployment.dll' as a file, but the file does not exist
Target CopyFilesMarkedCopyLocal:
Copying file from '/Users/deads/Downloads/jirastopwatch-master/packages/RestSharp.105.2.3/lib/net45/RestSharp.dll' to '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/RestSharp.dll'
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
Target CoreCompile:
Tool /Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/StopWatch.exe /resource:obj/Debug/StopWatch.AboutForm.resources /resource:obj/Debug/StopWatch.WorklogForm.resources /resource:obj/Debug/StopWatch.IssueControl.resources /resource:obj/Debug/StopWatch.LoginForm.resources /resource:obj/Debug/StopWatch.MainForm.resources /resource:obj/Debug/StopWatch.Properties.Resources.resources /resource:obj/Debug/StopWatch.SettingsForm.resources AboutForm.cs AboutForm.Designer.cs CrossPlatformHelpers.cs DPApi.cs InvokeExtensions.cs PersistedIssue.cs JiraApi/SearchResult.cs JiraApi/Filter.cs Settings.cs WorklogForm.cs WorklogForm.Designer.cs JiraApi/Issue.cs IssueControl.cs JiraApi/IssueFields.cs JiraClient.cs JiraHelpers.cs LoginForm.cs LoginForm.Designer.cs MainForm.cs MainForm.Designer.cs Program.cs Properties/AssemblyInfo.cs SettingsForm.cs SettingsForm.Designer.cs WatchTimer.cs Properties/Resources.Designer.cs Properties/Settings.Designer.cs /target:winexe /warnaserror+ /define:"DEBUG;TRACE" /nostdlib /platform:AnyCPU /reference:../../packages/RestSharp.105.2.3/lib/net45/RestSharp.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/System.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/System.Xml.Linq.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/System.Data.DataSetExtensions.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.CSharp.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/System.Data.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/System.Drawing.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/System.Windows.Forms.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/System.Xml.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/System.Core.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/mscorlib.dll /warn:4
Target _CopyAppConfigFile:
Copying file from '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/App.config' to '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/StopWatch.exe.config'
Target DeployOutputFiles:
Copying file from '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/obj/Debug/StopWatch.exe.mdb' to '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/StopWatch.exe.mdb'
Copying file from '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/obj/Debug/StopWatch.exe' to '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/StopWatch.exe'
Done building project "/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/StopWatch.csproj".
Project "/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/StopWatchTest.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Created directory "bin/Debug/"
Created directory "obj/Debug/"
Target GetFrameworkPaths:
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.5.2' not supported by this toolset (ToolsVersion: 4.0).
Target GetReferenceAssemblyPaths:
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Unable to find framework corresponding to the target framework moniker '.NETFramework,Version=v4.5.2'. Framework assembly references will be resolved from the GAC, which might not be the intended behavior.
Target ResolveAssemblyReferences:
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Reference 'Microsoft.VisualStudio.QualityTools.UnitTestFramework' not resolved
For searchpath {CandidateAssemblyFiles}
Warning: {CandidateAssemblyFiles} not supported currently
For searchpath /Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages
Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/Microsoft.VisualStudio.QualityTools.UnitTestFramework' as a file, but the file does not exist
Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/Microsoft.VisualStudio.QualityTools.UnitTestFramework.exe' as a file, but the file does not exist
Considered '/Common Files/microsoft shared/VSTT/10.0/UITestExtensionPackages/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll' as a file, but the file does not exist
For searchpath {HintPathFromItem}
HintPath attribute not found
For searchpath {TargetFrameworkDirectory}
For searchpath {PkgConfig}
Considered Microsoft.VisualStudio.QualityTools.UnitTestFramework, but could not find in any pkg-config files.
For searchpath {GAC}
Considered Microsoft.VisualStudio.QualityTools.UnitTestFramework, but could not find in the GAC.
For searchpath {RawFileName}
Considered 'Microsoft.VisualStudio.QualityTools.UnitTestFramework' as a file, but the file does not exist
For searchpath bin/Debug/
Considered '/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/bin/Debug/Microsoft.VisualStudio.QualityTools.UnitTestFramework' as a file, but the file does not exist
Considered '/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/bin/Debug/Microsoft.VisualStudio.QualityTools.UnitTestFramework.exe' as a file, but the file does not exist
Considered '/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/bin/Debug/Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll' as a file, but the file does not exist
Target CopyFilesMarkedCopyLocal:
Copying file from '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/StopWatch.exe' to '/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/bin/Debug/StopWatch.exe'
Copying file from '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/StopWatch.exe.mdb' to '/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/bin/Debug/StopWatch.exe.mdb'
Copying file from '/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug/RestSharp.dll' to '/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/bin/Debug/RestSharp.dll'
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/StopWatchTest.dll JiraHelpersTest.cs Properties/AssemblyInfo.cs obj/Debug/.NETFramework,Version=v4.5.2.AssemblyAttribute.cs /target:library /define:"DEBUG;TRACE" /nostdlib /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll /reference:/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll /reference:/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/bin/Debug//StopWatch.exe /warn:4
CSC: error CS0518: The predefined type `System.Object' is not defined or imported
CSC: error CS0518: The predefined type `System.ValueType' is not defined or imported
CSC: error CS0518: The predefined type `System.Attribute' is not defined or imported
CSC: error CS0518: The predefined type `System.Int32' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt32' is not defined or imported
CSC: error CS0518: The predefined type `System.Int64' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt64' is not defined or imported
CSC: error CS0518: The predefined type `System.Single' is not defined or imported
CSC: error CS0518: The predefined type `System.Double' is not defined or imported
CSC: error CS0518: The predefined type `System.Char' is not defined or imported
CSC: error CS0518: The predefined type `System.Int16' is not defined or imported
CSC: error CS0518: The predefined type `System.Decimal' is not defined or imported
CSC: error CS0518: The predefined type `System.Boolean' is not defined or imported
CSC: error CS0518: The predefined type `System.SByte' is not defined or imported
CSC: error CS0518: The predefined type `System.Byte' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt16' is not defined or imported
CSC: error CS0518: The predefined type `System.String' is not defined or imported
CSC: error CS0518: The predefined type `System.Enum' is not defined or imported
CSC: error CS0518: The predefined type `System.Delegate' is not defined or imported
CSC: error CS0518: The predefined type `System.MulticastDelegate' is not defined or imported
CSC: error CS0518: The predefined type `System.Void' is not defined or imported
CSC: error CS0518: The predefined type `System.Array' is not defined or imported
CSC: error CS0518: The predefined type `System.Type' is not defined or imported
CSC: error CS0518: The predefined type `System.Collections.IEnumerator' is not defined or imported
CSC: error CS0518: The predefined type `System.Collections.IEnumerable' is not defined or imported
CSC: error CS0518: The predefined type `System.IDisposable' is not defined or imported
CSC: error CS0518: The predefined type `System.IntPtr' is not defined or imported
CSC: error CS0518: The predefined type `System.UIntPtr' is not defined or imported
CSC: error CS0518: The predefined type `System.RuntimeFieldHandle' is not defined or imported
CSC: error CS0518: The predefined type `System.RuntimeTypeHandle' is not defined or imported
CSC: error CS0518: The predefined type `System.Exception' is not defined or imported
Task "Csc" execution -- FAILED
Done building target "CoreCompile" in project "/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/StopWatchTest.csproj".-- FAILED
Done building project "/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/StopWatchTest.csproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "Build" in project "/Users/deads/Downloads/jirastopwatch-master/StopWatch.sln".-- FAILED
Done building project "/Users/deads/Downloads/jirastopwatch-master/StopWatch.sln".-- FAILED
Build FAILED.
Warnings:
/Users/deads/Downloads/jirastopwatch-master/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/Downloads/jirastopwatch-master/source/StopWatch/StopWatch.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Reference 'System.Deployment' not resolved
/Users/deads/Downloads/jirastopwatch-master/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/StopWatchTest.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets (GetFrameworkPaths target) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : TargetFrameworkVersion 'v4.5.2' not supported by this toolset (ToolsVersion: 4.0).
/Users/deads/Downloads/jirastopwatch-master/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/StopWatchTest.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets (GetReferenceAssemblyPaths target) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Unable to find framework corresponding to the target framework moniker '.NETFramework,Version=v4.5.2'. Framework assembly references will be resolved from the GAC, which might not be the intended behavior.
/Users/deads/Downloads/jirastopwatch-master/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/StopWatchTest.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Reference 'Microsoft.VisualStudio.QualityTools.UnitTestFramework' not resolved
Errors:
/Users/deads/Downloads/jirastopwatch-master/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/Downloads/jirastopwatch-master/source/StopWatchTest/StopWatchTest.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->
CSC: error CS0518: The predefined type `System.Object' is not defined or imported
CSC: error CS0518: The predefined type `System.ValueType' is not defined or imported
CSC: error CS0518: The predefined type `System.Attribute' is not defined or imported
CSC: error CS0518: The predefined type `System.Int32' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt32' is not defined or imported
CSC: error CS0518: The predefined type `System.Int64' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt64' is not defined or imported
CSC: error CS0518: The predefined type `System.Single' is not defined or imported
CSC: error CS0518: The predefined type `System.Double' is not defined or imported
CSC: error CS0518: The predefined type `System.Char' is not defined or imported
CSC: error CS0518: The predefined type `System.Int16' is not defined or imported
CSC: error CS0518: The predefined type `System.Decimal' is not defined or imported
CSC: error CS0518: The predefined type `System.Boolean' is not defined or imported
CSC: error CS0518: The predefined type `System.SByte' is not defined or imported
CSC: error CS0518: The predefined type `System.Byte' is not defined or imported
CSC: error CS0518: The predefined type `System.UInt16' is not defined or imported
CSC: error CS0518: The predefined type `System.String' is not defined or imported
CSC: error CS0518: The predefined type `System.Enum' is not defined or imported
CSC: error CS0518: The predefined type `System.Delegate' is not defined or imported
CSC: error CS0518: The predefined type `System.MulticastDelegate' is not defined or imported
CSC: error CS0518: The predefined type `System.Void' is not defined or imported
CSC: error CS0518: The predefined type `System.Array' is not defined or imported
CSC: error CS0518: The predefined type `System.Type' is not defined or imported
CSC: error CS0518: The predefined type `System.Collections.IEnumerator' is not defined or imported
CSC: error CS0518: The predefined type `System.Collections.IEnumerable' is not defined or imported
CSC: error CS0518: The predefined type `System.IDisposable' is not defined or imported
CSC: error CS0518: The predefined type `System.IntPtr' is not defined or imported
CSC: error CS0518: The predefined type `System.UIntPtr' is not defined or imported
CSC: error CS0518: The predefined type `System.RuntimeFieldHandle' is not defined or imported
CSC: error CS0518: The predefined type `System.RuntimeTypeHandle' is not defined or imported
CSC: error CS0518: The predefined type `System.Exception' is not defined or imported
4 Warning(s)
31 Error(s)
Time Elapsed 00:00:01.8587120
So this time you already got an error on build. Right now I only have access to a Windows machine, but I will try to spin up a Linux box later today and test the build there, see if I also get the error.
Most likely I am referencing a package, that Mono does not support.
I have managed to remove a couple of project references that were not used, including the System.Deployment, that gave you a warning + Microsoft.CSharp, which seems to be the one causing the errors.. I can build the solution now inside MonoDevelop.
Try to do a pull and I look forward to your result :-)
Okay looked at your build output again and found another problem. The solution also contains a project for unittesting. And this project was built on .NET 4.5.2, which mono AFAIK does not support yet.
I've downgraded it to .NET 4.5 - same as the StopWatch project itself. I think all this should help you further in building the solution.
Here's the latest build against 215a3df
Build FAILED.
Warnings:
/Users/deads/jirastopwatch/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/jirastopwatch/source/StopWatchTest/StopWatchTest.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.Common.targets: warning : Reference 'Microsoft.VisualStudio.QualityTools.UnitTestFramework' not resolved
Errors:
/Users/deads/jirastopwatch/StopWatch.sln (default targets) ->
(Build target) ->
/Users/deads/jirastopwatch/source/StopWatchTest/StopWatchTest.csproj (default targets) ->
/Library/Frameworks/Mono.framework/Versions/4.2.2/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->
JiraHelpersTest.cs(2,17): error CS0234: The type or namespace name `VisualStudio' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?
1 Warning(s)
1 Error(s)
Try to completely remove the project StopWatchTest. You only have problems with this project, and it doesn't affect the application, whether it's there or not.
If this works, I'll put the test project into its own seperate solution, just like the installer.
I've changed the test-project to use NUnit instead - hopefully this makes it more portable.
That worked! Build completed, application launched.
Now to figure out how to move the window somewhere usable...
Ah, cancelling out, moving the window, then opening preferences again seems to do the trick.
The preference window should only open the first time, that you start the application, because it does not yet have any user-settings file. Let me know if this is not the case for you.
Hey @danieleads, I was thinking that it would be nice with someone, who could maintain a OSX setup package of Jira StopWatch. Do you have any experience in this, and would you be willing to do something like that? If so, please send me a mail at carsten@sarum.dk
@danieleads You can try another jira client - https://github.com/web-pal/chronos-timetracker it works on mac as well
I'm on OS X 10.11.2 (El Capitan) and pulled the install directory of 1.5.0 from a Windows machine.
Attempting to launch the StopWatch program in Mono results in the following error: