[Mono-list] Debugging binding Obj-C?

2015-03-12 Thread Michael McGlothlin
I'm having problems binding a precompiled third party framework. I keep getting 
a dyld error about being unable to find the library but it only shows the error 
after I've done the binding, added the library to a project, compiled the 
project and deployed it to the device, watched it crash, and looked at the 
error log on the device. Is there a way to test the binding as soon as the dll 
is made?

How would I make sure the binary blob is included and adjust the path reference 
internally in the dll to make sure it's correct?

Sent from my iPad
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Abstract Async binding?

2015-03-08 Thread Michael McGlothlin
Is there a reason that when binding Obj-C it isn't possible to use both the 
Async and Abstract attributes on the same method?

Thanks,
Michael McGlothlin
Sent from my iPhone
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Native number types but not general number type?

2015-02-24 Thread Michael McGlothlin

With the addition of native number types I have returned to an old line of 
thought about why C# doesn't have a general Number type with other number types 
in some sort of hierarchy under it. 

Obviously there are times when using a very specific number type is important 
for performance or compatibility but usually I don't really care. I probably 
don't care if the number is represented as 32 bits or 64 bits, if it's signed 
or not, if it is whole numbers or fractional, etc. So long as the behavior is 
correct when casting to a more specific type I'd rather it just work with the 
least amount of effort.

Likewise I'd like to more easily use lossless numbers of unlimited size, 
including fractional values, when needed and easy manipulation of numbers into 
different representations (such as byte order, different ways of storing the 
sign, etc). Something similar to changing text encodings.

A general number type seems it'd ease portability even more than native types. 
It was mentioned that Mono may push for these native types to made standard. Is 
there a technical reason a general number type couldn't be, or shouldn't be, 
introduced? Not asking anyone to actually doing it so much as trying to 
understand the problem.


Sent from my iPad___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] making mono builds reproducible (xamarin bz #26842)

2015-02-16 Thread Michael McGlothlin
I'd always store time in epochs. Seconds since 1/1/1970 GMT.

The use of textual date strings instead of a epochs is one of the worst things 
I've seen from the C# way of doing things. I had often wondered why so many 
programs could have so much trouble with handling dates and times correctly..


Sent from my iPad

 On Feb 16, 2015, at 4:19 PM, Daniel Kahn Gillmor d...@fifthhorseman.net 
 wrote:
 
 Hi Mono folks--
 
 some good discussion has come up on the xamarin bugtracker about being
 able to make builds using the mono toolchain reproducible:
 
   https://bugzilla.xamarin.com/show_bug.cgi?id=26842
 
 Jo Shields offered a one-liner fix to PEWriter.cs to allow the use of an
 environment variable to fix the timestamp epoch, but made it clear that
 more feedback is needed, so i'm raising it here:
 
 from:
 
   public DWORD TimeDateStamp = (uint)(DateTime.UtcNow - new DateTime(1970, 1, 
 1, 0, 0, 0, DateTimeKind.Utc)).TotalSeconds;
 
 to:
 
   public DWORD TimeDateStamp = 
 Environment.GetEnvironmentVariable(IKVM_WRITER_TIMESTAMP_EPOCH) != null ?

 uint.Parse(Environment.GetEnvironmentVariable(IKVM_WRITER_TIMESTAMP_EPOCH)) 
 :
(uint)(DateTime.UtcNow - new DateTime(1970, 1, 
 1, 0, 0, 0, DateTimeKind.Utc)).TotalSeconds;
 
 (i'm not sure whether the integer number of seconds is the best form for
 the environment variable, or whether it would be better to parse a
 standard date string -- from debian's perspective, we can deal with
 either, of course)
 
 And this still doesn't solve the secondary issue of the assembly GUID,
 as Jo noted.
 
 Any thoughts about how to best enable binary-reproducible builds from
 the mono toolchain if the invoker requests them?
 
 Regards,
 
--dkg
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Sandbox

2015-01-15 Thread Michael McGlothlin
Might look at the csharp tool as it lets you run in more of a scripting style. 
You could probably add to it to build in special security and error handling.

Thanks,
Michael McGlothlin
Sent from my iPhone

 On Jan 15, 2015, at 2:55 PM, Ollhax oll...@gmail.com wrote:
 
 Sounds like a good plan, but the problem is that I can't do step # 3 -
 /create a new AppDomain with low security permissions/.
 
 Just to be sure the documentation is not old, I installed Ubuntu and ran the
 example in the end of this article:
 http://msdn.microsoft.com/en-us/library/bb763046%28v=vs.110%29.aspx
 (slightly modified since the GetHostEvidence stuff isn't supported, and
 tried creating a file instead). Worked fine on Windows (threw an exception),
 but sandboxing was not done in Mono. 
 
 I also played a little with the --security setting, but no luck.
 
 Perhaps it's possible to make Roslyn not accept bad code instead? I.e.
 restrict which assemblies you use to a bare minimum, don't build unsafe
 code, and so on. Not sure how safe it would be, but I'm giving it a try.
 
 
 
 --
 View this message in context: 
 http://mono.1490590.n4.nabble.com/Sandbox-tp4665163p4665240.html
 Sent from the Mono - General mailing list archive at Nabble.com.
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Specific thread for event?

2015-01-11 Thread Michael McGlothlin
I had the general idea of making an event that would invoke every handler in 
its list on the thread it was registered from. So I added accessors that'd 
store the thread and set things up so when I invoke the handlers it'd use those 
threads .. only there seems to be no way to run code on a specific thread in C# 
(possibly if I did something unsafe with internal threading?) as far as I can 
see. I messed around with the ExecutionContext and various other things but 
none seems to let you interrupt a running thread, do something, and resume.

The best I have been able to manage is having the main UI thread get special 
treatment in iOS. That's actually what I want but I'd like a more universal 
solution as it's likely I'll have other components that are picky about what 
thread they're on. Seems like having events raised on the correct thread 
automatically would be a good behavior and avoid a lot of boilerplate code.

Obviously something has been done with iOS to make it possible to access the 
main thread. Am I missing something or is this pretty much a deadend?


Sent from my iPad
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Native types nullable?

2015-01-07 Thread Michael McGlothlin
I'm experimenting with switching from Classic to Unified API for iOS. It 
doesn't seem there are implicit casts from nullable int?, float?, etc to nint, 
nfloat, etc. Any reason these couldn't be added?


Thanks,
Michael McGlothlin
Sent from my iPhone
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Proposed changes to mono/mcs/class/corlib/Mono/DataConverter.cs

2014-12-17 Thread Michael McGlothlin
How would I access your new version (In a different branch or such?)? How long 
until the changes will filter through to the NuGet package!

Thanks,
Sent from my iPad

 On Dec 9, 2014, at 8:25 AM, Miguel de Icaza mig...@xamarin.com wrote:
 
 Hey,
 
 I have a variation of this patch now.   I need to rebuild my Mono before i 
 can commit it.
 
 It will use a conditional compiler directive to use this other system
 
 On Mon, Dec 8, 2014 at 11:53 PM, Stephen Shaw ss...@decriptor.com wrote:
 I can't comment on the code changes themselves, but it would be helpful to 
 fork mono on github and then create a Pull Request (PR) with your changes.
 
 Cheers,
 Stephen
 
 On Mon, Dec 8, 2014 at 8:54 PM, Michael McGlothlin 
 mike.mcgloth...@gmail.com wrote:
 Couldn't figure out how to get Xamarin Studio to create an actual patch 
 file after trying, and failing, to push a change with git. It appears this 
 is the correct place to post this?
 
 I usually put most of my code in PCL and then call it from platform 
 specific code so I'm trying to make DataConverter happy as PCL.
 
 To make DataConverter compile as PCL I had to change Encoding.UTF7 to 
 Encoding.GetEncoding ( utf-7 ) and the numeric calls to 12000 and 12001 
 on GetEncoding() to the string-based utf-32 and uff-32BE. These three 
 changes had to be made twice as there are two variants using this same 
 code. I also changed ArrayList to Listobject to make PCL happy.
 
 
 
 case '7':
 e = Encoding.GetEncoding (utf-7);
 n = 1;
 break;
 case '3':
 e = Encoding.GetEncoding (utf-32);
 n = 4;
 break;
 case '4':
 e = Encoding.GetEncoding (utf-32BE);
 n = 4;
 break;
 
 
 
 static public IList Unpack (string description, byte[] buffer, 
 int startIndex)
 {
 DataConverter conv = CopyConv;
 var result = new Listobject ();
 int idx = startIndex;
 bool align = false;
 int repeat = 0, n;
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Proposed changes to mono/mcs/class/corlib/Mono/DataConverter.cs

2014-12-08 Thread Michael McGlothlin
Couldn't figure out how to get Xamarin Studio to create an actual patch
file after trying, and failing, to push a change with git. It appears this
is the correct place to post this?

I usually put most of my code in PCL and then call it from platform
specific code so I'm trying to make DataConverter happy as PCL.

To make DataConverter compile as PCL I had to change Encoding.UTF7 to
Encoding.GetEncoding ( utf-7 ) and the numeric calls to 12000 and 12001
on GetEncoding() to the string-based utf-32 and uff-32BE. These three
changes had to be made twice as there are two variants using this same
code. I also changed ArrayList to Listobject to make PCL happy.



case '7':
e = Encoding.GetEncoding (utf-7);
n = 1;
break;
case '3':
e = Encoding.GetEncoding (utf-32);
n = 4;
break;
case '4':
e = Encoding.GetEncoding (utf-32BE);
n = 4;
break;



static public IList Unpack (string description, byte[] buffer, int
startIndex)
{
DataConverter conv = CopyConv;
var result = new Listobject ();
int idx = startIndex;
bool align = false;
int repeat = 0, n;


DataConverter.cs
Description: Binary data
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-list] Marshaling a struct with network byte order?

2014-12-02 Thread Michael McGlothlin
Is there any common way to correctly marshal a struct such that the resulting 
bytes are in network byte order? I have a file format that requires this order 
for compatibility. Currently I'm storing each chunk as a struct and am using 
Marshal to convert it to/from bytes. Seems to work fine other than being little 
endian. Is there something like a MarshalAs attribute for controlling byte 
order?

Couldn't find a general .NET/C# way other than doing it with Array.Reverse() 
each time. I thought Mono might have dealt with such a cross platform issue 
itself..


Sent from my iPad
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Binding Cocoa examples?

2014-11-20 Thread Michael McGlothlin
Where is the BaseType attribute defined? Xamarin Studio doesn't seem to include 
it in either Mono or Xamarin Mac versions. The only binding template I see is 
for iOS.


Thanks,
Michael McGlothlin
Sent from my iPhone

 On Nov 19, 2014, at 7:02 PM, Miguel de Icaza mig...@xamarin.com wrote:
 
 hey,
 
 You can see it here:
 
 http://github.com/mono/monomac
 
 Go to src/appkit.cs to see the binding for NSView.
 
 On Sat, Nov 15, 2014 at 1:28 PM, Michael McGlothlin 
 mike.mcgloth...@gmail.com wrote:
 I'm trying to figure out how to bind to obj-c and c and for my first 
 exercise I decided to bind to Apple's ScreenSaverView and make a 
 screensaver. I'm trying to do this with Xamarin Studio and their Sharpie app 
 but not having much luck. Where can I look to see Mono's actual binding to 
 classes such as NSView? What I'd actually do I mean and not something 
 generated.
 
 Thanks,
 Michael McGlothlin
 Sent from my iPhone
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
 
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Cross-Platform GUI Tookit

2014-11-15 Thread Michael McGlothlin
I'd like to see a good semantic system that'd make it easy to map to actual 
controls individual to the platform and apply styling. 

Thanks,
Michael McGlothlin
Sent from my iPhone

On Nov 15, 2014, at 10:01 AM, Edward Ned Harvey (mono) 
edward.harvey.m...@clevertrove.com wrote:

 From: mono-list-boun...@lists.ximian.com [mailto:mono-list-
 boun...@lists.ximian.com] On Behalf Of IBBoard
 
 In theory, yes, but in practice then it was always a little flaky on
 Linux, had rendering issues on anything but simple layouts, and had at
 least one major issue I can think of on OS X.
 
 Also, a recent post [1] said that it was based on deprecated technology
 and that you shouldn't expect [it] to come back to life.
 
 Windows.Forms is the oldest and junkiest thing available, even on Windows.  
 It's even worse on mono because it's buggy, and worse still on OSX because it 
 requires X11.
 
 Not to mention, it looks like hell on any platform.
 
 So no.  Windows.Forms is not a good answer for cross-platform GUI.  The 
 aforementioned Eto.Forms is some kind of wrapper that allows you to design 
 your GUI and run the same code on iOS, Mac OSX, Linux GTK# 2 or 3, and 
 Windows.Forms and WPF.  I say again, I haven't used it yet and can't advocate 
 it right now - but it's the right idea going in the right direction.  Just 
 hope to have more than one option to compare.
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Binding Cocoa examples?

2014-11-15 Thread Michael McGlothlin
I'm trying to figure out how to bind to obj-c and c and for my first exercise I 
decided to bind to Apple's ScreenSaverView and make a screensaver. I'm trying 
to do this with Xamarin Studio and their Sharpie app but not having much luck. 
Where can I look to see Mono's actual binding to classes such as NSView? What 
I'd actually do I mean and not something generated.

Thanks,
Michael McGlothlin
Sent from my iPhone
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-aspnet-list] Mono ASP.NET vs MS VS

2014-09-28 Thread Michael Lynch
mngadlban


On Mon, Sep 29, 2014 at 7:47 AM, Fernando Rodriguez 
frodriguez.develo...@outlook.com wrote:

 On Friday 26 September 2014 3:34:50 PM Chris Rogus wrote:
  1) If there is something easy and obvious that I am missing in my config,
  please let me know.  (e.g. the global or Views web.config files are
  different between MS VS and Mono, for sure, but I am not an expert with
  these files to know exactly what is needs to be changed in the MS VS one,
  if anything, to fix this situation)
 
  2) Otherwise, any advice on how I could figure out exactly where this
 error
  is coming from?  What dll is missing or what line in my config xml is not
  right, etc?  How can I debug an ASP.NET application in Mono -- using
 xsp4
  or monodevelop anything else?

 I could never get MVC5 to work on Mono but if you don't use any of the new
 features in MVC5 you can just rebuild your app on MonoDevelop referencing
 the
 System.Web.Mvc.dll version 4 from Microsoft and it should work, here's
 what I
 did to get it working:

 1. Download and install MVC4 if you haven't already.\

 2. Open your VS2013 project in MonoDevelop on Linux and change the
 System.Web.Mvc reference to the one that ships with MS MVC4. Make sure the
 copy local checkbox it ticked.

 3. Change the System.Web.WebPages.* references to the version 3.0.0 that
 comes
 with mono. I copied them from the GAC to a directory on my solution tree
 and
 added the reference from there checking copy local. On the latest version
 of
 MonoDevelop if you add it from the GAC or the framework directory and tick
 copy local it will copy a lot of stuff that will break your app.

 4. Change both Web.config files so that all references to System.Web.Mvc
 use
 version 4.0.0.0 and all references to System.Web.WebPages use version
 3.0.0.0.

 5. Build and run the solutiion on MonoDevelop. It should work.

 When you scaffold an edit view with VS2013 it will add the css classes to
 the
 Html.EditorFor, MVC4 ignores it so the form controls are not formatted for
 bootstrap, my solution was to use jQuery to set the css class. Also VS2013
 mvc
 template references site.css but the file is called Site.css, you need to
 fix
 this so it works right on XSP.

 The Web.config files that VS created for me are called Web, not web so
 you'll
 probably have to rename yours.

 
  3) What do I need to do to get an ASP.NET solution created in
 MonoDevelop
  to open in MS VS?  (Hopefully this is the same solution as getting my MS
 VS
  ASP.NET site to work in Mono/xsp4.)

 I created my solution in Visual Studio and it opens in both. I've been
 mostly
 working on Linux but if I need to work on VS I need to change the assembly
 references back.

  4) Any advice on where Mono might already have a Publish feature like MS
 VS
  has in MonoDevelop?  Or else where I should go add one if no such feature
  yet exists, if it acceptable to the team in charge of this product (I
 don't
  want to do it, submit a pull request and be told it is an undesired
  feature).  Such a feature would very helpful for me.

 Project  Deploy to Web... (on Version 5.0.1). It can only deploy to a
 local
 directory or network share.

 --
 --
 Fernando Rodriguez
 frodriguez.develo...@outlook.com
 ___
 Mono-aspnet-list mailing list
 Mono-aspnet-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-aspnet-list

___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


Re: [Mono-dev] [Mono-list] How to run full mono test suites

2014-09-02 Thread Michael Franz
I run this to test the C# code.
cd mcs/class/corlib
make run-test PROFILE=net_4_5


On Tue, Sep 2, 2014 at 8:16 PM, Liwei Peng liwei.p...@microsoft.com wrote:

  I didn’t see the ‘make test’ rule under the root source directory. Where
 do you run it?



 *From:* mar...@my2cents.co.uk [mailto:mar...@my2cents.co.uk] *On Behalf
 Of *Martin Thwaites
 *Sent:* Tuesday, September 2, 2014 5:07 PM
 *To:* Liwei Peng
 *Cc:* mono-l...@lists.ximian.com; mono-devel-list
 *Subject:* Re: [Mono-dev] How to run full mono test suites



 Does a simple make test not run all the tests? Or are you looking for
 something else?

 On 2 Sep 2014 22:59, Liwei Peng liwei.p...@microsoft.com wrote:

  Hi Mono,



 I am evaluating mono on a Linux machine (Ubuntu). I’d like to run the full
 test suites  published on this website:
 https://wrench.mono-project.com/Wrench/



 While this link
 http://www.mono-project.com/community/contributing/test-suite/ has some
 general description on the test framework, my question is: is there
 existing script or document that I can use to run the full test suites? So
 that I don’t need to spend time to check each class library or runtime
 tests individually?



 Thanks,



 Liwei




 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list


 ___
 Mono-list maillist  -  mono-l...@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [Mono-list] How to run full mono test suites

2014-09-02 Thread Michael Franz
On Tue, Sep 2, 2014 at 8:45 PM, Liwei Peng liwei.p...@microsoft.com wrote:

  Thanks Michael. That’s one library. When I checked here
 https://wrench.mono-project.com/Wrench/ViewLane.aspx?lane_id=14host_id=10revision_id=74118,
 there are many libraries like below. I am wondering whether there is a
 quick way to run all of them







 *From:* Michael Franz [mailto:mvfr...@gmail.com]
 *Sent:* Tuesday, September 2, 2014 5:18 PM
 *To:* Liwei Peng
 *Cc:* Martin Thwaites; mono-l...@lists.ximian.com; mono-devel-list
 *Subject:* Re: [Mono-list] [Mono-dev] How to run full mono test suites



 I run this to test the C# code.

 cd mcs/class/corlib

 make run-test PROFILE=net_4_5



 On Tue, Sep 2, 2014 at 8:16 PM, Liwei Peng liwei.p...@microsoft.com
 wrote:

  I didn’t see the ‘make test’ rule under the root source directory. Where
 do you run it?



 *From:* mar...@my2cents.co.uk [mailto:mar...@my2cents.co.uk] *On Behalf
 Of *Martin Thwaites
 *Sent:* Tuesday, September 2, 2014 5:07 PM
 *To:* Liwei Peng
 *Cc:* mono-l...@lists.ximian.com; mono-devel-list
 *Subject:* Re: [Mono-dev] How to run full mono test suites



 Does a simple make test not run all the tests? Or are you looking for
 something else?

 On 2 Sep 2014 22:59, Liwei Peng liwei.p...@microsoft.com wrote:

  Hi Mono,



 I am evaluating mono on a Linux machine (Ubuntu). I’d like to run the full
 test suites  published on this website:
 https://wrench.mono-project.com/Wrench/



 While this link
 http://www.mono-project.com/community/contributing/test-suite/ has some
 general description on the test framework, my question is: is there
 existing script or document that I can use to run the full test suites? So
 that I don’t need to spend time to check each class library or runtime
 tests individually?



 Thanks,



 Liwei




 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list


 ___
 Mono-list maillist  -  mono-l...@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list



I think it is 'make check'
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] [Mono-dev] How to run full mono test suites

2014-09-02 Thread Michael Franz
I run this to test the C# code.
cd mcs/class/corlib
make run-test PROFILE=net_4_5


On Tue, Sep 2, 2014 at 8:16 PM, Liwei Peng liwei.p...@microsoft.com wrote:

  I didn’t see the ‘make test’ rule under the root source directory. Where
 do you run it?



 *From:* mar...@my2cents.co.uk [mailto:mar...@my2cents.co.uk] *On Behalf
 Of *Martin Thwaites
 *Sent:* Tuesday, September 2, 2014 5:07 PM
 *To:* Liwei Peng
 *Cc:* mono-list@lists.ximian.com; mono-devel-list
 *Subject:* Re: [Mono-dev] How to run full mono test suites



 Does a simple make test not run all the tests? Or are you looking for
 something else?

 On 2 Sep 2014 22:59, Liwei Peng liwei.p...@microsoft.com wrote:

  Hi Mono,



 I am evaluating mono on a Linux machine (Ubuntu). I’d like to run the full
 test suites  published on this website:
 https://wrench.mono-project.com/Wrench/



 While this link
 http://www.mono-project.com/community/contributing/test-suite/ has some
 general description on the test framework, my question is: is there
 existing script or document that I can use to run the full test suites? So
 that I don’t need to spend time to check each class library or runtime
 tests individually?



 Thanks,



 Liwei




 ___
 Mono-devel-list mailing list
 mono-devel-l...@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list


 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] BinaryFormatter with PCL?

2014-08-15 Thread Michael McGlothlin
Is there any way to use BinaryFormatter with portable classes?

I have as much of my code as possible portable so I can do iOS, Android, etc 
but I'm trying to serialize objects and it's a lot more trouble than I 
expected. I can push a BinaryFormatter object but it still doesn't work because 
the Serializable attribute isn't set and I can't figure out a way to get the 
platform specific code to push it in a way I can use it as an attribute.

Thanks,
Michael McGlothlin
Sent from my iPhone
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-dev] Issue compiling mono 3.4.0 on raspberry pidora (Fedora 18)

2014-08-05 Thread Michael Frank
  Hello,
 
  I have an issue compiling mono 3.4.0 on Pidora (Fedora18). I was not able to
 compile the tarballs so I decided to install the available mono 2 runtime and
 use autogen.sh.
  autogen runs w/o problems but make throw the following errors:
 
 
  ecore.cs(6386,19): error CS0246: The type or namespace name `SLE' could not
 be found. Are you missing an assembly reference?
  .
  .
  /root/mono/mcs/class/lib/net_2_0/mscorlib.dll (Location of the symbol related
 to previous error)
  eval.cs(1224,8): error CS0305: Using the generic type `System.ActionT'
  requires `1' type argument(s)
  .
  .
  expression.cs(37,12): error CS0305: Using the generic type
 `System.FuncT1,T2,T3,TResult' requires `4' type argument(s)
 /root/mono/mcs/class/lib/net_2_0/mscorlib.dll (Location of the symbol related
 to previous error)
  .
  .
  expression.cs(91,19): error CS0246: The type or namespace name `SLE'
  could not be found. Are you missing an assembly reference?
  .
  .
  .
  expression.cs(5022,76): error CS0305: Using the generic type
 `System.FuncT1,T2,T3,TResult' requires `4' type argument(s)
 /root/mono/mcs/class/lib/net_2_0/mscorlib.dll (Location of the symbol related
 to previous error)
  .
  .
  .
  generic.cs(1218,89): error CS0305: Using the generic type
 `System.FuncT1,T2,T3,TResult' requires `4' type argument(s)
 /root/mono/mcs/class/lib/net_2_0/mscorlib.dll (Location of the symbol related
 to previous error)
  literal.cs(80,19): error CS0234: The type or namespace name `Linq' does not
 exist in the namespace `System'. Are you missing `System.Core'
  assembly reference?
  nullable.cs(248,19): error CS0246: The type or namespace name `SLE'
  could not be found. Are you missing an assembly reference?
  nullable.cs(1044,19): error CS0246: The type or namespace name `SLE'
  could not be found. Are you missing an assembly reference?
  report.cs(62,10): error CS0246: The type or namespace name `HashSet'
  could not be found. Are you missing an assembly reference?
  report.cs(553,13): error CS0246: The type or namespace name `HashSet'
  could not be found. Are you missing an assembly reference?
  report.cs(914,12): error CS0246: The type or namespace name `Stopwatch'
  could not be found. Are you missing an assembly reference?
  report.cs(915,3): error CS0246: The type or namespace name `Stopwatch'
  could not be found. Are you missing an assembly reference?
  settings.cs(171,3): error CS0246: The type or namespace name `HashSet'
  could not be found. Are you missing an assembly reference?
  settings.cs(314,16): error CS0305: Using the generic type
 `System.FuncT1,T2,T3,TResult' requires `4' type argument(s)
 /root/mono/mcs/class/lib/net_2_0/mscorlib.dll (Location of the symbol related
 to previous error)
  typemanager.cs(885,12): error CS0305: Using the generic type
 `System.FuncT1,T2,T3,TResult' requires `4' type argument(s)
 /root/mono/mcs/class/lib/net_2_0/mscorlib.dll (Location of the symbol related
 to previous error)
  typemanager.cs(923,103): error CS0305: Using the generic type
 `System.FuncT1,T2,T3,TResult' requires `4' type argument(s)
 /root/mono/mcs/class/lib/net_2_0/mscorlib.dll (Location of the symbol related
 to previous error)
  ../class/Mono.CompilerServices.SymbolWriter/SourceMethodBuilder.cs(40,3):
 error
  CS0246: The type or namespace name `Stack' could not be found. Are you
 missing an assembly reference?
  ../tools/monop/outline.cs(46,2): error CS0246: The type or namespace name
 `IndentedTextWriter' could not be found. Are you missing an assembly
 reference?
  ../../external/ikvm/reflect/Emit/ILGenerator.cs(115,20): error CS0246:
  The type or namespace name `Stack' could not be found. Are you missing an
 assembly reference?
  Compilation failed: 93 error(s), 0 warnings
  make[7]: *** [../class/lib/basic/basic.exe] Error 1
  make[6]: *** [do-all] Error 2
  make[5]: *** [all-recursive] Error 1
  make[4]: *** [profile-do--basic--all] Error 2
  make[3]: *** [profiles-do--all] Error 2
  make[2]: *** [all-local] Error 2
  make[2]: Leaving directory `/root/mono/runtime'
  Any help is much appreciated.
 
 
  regards
 
  Michael Frank
 
  http://www.mikefrank.de
 ___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-list] MemoryMappedFile not supported?

2014-07-18 Thread Michael McGlothlin
I'm experimenting with writing a local service that I need to be reasonably 
fast. I'd like it to work on Windows, Mac OS, and Linux at least. I've never 
written a service in C# but the first thing I tried for IPC was using memory 
mapped files. Immediately I got a complaint that what I was doing wasn't 
supported under Mono because it didn't jive with Unix.. so I switched to 
creating from a file (as the previous error message told me to do) but it seems 
if the file exists it dies with an error about the file already existing and if 
the file doesn't already exist it dies with an error that the file doesn't 
exist.

Is this just plain not the right way to make a fast local service in C#? I'd be 
ok with using pipes or IPC sockets if it is a better idea but in Googling it 
seemed that C# had made these rely on networking for some reason.


 Michael McGlothlin___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Changing basic file io?

2014-05-13 Thread Michael McGlothlin
If I wanted to replace the standard libraries for file io with my own is there 
a way to push my replacement in so that it'd fill that role without needing to 
rewrite every program, and third-party library, that uses file io? I guess 
there must be some way since Mono exists at all. I get annoyed when programs 
lose data or corrupt files so I have a transactional wrapper that makes 
snapshots and logs changes.


Sent from my iPad
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Xamarin Open Source License

2014-05-09 Thread Michael McGlothlin
It would be nice if Xamarin took a bit more pity on open source developers and 
hobby developers. I've been using a business version, at work, for Xamarin.iOS. 
I would like to explore other platforms, continuing to educate myself, and 
maybe work on some open source stuff. Even the indie licenses are pretty steep 
for non-commercial development. At the least it'd be nice if you had access to 
all platforms for non-commercial use when you purchased a license for 
commercial use on anything.

Sent from my iPad

 On May 9, 2014, at 5:37 AM, lytico lyt...@users.sourceforge.net wrote:
 
 Is there an Open Source License, and who does it get?
 
 I appealed at http://resources.xamarin.com/open-source-contributor.html
 
 my project: https://github.com/limada/limada
 my profile: https://github.com/lytico
 
 After some weeks and asking again 2 times per e-mail, I got this
 (auto-generated?) answer:
 
 Thank you for your interest in contributing to the mobile C# open source
 developer community.
 Xamarin's open source contributor subscription offer is limited to active
 developers on established open source projects. Based on your current
 activity on this project, it does not appear that you are eligible for a
 non-commercial subscription.
 ... etc. etc.
 
 So, is there that open source program? And if, who are this active
 developers on established open source projects?
 
 remark: I am even a (indirect) contributor to what I'll get: see
 https://github.com/mono/xwt/commits?author=lytico  ; xwt is part of Xamarin
 Studio
 
 cheers
 lytico
 
 
 
 
 --
 View this message in context: 
 http://mono.1490590.n4.nabble.com/Xamarin-Open-Source-License-tp4662728.html
 Sent from the Mono - General mailing list archive at Nabble.com.
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Repeat builds of core assemblies

2014-04-22 Thread Michael Franz
On Tue, Apr 22, 2014 at 3:53 PM, Miguel de Icaza mig...@xamarin.com wrote:

 Hey guys,

 I was looking at making the MSBuild system work, and during the process I
 have encountered a few problems that we have in our existing build system
 that are problematic.

 The problem is that System, System.XML and System.Configuration are each
 defined in terms of the other assemblies.   So we gradually bring up each
 one of those assemblies up by first compiling a stub System, which we use
 to build System.XML and System.Configuration.   Then we rebuild System,
 this time referencing System.XML and System.Configuration so we can take a
 dependency on them, and so on.

 snip
Is this a Microsoft circular dependency or a Mono implementation issue?

Michael
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Porting Microsoft.Reporting.WinForms to Mono?

2014-03-05 Thread Michael McGlothlin
I've used Gtk under Linux so I'd guess Gtk# might be similar? I'm already 
trying to figure out how to mesh together the C# way of doing things with the 
iOS, Android, etc way while maximizing code reuse. Keep finding myself cycling 
through different methods or rolling my own but not sure what the best way is. 
Lots to process.

Thanks,
Michael McGlothlin
Sent from my iPhone

 On Mar 5, 2014, at 10:56 AM, Andy York a...@brdstudio.net wrote:
 
 I would like to warn you that learning some of the Gtk# API was a challenge 
 for me at first because I was stuck in the Microsoft way of doing things. 
 Once I learned how to use Gtk# effectively I loved it but not at first. 
 
 For example the Gtk.TreeView does not work anything like WinForms.GridView 
 and everyone I know who tried to make the Gtk.TreeView work like a 
 WinForms.GridView didn't succeed but preferred the Gtk.TreeView + 
 Gtk.TreeStore methods in the end.
 
 In the long run it feels to me like Gtk# is easier to use MVC techniques on 
 than WinForms so if you have the time to learn the Gtk# API I recommend it 
 very highly for cross platform development.
 
 This is just the opinion of a humble developer nothing more.
 
 
 From: Miguel de Icaza mig...@xamarin.com
 Sent: Wednesday, March 05, 2014 11:47 AM
 To: Michael McGlothlin mike.mcgloth...@gmail.com
 Subject: Re: [Mono-list] Porting Microsoft.Reporting.WinForms to Mono?
 
 Hey,
 
 Mono has an implementaiton of Windows.Forms, but it is both old, 
 unmaintainted and known to have some bugs.
 
 Some people have been able to use it effectively, but we do not currently 
 have an active maintainer, so we encourage developers to pick something like 
 Gtk# instead.
 
 
 On Thu, Feb 27, 2014 at 3:21 PM, Michael McGlothlin 
 mike.mcgloth...@gmail.com wrote:
 [Intro: I'm somewhat new to C# and am much more familiar with Linux and 
 MacOS than Windows. In the past few months I've been learning C# to develop 
 Xamarin.iOS apps and simply trying to wrap my mind around this combination 
 of C# and iOS stuff that doesn't always make sense to someone that's been 
 doing command-line and server-side Unix, Python, and JavaScript stuff 
 mostly.]
 
 I've been asked to fix, update and make portable an app build around 
 Microsoft.Reporting.WinForms. From searching I see a bunch of old posts 
 saying that Mono doesn't support WinForms but nothing very recent. I don't 
 really know much about it so my basic question is if there is an easy fix 
 (add the needed assembly somewhere) and if not what is the recommended way 
 to handle porting?
 
 I had nothing to do with writing this app and it's fairly large, complex, 
 and seems poorly written but as much as I'd like to do a total remit it's 
 probably not the best strategy at the moment.
 
 
 Sent from my iPad
 Michael McGlothlin
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
 
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Porting Microsoft.Reporting.WinForms to Mono?

2014-03-05 Thread Michael Hutchinson
Yes, GTK# is a thin C# wrapper over the C library, the API is pretty
much exactly the same except with C#-ified names.

The only gotcha is that the GTK# 2 API is frozen at GTK+ 2.12 - though
of course you can P/Invoke into newer API pretty easily, like we do
for MonoDevelop. There's a GTK# 3, which is a wrapper over GTK+ 3.x,
but it hasn't yet had a stable release AFAIK.

- M

On 5 March 2014 18:48, Michael McGlothlin mike.mcgloth...@gmail.com wrote:
 I've used Gtk under Linux so I'd guess Gtk# might be similar? I'm already
 trying to figure out how to mesh together the C# way of doing things with
 the iOS, Android, etc way while maximizing code reuse. Keep finding myself
 cycling through different methods or rolling my own but not sure what the
 best way is. Lots to process.

 Thanks,
 Michael McGlothlin
 Sent from my iPhone

 On Mar 5, 2014, at 10:56 AM, Andy York a...@brdstudio.net wrote:

 I would like to warn you that learning some of the Gtk# API was a challenge
 for me at first because I was stuck in the Microsoft way of doing things.
 Once I learned how to use Gtk# effectively I loved it but not at first.

 For example the Gtk.TreeView does not work anything like WinForms.GridView
 and everyone I know who tried to make the Gtk.TreeView work like a
 WinForms.GridView didn't succeed but preferred the Gtk.TreeView +
 Gtk.TreeStore methods in the end.

 In the long run it feels to me like Gtk# is easier to use MVC techniques on
 than WinForms so if you have the time to learn the Gtk# API I recommend it
 very highly for cross platform development.

 This is just the opinion of a humble developer nothing more.


 
 From: Miguel de Icaza mig...@xamarin.com
 Sent: Wednesday, March 05, 2014 11:47 AM
 To: Michael McGlothlin mike.mcgloth...@gmail.com
 Subject: Re: [Mono-list] Porting Microsoft.Reporting.WinForms to Mono?

 Hey,

 Mono has an implementaiton of Windows.Forms, but it is both old,
 unmaintainted and known to have some bugs.

 Some people have been able to use it effectively, but we do not currently
 have an active maintainer, so we encourage developers to pick something like
 Gtk# instead.


 On Thu, Feb 27, 2014 at 3:21 PM, Michael McGlothlin
 mike.mcgloth...@gmail.com wrote:

 [Intro: I'm somewhat new to C# and am much more familiar with Linux and
 MacOS than Windows. In the past few months I've been learning C# to develop
 Xamarin.iOS apps and simply trying to wrap my mind around this combination
 of C# and iOS stuff that doesn't always make sense to someone that's been
 doing command-line and server-side Unix, Python, and JavaScript stuff
 mostly.]

 I've been asked to fix, update and make portable an app build around
 Microsoft.Reporting.WinForms. From searching I see a bunch of old posts
 saying that Mono doesn't support WinForms but nothing very recent. I don't
 really know much about it so my basic question is if there is an easy fix
 (add the needed assembly somewhere) and if not what is the recommended way
 to handle porting?

 I had nothing to do with writing this app and it's fairly large, complex,
 and seems poorly written but as much as I'd like to do a total remit it's
 probably not the best strategy at the moment.


 Sent from my iPad
 Michael McGlothlin
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list


 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list


 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list




-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] How to get file information on Linux?

2014-03-03 Thread Michael Hutchinson
Mono.Unix.Native.Syscall.getxattr

On 3 March 2014 16:49, cocowalla colin.anderson...@gmail.com wrote:
 This was a good hint - I wasn't aware of the goodies in the Mono.Unix
 namespace! This will get me everything except, AFAICS, the file attributes
 available through `lsattr` - any clues about that?



 --
 View this message in context: 
 http://mono.1490590.n4.nabble.com/How-to-get-file-information-on-Linux-tp4662093p4662101.html
 Sent from the Mono - General mailing list archive at Nabble.com.
 ___
 Mono-list maillist  -  Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list



-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Porting Microsoft.Reporting.WinForms to Mono?

2014-02-27 Thread Michael McGlothlin
[Intro: I'm somewhat new to C# and am much more familiar with Linux and MacOS 
than Windows. In the past few months I've been learning C# to develop 
Xamarin.iOS apps and simply trying to wrap my mind around this combination of 
C# and iOS stuff that doesn't always make sense to someone that's been doing 
command-line and server-side Unix, Python, and JavaScript stuff mostly.]

I've been asked to fix, update and make portable an app build around 
Microsoft.Reporting.WinForms. From searching I see a bunch of old posts saying 
that Mono doesn't support WinForms but nothing very recent. I don't really know 
much about it so my basic question is if there is an easy fix (add the needed 
assembly somewhere) and if not what is the recommended way to handle porting?

I had nothing to do with writing this app and it's fairly large, complex, and 
seems poorly written but as much as I'd like to do a total remit it's probably 
not the best strategy at the moment.


Sent from my iPad
Michael McGlothlin
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Comparison: Windows/WPF vs Mono/Glade/Gtk

2014-02-26 Thread Michael Powell
Hello,

Has anyone worked with Glade/Gtk on a Mono across platforms? Can you
provide a comparison how it stacks up in comparison/contrast with
native if you will .NET WPF? Assuming C# in all cases.

Areas of interest:

* Support for MVVM design patterns; I have some sense that possibly
Glade/Gtk data binding is weak-to-none. That's significant, but
perhaps not a non-starter.

* Support for docking libraries such as Avalon; or just docking in
general. Declarative Xml is one thing, and the ability to save and
restore layout, content, etc.

Any any other caveats, pitfalls, gotchas.

Thank ye...

Best regards,

Michael
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Recent xbuild fixes causing issues with finding mcs

2014-02-17 Thread Michael Hutchinson
TBH this seems like a runtime bug, it should not rely on itself being in PATH.

On 17 February 2014 09:34, Michael Franz mvfr...@gmail.com wrote:
 On Mon, Feb 17, 2014 at 7:38 AM, Rafael Teixeira mono...@gmail.com wrote:

 Michael Franz, please check if your custom built version of the mono
 binary is in the path during the rest of the build, or that code Michael
 Hutchinson pointed out will fail...

 Adding the bin directory of my Mono installation to the PATH does solve the
 problem.  I can work with this, it is just a change in the usage.

 Hope it helps,

 Rafael Teixeira
 O..:.)


 On Mon, Feb 17, 2014 at 2:50 AM, Michael Hutchinson
 m.j.hutchin...@gmail.com wrote:

 No, this is not the same as launching exe files directly from the OS
 using binfmt-misc.

 If you launch an exe file *from Mono's implementation of
 Process.Start*, Mono will detect managed executables and run them with
 Mono automatically.

 https://github.com/mono/mono/blob/master/mono/io-layer/processes.c#L808

 On 16 February 2014 09:00, Michael Franz mvfr...@gmail.com wrote:
 
  On Sun, Feb 16, 2014 at 7:34 AM, Andrés G. Aragoneses
  kno...@gmail.com
  wrote:
 
  On 16/02/14 10:15, Michael Hutchinson wrote:
   ... which automatically executes exe
   files using Mono.
 
  Are you sure that statement applies to all distros? I read somewhere
  some time ago that the only distro so far that implemented the ability
  to run .exe files automatically by calling mono under the hood was
  Debian (and derivatives), by installing some system hook by default
  when
  mono packages are installed.
 
  Maybe Michael Franz is not using Debian? Or maybe that hook doesn't
  work
  for him because he's using a custom mono install (instead of debian
  packages)?
 
  I am using CentOS 6.5 with a locally built Mono installation.
 
  I have read about how you can modify the kernel to understand launching
  Mono
  applications -
  http://www.mono-project.com/Guide:Running_Mono_Applications -
  this was probably after I ran into this problem.  If this has become a
  requirement to use Mono for development it should probably be
  documented
  somewhere.
 
 
 
 
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 
 
 
  ___
  Mono-devel-list mailing list
  Mono-devel-list@lists.ximian.com
  http://lists.ximian.com/mailman/listinfo/mono-devel-list
 



 --
 Michael Hutchinson
 http://mjhutchinson.com
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list






-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent xbuild fixes causing issues with finding mcs

2014-02-17 Thread Michael Franz
On Mon, Feb 17, 2014 at 12:22 PM, Michael Hutchinson 
m.j.hutchin...@gmail.com wrote:

 TBH this seems like a runtime bug, it should not rely on itself being in
 PATH.

 Should I file a bug against the runtime?   What is the best way to
describe this issue?
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent xbuild fixes causing issues with finding mcs

2014-02-16 Thread Michael Hutchinson
Yes, but xbuild uses Process.Start, which automatically executes exe
files using Mono. Not sure why that's failing on your machine.

On 15 February 2014 22:13, Michael Franz mvfr...@gmail.com wrote:
 On Sat, Feb 15, 2014 at 10:02 PM, Michael Hutchinson
 m.j.hutchin...@gmail.com wrote:

 AFAIK something's wrong with the installation if
 $prefix/lib/mono/4.5/mcs.exe is missing.

 What does your $prefix/bin/mcs point to?


 It  points to a binary that does not run on its own.
 bash-4.1$ ./lib/mono/4.5/mcs.exe --version
 bash: ./lib/mono/4.5/mcs.exe: cannot execute binary file

 but, if I run it with mono it will work.
 bash-4.1$ bin/mono ./lib/mono/4.5/mcs.exe --version
 Mono C# compiler version 3.2.7.0

 Prior to the change, it was the mcs wrapper that was being executed, after
 the change, it is trying to run the .NET binary directly.  The contents of
 mcs is:
 #!/bin/sh
 exec /opt/local/JenkinsBuilds/bin/mono $MONO_OPTIONS
 /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe $@



 On 15 February 2014 10:51, Michael Franz mvfr...@gmail.com wrote:
  On Sat, Feb 15, 2014 at 9:46 AM, Michael Franz mvfr...@gmail.com
  wrote:
 
  Hi,
 
  I see there have been a few changes to xbuild since February 10th,
  2014.
  February 10th is the last time I was able to build my local C# project
  using
  mono head.  This is a simple project that I have just started and am
  planing
  to build on both mono and .NET.  The issue seems to be that xbuild has
  changed how it finds mcs.  /opt/local/JenkinsBuilds/bin/mcs -
  /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe - see below.
 
  My locally build mono install is in /opt/local/JenkinsBuilds and my
  builds
  are all run via Jenkins.
 
  The build process is:
  - use premake5 to generate Visual Studio 2012 project files (note I am
  using .net 4.5 specific features)
  - use xbuild to build
  - use mono version of nunit to test
 
  The working build out put was like this:
 
  + /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
  XBuild Engine Version 12.0
  Mono, Version 3.2.7.0
  Copyright (C) 2005-2013 Various Mono authors
 
  Build started 2/10/2014 9:56:00 PM.
  __
  Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default
  target(s)):
   Target ValidateSolutionConfiguration:
   Building solution configuration Debug|Any CPU.
   Target Build:
   Project
  /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj (default
  target(s)):
   Target PrepareForBuild:
   Configuration: Debug Platform: AnyCPU
   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 /opt/local/JenkinsBuilds/bin/mcs
  execution started with
  arguments: /noconfig /debug:full /debug+ /optimize-
  /out:obj/Debug/QTS.dll
  Properties/AssemblyInfo.cs
  Utilities/Measurements/PerformanceStatistics.cs
  /target:library /define:DEBUG;TRACE /platform:AnyCPU
  /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll
  /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll
  /warn:4
 
 
  The broken build is now producing:
 
  + /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
  XBuild Engine Version 12.0
  Mono, Version 3.2.7.0
  Copyright (C) 2005-2013 Various Mono authors
 
  Build started 2/15/2014 8:50:52 AM.
  __
  Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default
  target(s)):
   Target ValidateSolutionConfiguration:
   Building solution configuration Debug|Any CPU.
   Target Build:
   Project
  /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj (default
  target(s)):
   Target PrepareForBuild:
   Configuration: Debug Platform: AnyCPU
   Created directory bin/Debug/
   Created directory obj/Debug/
   Target CopyFilesMarkedCopyLocal:
   Copying file from
  '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll'
  to '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll'
   Copying file from
  '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll.mdb' to
  '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll.mdb'
   Target GenerateSatelliteAssemblies:
   No input files were specified for target
  GenerateSatelliteAssemblies,
  skipping.
   Target CoreCompile:
   Tool
  /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe execution started
  with arguments

Re: [Mono-dev] Recent xbuild fixes causing issues with finding mcs

2014-02-16 Thread Michael Franz
On Sun, Feb 16, 2014 at 7:34 AM, Andrés G. Aragoneses kno...@gmail.comwrote:

 On 16/02/14 10:15, Michael Hutchinson wrote:
  ... which automatically executes exe
  files using Mono.

 Are you sure that statement applies to all distros? I read somewhere
 some time ago that the only distro so far that implemented the ability
 to run .exe files automatically by calling mono under the hood was
 Debian (and derivatives), by installing some system hook by default when
 mono packages are installed.

 Maybe Michael Franz is not using Debian? Or maybe that hook doesn't work
 for him because he's using a custom mono install (instead of debian
 packages)?

I am using CentOS 6.5 with a locally built Mono installation.

I have read about how you can modify the kernel to understand launching
Mono applications -
http://www.mono-project.com/Guide:Running_Mono_Applications - this was
probably after I ran into this problem.  If this has become a requirement
to use Mono for development it should probably be documented somewhere.




 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] NUnit shadow copy and multiple users issue

2014-02-16 Thread Michael Franz
On Sun, Feb 16, 2014 at 12:34 AM, Michael Franz mvfr...@gmail.com wrote:

 Hi,

 I have been setting up my development environment on CentOS 6.5 and have
 had some great success.  My latest issue is temp directories and shadow
 copies while running nunit.  The issue is documented here and fixed in
 NUnit 3.0 https://bugs.launchpad.net/nunit-3.0/+bug/719187 .  Is there
 any plan to upgrade the Mono version of NUnit?

 I might be wrong, but I have only been able to get the version of NUnit
 that is embedded in Mono to work for me.  Is there a way that I can upgrade
 my local copy and have it still work?

 Or, is the best way to resolve this issue is to create a patch for the
 shadow copy logic for the Mono version of NUnit?

 Michael

After looking into a fix for this, it seems that the easiest fix is to
change the nunit-console-exe.config files (I found 4) and one App.config.
 I am not sure which ones actually need to be changed as I don't fully
understand the build and install process.  It actually took a lot of
searching to find all of them.

# modified:   mcs/nunit24/ConsoleRunner/nunit-console-exe/App.config
# modified:
mcs/nunit24/ConsoleRunner/nunit-console-exe/nunit-console.exe.config
# modified:
mcs/nunit24/ConsoleRunner/nunit-console-exe/nunit-console.exe.config.net_2_0
# modified:
mcs/nunit24/ConsoleRunner/nunit-console-exe/nunit-console.exe.config.net_3_5
# modified:   mcs/tools/linker/Tests/Libs/nunit-console.exe.config

The patch for all is the same, it creates a user specific temp directory
for running unit tests.  This works for my setup, as I run multiple users
on the same machine.
I am sure there are better ways to resolve this issue, this just seem like
the easiest.

-add key=shadowfiles.path value=%temp%\nunit20\ShadowCopyCache /
+add key=shadowfiles.path
value=%temp%\nunit20-%USERNAME%\ShadowCopyCache /

What is the best way to proceed?

I also looked to raise a bug for this in the Mono bug database, but not
sure what component the NUnit code is under.

Thoughts?

Michael
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Recent xbuild fixes causing issues with finding mcs

2014-02-16 Thread Michael Hutchinson
No, this is not the same as launching exe files directly from the OS
using binfmt-misc.

If you launch an exe file *from Mono's implementation of
Process.Start*, Mono will detect managed executables and run them with
Mono automatically.

https://github.com/mono/mono/blob/master/mono/io-layer/processes.c#L808

On 16 February 2014 09:00, Michael Franz mvfr...@gmail.com wrote:

 On Sun, Feb 16, 2014 at 7:34 AM, Andrés G. Aragoneses kno...@gmail.com
 wrote:

 On 16/02/14 10:15, Michael Hutchinson wrote:
  ... which automatically executes exe
  files using Mono.

 Are you sure that statement applies to all distros? I read somewhere
 some time ago that the only distro so far that implemented the ability
 to run .exe files automatically by calling mono under the hood was
 Debian (and derivatives), by installing some system hook by default when
 mono packages are installed.

 Maybe Michael Franz is not using Debian? Or maybe that hook doesn't work
 for him because he's using a custom mono install (instead of debian
 packages)?

 I am using CentOS 6.5 with a locally built Mono installation.

 I have read about how you can modify the kernel to understand launching Mono
 applications - http://www.mono-project.com/Guide:Running_Mono_Applications -
 this was probably after I ran into this problem.  If this has become a
 requirement to use Mono for development it should probably be documented
 somewhere.




 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list




-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Recent xbuild fixes causing issues with finding mcs

2014-02-15 Thread Michael Franz
Hi,

I see there have been a few changes to xbuild since February 10th, 2014.
 February 10th is the last time I was able to build my local C# project
using mono head.  This is a simple project that I have just started and am
planing to build on both mono and .NET.  The issue seems to be that xbuild
has changed how it finds mcs.  /opt/local/JenkinsBuilds/bin/mcs -
/opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe - see below.

My locally build mono install is in /opt/local/JenkinsBuilds and my builds
are all run via Jenkins.

The build process is:
- use premake5 to generate Visual Studio 2012 project files (note I am
using .net 4.5 specific features)
- use xbuild to build
- use mono version of nunit to test

The working build out put was like this:

+ /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
XBuild Engine Version 12.0
Mono, Version 3.2.7.0
Copyright (C) 2005-2013 Various Mono authors

Build started 2/10/2014 9:56:00 PM.
__
Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration Debug|Any CPU.
Target Build:
Project /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj 
(default
target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
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 */opt/local/JenkinsBuilds/bin/mcs* 
execution started with
arguments: /noconfig /debug:full /debug+ /optimize-
/out:obj/Debug/QTS.dll Properties/AssemblyInfo.cs
Utilities/Measurements/PerformanceStatistics.cs /target:library
/define:DEBUG;TRACE /platform:AnyCPU
/reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll
/reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll
/warn:4


The broken build is now producing:

+ /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
XBuild Engine Version 12.0
Mono, Version 3.2.7.0
Copyright (C) 2005-2013 Various Mono authors

Build started 2/15/2014 8:50:52 AM.
__
Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration Debug|Any CPU.
Target Build:
Project /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj 
(default
target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Created directory bin/Debug/
Created directory obj/Debug/
Target CopyFilesMarkedCopyLocal:
Copying file from
'/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll' to
'/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll'
Copying file from
'/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll.mdb' to
'/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll.mdb'
Target GenerateSatelliteAssemblies:
No input files were specified for target
GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool 
/opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe execution
started with arguments: /noconfig /debug:full /debug+ /optimize-
/out:obj/Debug/QTS.dll Properties/AssemblyInfo.cs Utilities/Math.cs
Utilities/Measurements/PerformanceStatistics.cs
obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs
/target:library /define:DEBUG;TRACE /nostdlib /platform:AnyCPU
/reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll
/reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll
/reference:/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll /warn:4
/opt/local/JenkinsBuilds/lib/mono/4.5/Microsoft.CSharp.targets: error
: Error executing tool
'/opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe':



I checked the commit logs, and it looks like there are commits that would
affect this behavior.  Now, it might be that I was doing something wrong
from the start and now I need to fix the process, but it seems like a
simple process.
e753ca2 Michael Hutchinson [xbuild] Fix dependency in C# targets
c197478 Michael Hutchinson [xbuild] Fix 2.0 tests to handle mcs sdk argument
693176c Michael Hutchinson [xbuild] Fix Tooltask.ToolPath behaviour to
match .NET
df52831 Michael Hutchinson [xbuild] Make ToolLocationHelper work better for
2.0/3.5
a55c588 Michael Hutchinson [xbuild] Fix typo that broke 2.0/3.5 targets

Re: [Mono-dev] Recent xbuild fixes causing issues with finding mcs

2014-02-15 Thread Michael Franz
On Sat, Feb 15, 2014 at 9:46 AM, Michael Franz mvfr...@gmail.com wrote:

 Hi,

 I see there have been a few changes to xbuild since February 10th, 2014.
  February 10th is the last time I was able to build my local C# project
 using mono head.  This is a simple project that I have just started and am
 planing to build on both mono and .NET.  The issue seems to be that xbuild
 has changed how it finds mcs.  /opt/local/JenkinsBuilds/bin/mcs -
 /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe - see below.

 My locally build mono install is in /opt/local/JenkinsBuilds and my builds
 are all run via Jenkins.

 The build process is:
 - use premake5 to generate Visual Studio 2012 project files (note I am
 using .net 4.5 specific features)
 - use xbuild to build
 - use mono version of nunit to test

 The working build out put was like this:

 + /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
 XBuild Engine Version 12.0
 Mono, Version 3.2.7.0
 Copyright (C) 2005-2013 Various Mono authors

 Build started 2/10/2014 9:56:00 PM.
 __
 Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default target(s)):
   Target ValidateSolutionConfiguration:
   Building solution configuration Debug|Any CPU.
   Target Build:
   Project /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj 
 (default target(s)):
   Target PrepareForBuild:
   Configuration: Debug Platform: AnyCPU
   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 */opt/local/JenkinsBuilds/bin/mcs* 
 execution started with arguments: /noconfig /debug:full /debug+ /optimize- 
 /out:obj/Debug/QTS.dll Properties/AssemblyInfo.cs 
 Utilities/Measurements/PerformanceStatistics.cs /target:library 
 /define:DEBUG;TRACE /platform:AnyCPU 
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll 
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll /warn:4


 The broken build is now producing:

 + /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
 XBuild Engine Version 12.0
 Mono, Version 3.2.7.0
 Copyright (C) 2005-2013 Various Mono authors

 Build started 2/15/2014 8:50:52 AM.
 __
 Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default target(s)):
   Target ValidateSolutionConfiguration:
   Building solution configuration Debug|Any CPU.
   Target Build:
   Project /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj 
 (default target(s)):
   Target PrepareForBuild:
   Configuration: Debug Platform: AnyCPU
   Created directory bin/Debug/
   Created directory obj/Debug/
   Target CopyFilesMarkedCopyLocal:
   Copying file from 
 '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll' to 
 '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll'
   Copying file from 
 '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll.mdb' to 
 '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll.mdb'
   Target GenerateSatelliteAssemblies:
   No input files were specified for target 
 GenerateSatelliteAssemblies, skipping.
   Target CoreCompile:
   Tool 
 /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe execution started with 
 arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/QTS.dll 
 Properties/AssemblyInfo.cs Utilities/Math.cs 
 Utilities/Measurements/PerformanceStatistics.cs 
 obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs /target:library 
 /define:DEBUG;TRACE /nostdlib /platform:AnyCPU 
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll 
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll 
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll /warn:4
 /opt/local/JenkinsBuilds/lib/mono/4.5/Microsoft.CSharp.targets: error : Error 
 executing tool '/opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe':



 I checked the commit logs, and it looks like there are commits that would
 affect this behavior.  Now, it might be that I was doing something wrong
 from the start and now I need to fix the process, but it seems like a
 simple process.
 e753ca2 Michael Hutchinson [xbuild] Fix dependency in C# targets
 c197478 Michael Hutchinson [xbuild] Fix 2.0 tests to handle mcs sdk
 argument
 693176c Michael Hutchinson [xbuild] Fix Tooltask.ToolPath behaviour to
 match .NET
 df52831 Michael Hutchinson

Re: [Mono-dev] Recent xbuild fixes causing issues with finding mcs

2014-02-15 Thread Michael Hutchinson
AFAIK something's wrong with the installation if
$prefix/lib/mono/4.5/mcs.exe is missing.

What does your $prefix/bin/mcs point to?

On 15 February 2014 10:51, Michael Franz mvfr...@gmail.com wrote:
 On Sat, Feb 15, 2014 at 9:46 AM, Michael Franz mvfr...@gmail.com wrote:

 Hi,

 I see there have been a few changes to xbuild since February 10th, 2014.
 February 10th is the last time I was able to build my local C# project using
 mono head.  This is a simple project that I have just started and am planing
 to build on both mono and .NET.  The issue seems to be that xbuild has
 changed how it finds mcs.  /opt/local/JenkinsBuilds/bin/mcs -
 /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe - see below.

 My locally build mono install is in /opt/local/JenkinsBuilds and my builds
 are all run via Jenkins.

 The build process is:
 - use premake5 to generate Visual Studio 2012 project files (note I am
 using .net 4.5 specific features)
 - use xbuild to build
 - use mono version of nunit to test

 The working build out put was like this:

 + /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
 XBuild Engine Version 12.0
 Mono, Version 3.2.7.0
 Copyright (C) 2005-2013 Various Mono authors

 Build started 2/10/2014 9:56:00 PM.
 __
 Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default target(s)):
  Target ValidateSolutionConfiguration:
  Building solution configuration Debug|Any CPU.
  Target Build:
  Project /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj 
 (default
 target(s)):
  Target PrepareForBuild:
  Configuration: Debug Platform: AnyCPU
  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 /opt/local/JenkinsBuilds/bin/mcs execution 
 started with
 arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/QTS.dll
 Properties/AssemblyInfo.cs Utilities/Measurements/PerformanceStatistics.cs
 /target:library /define:DEBUG;TRACE /platform:AnyCPU
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll /warn:4


 The broken build is now producing:

 + /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
 XBuild Engine Version 12.0
 Mono, Version 3.2.7.0
 Copyright (C) 2005-2013 Various Mono authors

 Build started 2/15/2014 8:50:52 AM.
 __
 Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default target(s)):
  Target ValidateSolutionConfiguration:
  Building solution configuration Debug|Any CPU.
  Target Build:
  Project /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj 
 (default
 target(s)):
  Target PrepareForBuild:
  Configuration: Debug Platform: AnyCPU
  Created directory bin/Debug/
  Created directory obj/Debug/
  Target CopyFilesMarkedCopyLocal:
  Copying file from 
 '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll'
 to '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll'
  Copying file from
 '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll.mdb' to
 '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll.mdb'
  Target GenerateSatelliteAssemblies:
  No input files were specified for target 
 GenerateSatelliteAssemblies,
 skipping.
  Target CoreCompile:
  Tool 
 /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe execution started
 with arguments: /noconfig /debug:full /debug+ /optimize-
 /out:obj/Debug/QTS.dll Properties/AssemblyInfo.cs Utilities/Math.cs
 Utilities/Measurements/PerformanceStatistics.cs
 obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs /target:library
 /define:DEBUG;TRACE /nostdlib /platform:AnyCPU
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll
 /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll /warn:4
 /opt/local/JenkinsBuilds/lib/mono/4.5/Microsoft.CSharp.targets: error :
 Error executing tool '/opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe':



 I checked the commit logs, and it looks like there are commits that would
 affect this behavior.  Now, it might be that I was doing something wrong
 from the start and now I need to fix the process, but it seems like a simple
 process.
 e753ca2 Michael Hutchinson [xbuild] Fix dependency in C# targets
 c197478 Michael Hutchinson

Re: [Mono-dev] Recent xbuild fixes causing issues with finding mcs

2014-02-15 Thread Michael Franz
On Sat, Feb 15, 2014 at 10:02 PM, Michael Hutchinson 
m.j.hutchin...@gmail.com wrote:

 AFAIK something's wrong with the installation if
 $prefix/lib/mono/4.5/mcs.exe is missing.

 What does your $prefix/bin/mcs point to?


It  points to a binary that does not run on its own.
bash-4.1$ ./lib/mono/4.5/mcs.exe --version
bash: ./lib/mono/4.5/mcs.exe: cannot execute binary file

but, if I run it with mono it will work.
bash-4.1$ bin/mono ./lib/mono/4.5/mcs.exe --version
Mono C# compiler version 3.2.7.0

Prior to the change, it was the mcs wrapper that was being executed, after
the change, it is trying to run the .NET binary directly.  The contents of
mcs is:
#!/bin/sh
exec /opt/local/JenkinsBuilds/bin/mono $MONO_OPTIONS
/opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe $@



On 15 February 2014 10:51, Michael Franz mvfr...@gmail.com wrote:
  On Sat, Feb 15, 2014 at 9:46 AM, Michael Franz mvfr...@gmail.com
 wrote:
 
  Hi,
 
  I see there have been a few changes to xbuild since February 10th, 2014.
  February 10th is the last time I was able to build my local C# project
 using
  mono head.  This is a simple project that I have just started and am
 planing
  to build on both mono and .NET.  The issue seems to be that xbuild has
  changed how it finds mcs.  /opt/local/JenkinsBuilds/bin/mcs -
  /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe - see below.
 
  My locally build mono install is in /opt/local/JenkinsBuilds and my
 builds
  are all run via Jenkins.
 
  The build process is:
  - use premake5 to generate Visual Studio 2012 project files (note I am
  using .net 4.5 specific features)
  - use xbuild to build
  - use mono version of nunit to test
 
  The working build out put was like this:
 
  + /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
  XBuild Engine Version 12.0
  Mono, Version 3.2.7.0
  Copyright (C) 2005-2013 Various Mono authors
 
  Build started 2/10/2014 9:56:00 PM.
  __
  Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default
 target(s)):
   Target ValidateSolutionConfiguration:
   Building solution configuration Debug|Any CPU.
   Target Build:
   Project
 /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj (default
  target(s)):
   Target PrepareForBuild:
   Configuration: Debug Platform: AnyCPU
   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 /opt/local/JenkinsBuilds/bin/mcs
 execution started with
  arguments: /noconfig /debug:full /debug+ /optimize-
 /out:obj/Debug/QTS.dll
  Properties/AssemblyInfo.cs
 Utilities/Measurements/PerformanceStatistics.cs
  /target:library /define:DEBUG;TRACE /platform:AnyCPU
  /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll
  /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll /warn:4
 
 
  The broken build is now producing:
 
  + /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
  XBuild Engine Version 12.0
  Mono, Version 3.2.7.0
  Copyright (C) 2005-2013 Various Mono authors
 
  Build started 2/15/2014 8:50:52 AM.
  __
  Project /var/lib/jenkins/jobs/CI/workspace/QTS.sln (default
 target(s)):
   Target ValidateSolutionConfiguration:
   Building solution configuration Debug|Any CPU.
   Target Build:
   Project
 /var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj (default
  target(s)):
   Target PrepareForBuild:
   Configuration: Debug Platform: AnyCPU
   Created directory bin/Debug/
   Created directory obj/Debug/
   Target CopyFilesMarkedCopyLocal:
   Copying file from
 '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll'
  to '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll'
   Copying file from
  '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll.mdb' to
  '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll.mdb'
   Target GenerateSatelliteAssemblies:
   No input files were specified for target
 GenerateSatelliteAssemblies,
  skipping.
   Target CoreCompile:
   Tool
 /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe execution started
  with arguments: /noconfig /debug:full /debug+ /optimize-
  /out:obj/Debug/QTS.dll Properties/AssemblyInfo.cs Utilities/Math.cs
  Utilities/Measurements/PerformanceStatistics.cs
  obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs

[Mono-dev] NUnit shadow copy and multiple users issue

2014-02-15 Thread Michael Franz
Hi,

I have been setting up my development environment on CentOS 6.5 and have
had some great success.  My latest issue is temp directories and shadow
copies while running nunit.  The issue is documented here and fixed in
NUnit 3.0 https://bugs.launchpad.net/nunit-3.0/+bug/719187 .  Is there any
plan to upgrade the Mono version of NUnit?

I might be wrong, but I have only been able to get the version of NUnit
that is embedded in Mono to work for me.  Is there a way that I can upgrade
my local copy and have it still work?

Or, is the best way to resolve this issue is to create a patch for the
shadow copy logic for the Mono version of NUnit?

Michael
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Cross Compiling to Windows

2014-02-13 Thread Michael Franz
Hi,

I have been trying to cross compile mono on centos 6.5 for windows using
the instructions here
http://www.mono-project.com/Cross-compiling_Mono_for_Windows .  These
instructions do not look like they have been updated in a while.  Does this
process for using MinGW to cross compile Mono for Windows still work?

After installing a bunch of the mingw packages and running:
./build-mingw32.sh -m i686-pc-mingw32

I am getting compilation errors on atomic.h missing references.  Would I be
running into the same issues as the native compilation issues?  (compiling
on windows using cygwin/mingw)

Thoughts?

Michael
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Can't build the master branch from git

2014-02-09 Thread Michael Franz
My daily builds started to fail a few days ago, but seem to be back up and
working now.  I build with a similar command on Centos 6.5 .
./autogen.sh --prefix=/opt/local/JenkinsBuilds
make get-monolite-latest
make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/gmcs.exe


On Fri, Feb 7, 2014 at 1:42 PM, Brandon Perry bperry.volat...@gmail.comwrote:

 I recently documented compiling the 3.2.6 on CentOS.

 Not sure if your issue is ubuntu related, but perhaps this will help:

 http://volatile-minds.blogspot.com/2014/01/mono-326-on-centos-65.html


 On Fri, Feb 7, 2014 at 12:02 PM, initram martin.midtga...@gmail.comwrote:

 I am unable to build the souce code I have pulled form git. I have tried
 both
 using both the repository version of mono and monolite to compile and I
 fail
 in the same way.

 The last lines of my failed build can be seen below (using monolite):

 Making all in runtime
 make[2]: Entering directory `/home/initram/monoSource/monoInitram/runtime'
 if test -w /home/initram/monoSource/monoInitram/mcs; then :; else chmod -R
 +w /home/initram/monoSource/monoInitram/mcs; fi
 cd /home/initram/monoSource/monoInitram/mcs  make --no-print-directory
 -s
 NO_DIR_CHECK=1 PROFILES='net_2_0 net_3_5 net_4_0 net_4_5 xbuild_12   '
 CC='gcc' all-profiles
 Bootstrap compiler: Mono C# compiler version 3.2.7.0
 MCS [net_2_0] mscorlib.dll
 Stacktrace:


 Native stacktrace:

 Segmentation fault (core dumped)
 make[8]: *** [../../class/lib/net_2_0/tmp/mscorlib.dll] Error 139
 make[7]: *** [do-all] Error 2
 make[6]: *** [all-recursive] Error 1
 make[5]: *** [all-recursive] Error 1
 make[4]: *** [profile-do--net_2_0--all] Error 2
 make[3]: *** [profiles-do--all] Error 2
 make[2]: *** [all-local] Error 2
 make[2]: Leaving directory `/home/initram/monoSource/monoInitram/runtime'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/initram/monoSource/monoInitram'
 make: *** [all] Error 2



 I am running Lubuntu in a virtual machine.
 my process of building is the following:
 $ cd ~/monoSource/monoInitram
 $ ./autogen.sh --prefix=/opt/monoInitram
 $ make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/basic.exe

 Where do I go from here?
 I would really like to know that my changes compile and pass all test
 using
 head of master.



 --
 View this message in context:
 http://mono.1490590.n4.nabble.com/Can-t-build-the-master-branch-from-git-tp4661864.html
 Sent from the Mono - Dev mailing list archive at Nabble.com.
 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list




 --
 http://volatile-minds.blogspot.com -- blog
 http://www.volatileminds.net -- website

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] winforms , libgdiplus and cairo-gl

2014-02-05 Thread Michael Grunditz

26 jan 2014 kl. 13:19 skrev Michael Grunditz mic...@mickenware.se:

 
 26 jan 2014 kl. 11:31 skrev Michael Grunditz mic...@mickenware.se:
 
 Hi
 
 I have spent this weekend working on getting libgdiplus and winforms with a 
 cairo-gl (linux) backend.
 Many things was easy to change and I have a forms gui up and running.
 
 However , when I tried a drop down menu things got complicated (see pics 
 below). I 
 think that this points to som fill routines but I am not sure. Is there 
 someone on this
 list who knows the complete chain from drop down menu to gdiplus?
 
 http://www.update.uu.se/~micken/forms_gl1.jpg
 
 http://www.update.uu.se/~micken/forms_gl2.jpg
 
 http://www.update.uu.se/~micken/forms_gl3.jpg
 
 Br
 
 Michael Grunditz
 
 Update. I found the real problem. When areas are being exposed gdiplus only 
 redraws (filling) the part that was exposed. So , when I do swapbuffers it 
 redraws the  non complete cairo surface.
 
 It seems like the happens only in special fill cases. For example buttons are 
 never ”damaged”.
 
 Michael
 
 Please CC me in your replies , my google mail doesn’t like mailing lists.

Hi again, update

The backend works now , but are very slow. I haven’t got around the need for 
swap buffers every time the gui changes. I  have recommended my customer to 
migrate to Gtk# instead.

Michael




___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] winforms , libgdiplus and cairo-gl

2014-01-26 Thread Michael Grunditz
Hi

I have spent this weekend working on getting libgdiplus and winforms with a 
cairo-gl (linux) backend.
Many things was easy to change and I have a forms gui up and running.

However , when I tried a drop down menu things got complicated (see pics 
below). I 
think that this points to som fill routines but I am not sure. Is there someone 
on this
list who knows the complete chain from drop down menu to gdiplus?

http://www.update.uu.se/~micken/forms_gl1.jpg

http://www.update.uu.se/~micken/forms_gl2.jpg

http://www.update.uu.se/~micken/forms_gl3.jpg

Br

Michael Grunditz
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] winforms , libgdiplus and cairo-gl

2014-01-26 Thread Michael Grunditz

26 jan 2014 kl. 11:31 skrev Michael Grunditz mic...@mickenware.se:

 Hi
 
 I have spent this weekend working on getting libgdiplus and winforms with a 
 cairo-gl (linux) backend.
 Many things was easy to change and I have a forms gui up and running.
 
 However , when I tried a drop down menu things got complicated (see pics 
 below). I 
 think that this points to som fill routines but I am not sure. Is there 
 someone on this
 list who knows the complete chain from drop down menu to gdiplus?
 
 http://www.update.uu.se/~micken/forms_gl1.jpg
 
 http://www.update.uu.se/~micken/forms_gl2.jpg
 
 http://www.update.uu.se/~micken/forms_gl3.jpg
 
 Br
 
 Michael Grunditz

Update. I found the real problem. When areas are being exposed gdiplus only 
redraws (filling) the part that was exposed. So , when I do swapbuffers it 
redraws the  non complete cairo surface.

It seems like the happens only in special fill cases. For example buttons are 
never ”damaged”.

Michael

Please CC me in your replies , my google mail doesn’t like mailing lists.
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Afallon: open source WPF implementation

2013-08-18 Thread Michael Franz
Jonathan,

On Thu, Jun 13, 2013 at 4:31 PM, Jonathan Lima greenbo...@gmail.com wrote:

 Would I have licensing problems using Micro Framework code? I want to use
 any opensource license that I could use it on commercial projects(MIT
 probably).

 @Stephen
 I'm organizing the code as it is splitted across some projects, soon I'll
 put it into a git repo.


Have you made enough progress on this to post the repo URL?

Michael
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono 3.2.1 OS X Build on Mountain Lion with threads failure [libmonoruntime_la-threads.lo] Error 1

2013-08-08 Thread Michael Franz
Rodrigo,

I see the page is updated, I cannot tell the difference between the 32 bit
build and the 64 bit build instructions.  I don't think the 64 bit
instructions needed to be changed.  If the --build is specified for the 64
bit, it should be x86_64-apple-darwin11.2.0 .

Michael


On Thu, Aug 8, 2013 at 11:50 AM, Rodrigo Kumpera kump...@gmail.com wrote:

 The build instructions have been updated.


 On Wed, Aug 7, 2013 at 9:37 PM, Michael Franz mvfr...@gmail.com wrote:

 Zoltan,

 Your suggestion worked!  Thank you!

 How do we get the OS X build instructions updated?  This is the page I
 was working from.  http://mono-project.com/Compiling_Mono_on_OSX

 Michael


 On Wed, Aug 7, 2013 at 3:54 AM, Zoltan Varga var...@gmail.com wrote:

 Hi,

  Instead of CFLAGS=-m32, try configure --build=i386-apple-darwin11.2.0
 or something.

  Zoltan


 On Wed, Aug 7, 2013 at 4:13 AM, Michael Franz mvfr...@gmail.com wrote:

  Hi,

 I download the latest tar file 
 (mono-3.2.1.tar.bz2http://download.mono-project.com/sources/mono/mono-3.2.1.tar.bz2)
  and
 followed the OS X build instructions.  The 32 bit build is failing, similar
 to this old thread
 http://mono.1490590.n4.nabble.com/mono-io-layer-mono-mutex-h-Errors-in-Current-Master-td3515845.html#a3515916.
   The 64 bit build works just fine.  How do I get more details of the
 exact error?

   $ CC='cc -m32' ./configure --prefix=DIR --enable-nls=no
   $ make

 Making all in metadata
   CC   libmonoruntime_la-threads.lo
 make[3]: *** [libmonoruntime_la-threads.lo] Error 1
 make[2]: *** [all-recursive] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2

 I have tried 'make V=1', but that just seems to give me the information
 about the command used to build and not the details on the problem.

 My system detail ares:
 mono-3.2.1$ uname -a
 Darwin MacMini.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May  1
 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64

 mono-3.2.1$ gcc --version
 i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
 5658) (LLVM build 2336.11.00)

 Any help is appreciated.

 Michael

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list




 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Mono 3.2.1 OS X Build on Mountain Lion with threads failure [libmonoruntime_la-threads.lo] Error 1

2013-08-07 Thread Michael Franz
Zoltan,

Your suggestion worked!  Thank you!

How do we get the OS X build instructions updated?  This is the page I was
working from.  http://mono-project.com/Compiling_Mono_on_OSX

Michael


On Wed, Aug 7, 2013 at 3:54 AM, Zoltan Varga var...@gmail.com wrote:

 Hi,

  Instead of CFLAGS=-m32, try configure --build=i386-apple-darwin11.2.0
 or something.

  Zoltan


 On Wed, Aug 7, 2013 at 4:13 AM, Michael Franz mvfr...@gmail.com wrote:

 Hi,

 I download the latest tar file 
 (mono-3.2.1.tar.bz2http://download.mono-project.com/sources/mono/mono-3.2.1.tar.bz2)
  and
 followed the OS X build instructions.  The 32 bit build is failing, similar
 to this old thread
 http://mono.1490590.n4.nabble.com/mono-io-layer-mono-mutex-h-Errors-in-Current-Master-td3515845.html#a3515916.
   The 64 bit build works just fine.  How do I get more details of the
 exact error?

   $ CC='cc -m32' ./configure --prefix=DIR --enable-nls=no
   $ make

 Making all in metadata
   CC   libmonoruntime_la-threads.lo
 make[3]: *** [libmonoruntime_la-threads.lo] Error 1
 make[2]: *** [all-recursive] Error 1
 make[1]: *** [all-recursive] Error 1
 make: *** [all] Error 2

 I have tried 'make V=1', but that just seems to give me the information
 about the command used to build and not the details on the problem.

 My system detail ares:
 mono-3.2.1$ uname -a
 Darwin MacMini.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May  1
 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64

 mono-3.2.1$ gcc --version
 i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
 5658) (LLVM build 2336.11.00)

 Any help is appreciated.

 Michael

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Mono 3.2.1 OS X Build on Mountain Lion with threads failure [libmonoruntime_la-threads.lo] Error 1

2013-08-06 Thread Michael Franz
Hi,

I download the latest tar file
(mono-3.2.1.tar.bz2http://download.mono-project.com/sources/mono/mono-3.2.1.tar.bz2)
and
followed the OS X build instructions.  The 32 bit build is failing, similar
to this old thread
http://mono.1490590.n4.nabble.com/mono-io-layer-mono-mutex-h-Errors-in-Current-Master-td3515845.html#a3515916.
 The 64 bit build works just fine.  How do I get more details of the
exact error?

  $ CC='cc -m32' ./configure --prefix=DIR --enable-nls=no
  $ make

Making all in metadata
  CC   libmonoruntime_la-threads.lo
make[3]: *** [libmonoruntime_la-threads.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I have tried 'make V=1', but that just seems to give me the information
about the command used to build and not the details on the problem.

My system detail ares:
mono-3.2.1$ uname -a
Darwin MacMini.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May  1
17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64

mono-3.2.1$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.11.00)

Any help is appreciated.

Michael
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-list] Fwd: System.Web.HttpApplication missing method RegisterModule()

2013-08-04 Thread Michael Friis
I can't find this tracked on go-mono.com/status so I just wanted to
log that System.Web.HttpApplicaiton is missing the RegisterModule()
method.

MS docs: 
http://msdn.microsoft.com/en-us/library/system.web.httpapplication.registermodule.aspx

Mono source: 
https://github.com/mono/mono/blob/master/mcs/class/System.Web/System.Web/HttpApplication.cs
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-aspnet-list] [ANN] Mono buildpack for ASP.NET and OWIN apps

2013-07-11 Thread Michael Friis
In case anyone is interested, I've created a buildpack that makes it
easy to run ASP.NET and OWIN apps on various Cloud Platforms. My hope
is that this is going to make Mono a more popular choice for hosting
ASP.NET other .NET apps in the cloud.

The buildpack is here: https://github.com/friism/heroku-buildpack-mono/

Platforms that support buildpacks include Heroku (where I've tested)
CloudFoundry and Stackato.

I've written a couple of blog posts on how to get started:
 * http://friism.com/running-net-on-heroku
 * http://friism.com/running-owin-katana-apps-on-heroku

Regards
Michael
___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


[Mono-list] [ANN] Mono buildpack for ASP.NET and OWIN apps

2013-07-11 Thread Michael Friis
In case anyone is interested, I've created a buildpack that makes it
easy to run ASP.NET and OWIN apps on various Cloud Platforms. My hope
is that this is going to make Mono a more popular choice for hosting
ASP.NET other .NET apps in the cloud.

The buildpack is here: https://github.com/friism/heroku-buildpack-mono/

Platforms that support buildpacks include Heroku (where I've tested)
CloudFoundry and Stackato.

I've written a couple of blog posts on how to get started:
 * http://friism.com/running-net-on-heroku
 * http://friism.com/running-owin-katana-apps-on-heroku

Regards
Michael
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] sub-process invocation on posix

2013-06-10 Thread Michael Hutchinson
FWIW, you actually just need to double quote each argument and escape
double quotes so you can very easily write a helper to do this in a way
that works on both Mono and .NET:

static Process StartProcess (string name, params string[] args)
{
string a = null;
if (args != null  args.Length  0)
a = \ + string.Join (args.Select (s = s.Replace (\,
\\\)).ToArray (), \ \) + \;
return Process.Start (
new ProcessStartInfo (name, a) {
ShellExecute = false,
}
);
}

Obviously this could be done more efficiently with a StringBuilder.

Apologies for any errors, I'm writing this on my phone...

- Michael
On Jun 6, 2013 1:18 PM, Ian Norton inor...@gmail.com wrote:

 Hiya, I'm aware that I can use Process.Start() but I'd really really like
 to be able to directly pass a list of strings to my child process as
 arguments rather than having to escape shell characters and spaces etc.

 Ie, In perl or C I'd do:

 system(df,-m,/home/foo/Documents/Pictures/My Holiday);

 Where in c# I'm forced to escape the space - My\ Holiday

 Ian

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] ASP.NET Xarmin - GSoC 2013

2013-04-25 Thread Michael Hutchinson
On 21 April 2013 14:09, Rauf Butt raufb...@gmail.com wrote:
 Hi All,

 Thanks for your valuable input. I had gone through MonoDevelop source code,
 documentation and the requirements that were mentioned in the previous
 emails. Based on the study, I have come across the following features of
 ASP.NET to be incorporated into MonoDevelop.

 *Run in Browser of choice
 *Run/debug support on Remote server

These would be nice to have but are not enough to make a complete proposal.

 *Support for MVC3
 *Support for Razor and Razor templates

These have already been implemented.

This is a very flexible project - I expect any student applying for it
to look at the existing ASP.NET support in MonoDevelop and identify
things that they would like to fix or improve to make it better. There
is no set list of things to do - the items students choose to put in
their proposal will demonstrate their understanding of what makes a
good development experience :)

--
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Unable to start WCF host with 1 service endpoint

2013-02-25 Thread Michael Conway
Thanks for the response. That is pretty much what I figured, but I just wanted 
to make sure there wasn't something I was missing. I can definitely just use a 
normal Windows service for what I need to do, but WCF via Rabbit seemed like a 
smarter way to do it.

Thanks for the reference on ServiceStack too. Looks cool, though not positive 
it will do everything I need for this project.

From: dacur...@gmail.com [mailto:dacur...@gmail.com] On Behalf Of Dave Curylo
Sent: Friday, February 22, 2013 11:00 AM
To: Michael Conway
Cc: mono-list@lists.ximian.com
Subject: Re: [Mono-list] Unable to start WCF host with 1 service endpoint

WCF services on mono do not work so well.  Even if you can get them to 
function, I've found the implementation does not perform very well.  If you get 
away from HTTP bindings, things get worse, and I'm not sure at all about the 
RabbitMQ bindings.

I use RabbitMQ heavily under mono and the regular driver works very well.  Can 
you get away from WCF for this?

Also, if you're building services in mono, or want a nice framework that is 
fully supported on both mono and .NET, I highly recommend using ServiceStack 
(http://ServiceStack.net). It performs quite well on both mono and .NET, and 
most people find the design approach to be quite refreshing.  I certainly do.

On Tuesday, February 19, 2013, mconway wrote:
I am evaluating some uses of Mono for a project that we are currently working
on in my organization, and I have run into a stumbling block that I am
hoping may just be user error on my part.

I created a Console service host for a small (2 method) WCF service. When I
attempt to start this service, I get the following error on both Mono 2.10.9
and 3.0.3:

System.ServiceModel.Channels.BindingElementCollection doesn't implement
interface
System.Collections.Generic.IEnumerableSystem.ServiceModel.Channels.BindingElement
Stacktrace:

  at unknown 0x
  at System.ServiceModel.Channels.BindingElementCollection..ctor
(System.Collections.Generic.IEnumerable`1System.ServiceModel.Channels.BindingElement)
[0x6] in
/home/mconway/mono-3.0.3/mcs/class/System.ServiceModel/System.ServiceModel.Channels/BindingElementCollection.cs:48

I can pastebin my code if that would help, but it is a simple
host.AddServiceEndpoint Implementation using the RabbitMQBinding. Is there
another way I should be going about starting this service, or is this just
an example of unsupported WCF behavior?

I ran the MoMA against this exe and dll, and they both passed with no
errors/warnings.

Thanks in advance.
Mike




--
View this message in context: 
http://mono.1490590.n4.nabble.com/Unable-to-start-WCF-host-with-1-service-endpoint-tp4658637.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.comjavascript:;
http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] How to verify C# Mono assembly references

2012-12-11 Thread Michael Powell
Hello,

I'd like to verify how portable a C# Windows application is into a Linux
environment. I seem to recall there's a Mono utility that can do this
automatically, but I forget the name of it or where to find it. Kind of a
go/no-go prior to spending any energy in a Linux environment.

Thanks...

Regards,

Michael
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-dev] Building mono on windows

2012-12-03 Thread Michael Stoll

I'm trying to build Mono on Windows 7.

The System:
Windows 7 Professional x64
Mono 3.0.1
Cygwin 1.7

What I did:
Checkout git repository (with Tortoise GIT, no auto CRLF)
./autogen.sh --prefix /usr/local  autogen.log (see attachment)
make  make.log (see attachment)

But make fails:
MCS [net_2_0] mscorlib.dll
Cannot open assembly './../../class/lib/build/mcs.exe': Permission denied.
../../build/library.make:243: recipe for target 
`../../class/lib/net_2_0/tmp/mscorlib.dll' failed

make[8]: *** [../../class/lib/net_2_0/tmp/mscorlib.dll] Error 2

There's also a strange warning in autogen.log:297 (configure: WARNING: 
winternl.h: present but cannot be compiled)


Any clue?

Regards
Michael
Making all in runtime
make[2]: Entering directory `/cygdrive/d/lnk/mono/mono/runtime'
d=`cd ../support  pwd`; \
sed 's,target=libMonoPosixHelper[^]*,target='$d/libMonoPosixHelper.la',' 
../data/config  etc/mono/configt
if test -z ; then :; else \
  sed 's,configuration, dllmap dll=gdiplus.dll target= /,' 
etc/mono/configt  etc/mono/configtt; \
  mv -f etc/mono/configtt etc/mono/configt; fi
mv -f etc/mono/configt etc/mono/config
/bin/sh ../mkinstalldirs _tmpinst/bin
mkdir -p -- _tmpinst/bin
cp mono-wrapper _tmpinst/bin/mono
echo '#! /bin/sh'  _tmpinst/bin/ilasm ; \
r=`pwd`; m=`cd D:/lnk/mono/mono/mcs  pwd`; \
echo 'exec '$r/_tmpinst/bin/mono' '$m/ilasm/ilasm.exe' $@'  
_tmpinst/bin/ilasm ; \
chmod +x _tmpinst/bin/ilasm
echo '#! /bin/sh'  _tmpinst/bin/mcs ; \
r=`pwd`; m=`cd D:/lnk/mono/mono/mcs  pwd`; \
echo 'exec '$r/_tmpinst/bin/mono' '$m/class/lib/build/mcs.exe' $@'  
_tmpinst/bin/mcs ; \
chmod +x _tmpinst/bin/mcs
echo '#! /bin/sh'  _tmpinst/bin/gmcs ; \
r=`pwd`; m=`cd D:/lnk/mono/mono/mcs  pwd`; \
echo 'exec '$r/_tmpinst/bin/mono' '$m/class/lib/build/mcs.exe -sdk:2' 
$@'  _tmpinst/bin/gmcs ; \
chmod +x _tmpinst/bin/gmcs
echo '#! /bin/sh'  _tmpinst/bin/dmcs ; \
r=`pwd`; m=`cd D:/lnk/mono/mono/mcs  pwd`; \
echo 'exec '$r/_tmpinst/bin/mono' '$m/class/lib/build/mcs.exe -sdk:4' 
$@'  _tmpinst/bin/dmcs ; \
chmod +x _tmpinst/bin/dmcs
echo '#! /bin/sh'  _tmpinst/bin/al2 ; \
r=`pwd`; m=`cd D:/lnk/mono/mono/mcs  pwd`; \
echo 'exec '$r/_tmpinst/bin/mono' '$m/class/lib/net_2_0/al.exe' $@' 
 _tmpinst/bin/al2 ; \
chmod +x _tmpinst/bin/al2
echo '#! /bin/sh'  _tmpinst/bin/al ; \
r=`pwd`; m=`cd D:/lnk/mono/mono/mcs  pwd`; \
echo 'exec '$r/_tmpinst/bin/mono' '$m/class/lib/net_4_5/al.exe' $@' 
 _tmpinst/bin/al ; \
chmod +x _tmpinst/bin/al
if test -w D:/lnk/mono/mono/mcs; then :; else chmod -R +w D:/lnk/mono/mono/mcs; 
fi
cd D:/lnk/mono/mono/mcs  make --no-print-directory -s NO_DIR_CHECK=1 
PROFILES='  net_2_0 net_3_5  net_4_0  net_4_5' CC='gcc-3.exe -mno-cygwin 
-g' all-profiles
mkdir -p -- build/deps
Bootstrap compiler: Mono C# compiler version 3.0.1.0
Makefile:43: warning: overriding recipe for target `csproj-local'
../build/executable.make:149: warning: ignoring old recipe for target 
`csproj-local'
Makefile:43: warning: overriding recipe for target `csproj-local'
../build/executable.make:149: warning: ignoring old recipe for target 
`csproj-local'
Makefile:43: warning: overriding recipe for target `csproj-local'
../build/executable.make:149: warning: ignoring old recipe for target 
`csproj-local'
D:\lnk\mono\mono\mcs\jay\jay.exe: 7 shift/reduce conflicts.
Converting mcs.exe.sources to ../build/deps/mcs.exe.sources.response ...
mkdir -p -- ../class/lib/basic/
MCS [basic] basic.exe
Converting corlib.dll.sources to ../../build/deps/basic_corlib.dll.response ...
mkdir -p -- ../../class/lib/basic/tmp/
MCS [basic] mscorlib.dll
** Warning: System.dll built without parts that depend on: System.Xml.dll
Converting System.dll.sources to ../../build/deps/basic_System.dll.response ...
MCS [basic] System.dll
System.Diagnostics\TraceImpl.cs(44,15): warning CS0649: Field 
`System.Diagnostics.TraceImplSettings.AutoFlush' is never assigned to, and will 
always have its default value `false'
Compilation succeeded - 1 warning(s)
Converting System.Xml.dll.sources to 
../../build/deps/basic_System.Xml.dll.response ...
D:\lnk\mono\mono\mcs\jay\jay.exe: 21 rules never reduced
D:\lnk\mono\mono\mcs\jay\jay.exe: 1 shift/reduce conflict, 42 reduce/reduce 
conflicts.
D:\lnk\mono\mono\mcs\jay\jay.exe: 3 rules never reduced
D:\lnk\mono\mono\mcs\jay\jay.exe: 1 shift/reduce conflict, 46 reduce/reduce 
conflicts.
MCS [basic] System.Xml.dll
MCS [basic] System.dll
Converting Mono.Security.dll.sources to 
../../build/deps/basic_Mono.Security.dll.response ...
MCS [basic] Mono.Security.dll
.\Mono.Security.Protocol.Ntlm\Type3Message.cs(278,29): warning CS0618: 
`Mono.Security.Protocol.Ntlm.ChallengeResponse' is obsolete: `Use of this API 
is highly discouraged, it selects legacy-mode LM/NTLM authentication, which 
sends your password in very weak encryption over the wire even if the server 
supports the more secure NTLMv2 / NTLMv2 Session. You need to use the new 
`Type3Message (Type2Message)' constructor to use the more secure NTLMv2

Re: [Mono-dev] Building mono on windows

2012-12-03 Thread Michael Stoll
Replaced the make.exe, did a make clean and make, but got the same 
error.


Nevertheless thanks for the advice.

Am 03.12.2012 13:01, schrieb Bartosz Przygoda:

Hi,

I've recently been following this: 
http://shana.worldofcoding.com/en/mono_cygwin_tutorial.html and got 
similar issue when I tried with latest make.


Instead, they suggest to fetch it from: 
http://www.go-mono.com/archive/helper/make-3.80-1.tar.bz2 which helped 
(as far I recall).



On 3 December 2012 12:52, Michael Stoll unwicht...@mistoll.de 
mailto:unwicht...@mistoll.de wrote:


I'm trying to build Mono on Windows 7.

The System:
Windows 7 Professional x64
Mono 3.0.1
Cygwin 1.7

What I did:
Checkout git repository (with Tortoise GIT, no auto CRLF)
./autogen.sh --prefix /usr/local  autogen.log (see attachment)
make  make.log (see attachment)

But make fails:
MCS [net_2_0] mscorlib.dll
Cannot open assembly './../../class/lib/build/mcs.exe': Permission
denied.
../../build/library.make:243: recipe for target
`../../class/lib/net_2_0/tmp/mscorlib.dll' failed
make[8]: *** [../../class/lib/net_2_0/tmp/mscorlib.dll] Error 2

There's also a strange warning in autogen.log:297 (configure:
WARNING: winternl.h: present but cannot be compiled)

Any clue?

Regards
Michael

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
mailto:Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list




___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Building mono on windows

2012-12-03 Thread Michael Stoll

Hi Robert,

each make call got me the same message, so that didn't help.
But I found a solution. By replacing the mcs.exe with one from the 
binary release I got a better error message. So I found out that the 
machine.config was not accessible due to access restrictions. Fixed that 
and the build went well.


Regards Michale

Am 03.12.2012 16:15, schrieb Robert Jordan:

Hi,

On 03.12.2012 12:52, Michael Stoll wrote:

I'm trying to build Mono on Windows 7.

The System:
Windows 7 Professional x64
Mono 3.0.1
Cygwin 1.7

What I did:
Checkout git repository (with Tortoise GIT, no auto CRLF)
./autogen.sh --prefix /usr/local  autogen.log (see attachment)
make  make.log (see attachment)

But make fails:
MCS [net_2_0] mscorlib.dll
Cannot open assembly './../../class/lib/build/mcs.exe': Permission 
denied.


Rerun `make' until it works. It might also help to call `make'
once from the directory where it started to fail (here: 
mcs/classes/corlib):


make PROFILE=net_2_0

When it comes to cygwin, doing stuff until it eventually starts
working is a perfectly valid modus operandi. Don't worry ;)

Robert


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list



___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Reference to System.Data.Entity in monodevelop trunk

2012-09-25 Thread Michael Hutchinson
On 15 September 2012 13:07, Steven Boswell II ulat...@yahoo.com wrote:
 After building and installing a Fedora Core 17 RPM for the trunk version of
 mono, I tried to do the same for the trunk version of monodevelop.  When I
 tried to install the new monodevelop RPM, it reported a failed dependency of
 mono(System.Data.Entity) = 4.0.0.0.  Latest mono doesn't have a
 System.Data.Entity in its .NET 4.0 assemblies.

 The enclosed patch shows my attempt to remove all references to
 System.Data.Entity, but it didn't work.  For now, I forced the install by
 adding --nodeps to my RPM install command line.  So far, monodevelop is
 running, but I haven't beaten it up very much yet.

 Just an FYI for the monodevelop maintainers, and cc'd to the mono-devel list
 in case System.Data.Entity was supposed to be there.

That's a bug in the Fedora packages, you should report it to the
Fedora packagers. MD does not depend on System.Data.Entity.

The patch is incorrect, that's simply MD's definition of what is
expected to be in certain target frameworks but does not affect its
actual dependencies at all.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Show Linux . hidden directories

2012-06-13 Thread Michael Hutchinson
On 12 June 2012 17:40, Rob Wilkens robwilk...@gmail.com wrote:
 Well, as much as i would like to take a guess at an answer, my suggestion is
 to contact the Duplicati developers rather than the mono developers.  They
 would know what they used as a 'file browser' and what the options it has
 are.

Probably Windows Forms.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Current Implementation of Async Sockets

2012-05-17 Thread Michael Hutchinson
On 16 May 2012 16:33, longway77 longwa...@gmail.com wrote:
 Hi,

 I am currently doing some research on the best platform for a high
 performance socket server. I want it to be capable of handling a large
 number of small requests and a high number of Clients at the same time. So
 far I've read, that I/O Completion Ports are implemented pretty well under
 Windows but Linux seems to use another model. In some other thread I found,
 that implementation was a rather badly performing wrapper in Mono under
 Linux. Has this changed in the last time? Is it good to use Mono for that
 purpose or should I rather stick with Java? I'm also thinking of going the
 C++ way, but I'm not yet sure if the result would justify the additional
 work.

It's possible, see https://github.com/jacksonh/manos

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] How to split input pptx file into a set of one slide files in C#

2012-04-15 Thread Michael Stoll

Hello,

the pptx format is xml in a zip file. You can simply unzip it and modify 
the containing xml. There are some cross-references between the xml 
files, so it wont't be that easy as just copying/deleting a file.
I'm sure there are some pptx / ppt libraries out there, which could 
faciliate your task. But AFAIK it's not part of Mono.


There are also the Microsoft Office Interop Libraries (PIA), but that 
won't work on Linux. Maybe your code snippet is using PIA?


Michael

Am 11.04.2012 03:44, schrieb sp0065:

Hello,

I need to split input pptx and possibly ppt files into a set of slides each
stored in the separate output pptx (ppt) file. I need to do it on Linux
Ubuntu server without X. I want to run a program from a command line or call
it from another program written in PHP.

Is it possible to do it in C# and Mono? I am new to C# and Mono so if it is
possible code examples would help.

May be I need to delete all slides but one and then repeat for each selected
slide? I found there is

powerPoint.Slides(x).Delete


Thank you!


--
View this message in context: 
http://mono.1490590.n4.nabble.com/How-to-split-input-pptx-file-into-a-set-of-one-slide-files-in-C-tp4547665p4547665.html
Sent from the Mono - General mailing list archive at Nabble.com.
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list



___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Question about GSoC projects

2012-03-29 Thread Michael Hutchinson
On 21 March 2012 09:37, qqq qqq tupieur...@gmail.com wrote:
 I preview Mono GSoC projects list and pre-select some of them:

 Make ASP.NET Awesome in MonoDevelop
 A Sweet HTML/Text Editor Modul
 C# Refactorings

 Can someone say about difficult of this projects and what problems will i
 meet?
 I also would be glad if you would advise another project from Mono projects
 list.

We can certainly answer specific questions if you're having trouble
figuring things out, but you'll need to be able to do some
research/investigation yourself in order to write a good proposal.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] GSoC 2012 - GTK# App

2012-03-29 Thread Michael Hutchinson
On 21 March 2012 17:56, homerf44 szbad...@gmail.com wrote:
 Hi,

 I would like to take part in GSoC this year.
 During my research i had found many interesting projects, but only one truly
 got my attention:

 GTK# Applications

 Mono is something new to me. To be honest, today i used it for the first
 time :) (but i heard about it though)
 To the point:
 My head is usually full of concepts, two for starters

 1.Application better life which will help people in fields such as:
 -planning home budget,
 -sport (training planner etc),
 -diet planner
 -maybe some plugin for social networks
 -...
 example of use case:
 User want to lose a little bit weight. Application will help people turn
 their motivation into the regular training. So, user chooses a 'sport' from
 menu, then he sets the training program (maybe by himself, maybe there will
 be some prepared a priori)
 and from now, he will be reminded about events that are in his plan
 User sets home budget planner with his personal data such as salary and
 loans. He wants to save 10% of his salary this month. Application will
 measure how much money user can spent daily that at the end of month he will
 have 10% of salary saved.
 ...

 2. Entertain me! application which will be perfect for procrastination
 time :)
 Application will search Internet for interesting informations, pictures,
 news etc. (this is very wide area to discuss)
 ...

 I will make some concept sketches later, maybe that will help clarify my
 ideas.

 About me:
 My name is Simon and i was born 23 years ago. I'm studying at Gdansk
 University of Technology (Poland). I have an engineer(bachelor) degree, and
 i am still learning to gain MSc.
 I'm using Fedora/Ubuntu/Windows. I know c#  c++  c  python  java , but i
 am open-minded person and i am eager to learn something new :)
 As you can see I am not a native speaker and i hope that we will understand
 each other. :)

You're certainly welcome to submit this proposal, but you should be
aware that the bar for new applications like this is much higher,
since you have to argue that the app is viable and needed as well as
demonstrating your ability to implement it.

Note also that you can submit multiple proposals, if there are other
projects that interest you.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Debugging C# code with Embedded Mono?

2012-03-01 Thread Michael Hutchinson
On 29 February 2012 11:38, efontana e...@fontanas.net wrote:
 I'm using Embedded Mono (works great), my question now is, can I somehow use
 MonoDevelop to attach
 to the native executable and then open open C# source lines and set
 breakpoints/single step, etc.

 I realize that I can use basic GDB stuff like here:
 http://www.mono-project.com/Debugging#Debugging_with_GDB

 But I'm looking for C# source level debug?

 It's a major pain for me to build MonoDevelop to try it out on Linux (it
 needs dozens if not hundreds) of
 packages.

 Will this work?

Yes. Firstly your embedding app needs to initialize the debugger by
passing agent args to Mono, then you need to make MD connect to it.
For the productized version you'd need a MD addin but you can work
around that for testing, see MONODEVELOP_SDB_TEST

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Building mono on windows

2012-02-02 Thread Michael Stoll

Hi,

I'm using TortoiseGit. So I set the AutoCrlf flag in the settings, did a 
clean clone, but configure failed because of additional \r.
AFAIK The script files should be in unix format in order to run using 
cygwin tools. But AutoCrlf would convert to windows format. Correct?


Regards Michael


Am 01.02.2012 18:24, schrieb Alex:

Hi,

git config --global core.autocrlf true

should fix any EOL problems with building on Windows. (Make sure to do
a clean clone after that.)

Regards,
Alex

On Wed, Feb 1, 2012 at 5:26 PM, Michael Stollunwicht...@mistoll.de  wrote:

Hi,

I used to build mono on Cygwin/Windows a couple of month ago. Therefore I
had to convert a few files using dos2unix command.

Today I did a clean checkout and applied dos2unix as before. But when runing
make it complained about
./depcomp: line2: $'\r': command not found
As depcomp hat unix format, I have no idea, what to do.

Regards Michael

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Building mono on windows

2012-02-01 Thread Michael Stoll

Hi,

I used to build mono on Cygwin/Windows a couple of month ago. Therefore 
I had to convert a few files using dos2unix command.


Today I did a clean checkout and applied dos2unix as before. But when 
runing make it complained about

./depcomp: line2: $'\r': command not found
As depcomp hat unix format, I have no idea, what to do.

Regards Michael

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-aspnet-list] help on hosting asp.net applications on linux suse under apache2(httpd)?

2012-01-27 Thread Michael Könings
Hi,

I only use Apache2.

i can't see a line like this in your example:

*  MonoApplications test /:/*usr/share/mono/asp.net/apps/test**

the : is important!

Why don't you use the configuration tool on the mono site?
its here http://go-mono.com/config-mod-mono/
it may be using the using the V2 mono  server, you need to change that to
V4 eventually.

make sure the mod_mono module is loaded.

you should read this too http://www.mono-project.com/AutoHosting
and this http://www.mono-project.com/Mod_mono

be sure to have a recent Mono version installed. ;-)
Check your server for other .conf files which may overwrite your vhost
settings.

cheers, Michael





On Fri, Jan 27, 2012 at 6:29 AM, chandu m.ravinderreddy1...@gmail.comwrote:

 hi michael,

 thanks for u r reply.can u pls suggest me which web server is best to host
 the asp.net applications on linux suse(xsp,apache
 httpd,fastcgi).previously
 i worked around apache httpd web server.
  i find some asp.net examples which comes default.i run those applications
 using httpd webserver.
 i followed the same configuration settings to my application.

 here is the steps i followed.
 1) i created a .conf file under /etc/apache2/conf.d/  folder.which  is
 already having the default asp.net applications conf files.
 2)i placed all the application stuff under /usr/share/mono/asp.net/ .
 3)i created a .webapp file under /etc/xsp/2.0/applications-available/.

 then i restared the webserver and browse the pages.
 here is my application conf file which is placed under /etc/apache2/conf.d
 folder.

 Alias /test /usr/share/mono/asp.net/apps/test
 MonoApplicationsConfigFile test
 /etc/xsp/2.0/applications-available/test.webapp
 MonoServerPath test /usr/bin/mod-mono-server4
 #MonoServerPath blogengine /opt/novell/mono/bin/mod-mono-server2
 MonoIOMAP test all
 Location /test
Allow from all
Order allow,deny
SetHandler mono
MonoSetServerAlias test
 /Location


 while running the application i am getting some errors.
 is this is the correct way to host an asp.net applications.if did any
 thing
 mistake pls let me know.


 thanks,
 chandu.

 --
 View this message in context:
 http://mono.1490590.n4.nabble.com/help-on-hosting-asp-net-applications-on-linux-suse-under-apache2-httpd-tp4327061p4332632.html
 Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
 ___
 Mono-aspnet-list mailing list
 Mono-aspnet-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-aspnet-list

___
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list


[Mono-dev] AOT compiler crash

2012-01-20 Thread Michael Bayne
I'm trying to get IKVM working with MonoTouch. That has required a lot
of crazy hackery, but now I'm crashing the AOT compiler, and I don't
think I'm going to be able to fix this one myself (since I don't have
the source). Here's what it reports:

AOT Compilation exited with code 134, command:
MONO_PATH=.../bin/iPhone/Debug/showcase.app
/Developer/MonoTouch/usr/bin/arm-darwin-mono --debug
--aot=mtriple=armv6-darwin,full,static,asmonly,soft-debug,iphone-abi,outfile=...
.../IKVM.OpenJDK.Core.dll
Mono Ahead of Time compiler - compiling assembly .../IKVM.OpenJDK.Core.dll
* Assertion at ../../../../../mono/mono/metadata/marshal.c:2586,
condition `method  method-klass-parent ==
mono_defaults.multicastdelegate_class  !strcmp (method-name,
BeginInvoke)' not met

(FWIW, this all runs fine in the simulator, which I presume uses the
JIT-compiling VM.)

I'm a complete newb to C# and Mono and had never touched Mono or IKVM
a week ago. But I've hacked compilers in the past, so hopefully I can
sort this out without being too big a pain in the rear.

IKVM does some backbending things to map delegates to Java and
additionally to handle by ref parameters. It did not support the
combination of the two, but between some ham fisted hackery on my part
and a more sophisticated patch from the IKVM author, it ostensibly
does support that combination now. But in any case, that may be
related to this failure. If there was a way I could find out what
class and method was being compiled when the compiler choked, that
would be a big help.

Can someone point me in the direction of what useful debugging
information I can obtain to help pin-point the issue (if it's
something weird that IKVM is doing, I can certainly fix that).

Thanks!

-- m...@samskivert.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] AOT compiler crash

2012-01-20 Thread Michael Bayne
On Fri, Jan 20, 2012 at 11:38 AM, Michael Bayne m...@samskivert.com wrote:
 since I don't have the source

I guess this isn't completely true. I can at least look at the mono
source and try to triangulate from there. Based on that, I'm seeing
only two likely callers of mono_marshal_get_delegate_begin_invoke,
which is what contains the failing assert:

g_assert (method  method-klass-parent ==
mono_defaults.multicastdelegate_class 
  !strcmp (method-name, BeginInvoke));

One in mini/aot-compiler.c:

if (klass-delegate  klass != mono_defaults.delegate_class 
klass != mono_defaults.multicastdelegate_class 
!klass-generic_container) {
method = mono_get_delegate_invoke (klass);
...
method = mono_class_get_method_from_name_flags (klass, 
BeginInvoke, -1, 0);
if (method)
add_method (acfg, 
mono_marshal_get_delegate_begin_invoke (method));

which seems to meet two of the failing assert conditions (that method
be non-null and that the method name be BeginInvoke), which leaves
the possibility of method-klass-parent not being
mono_defaults.multicastdelegate_class.

The other caller in mini/mini.c:

if (method-klass-parent == 
mono_defaults.multicastdelegate_class) {
if (*name == '.'  (strcmp (name, .ctor) == 0)) {
...
} else if (*name == 'I'  (strcmp (name, Invoke) == 
0)) {
...
} else if (*name == 'B'  (strcmp (name, 
BeginInvoke) == 0)) {
nm = mono_marshal_get_delegate_begin_invoke 
(method);
return mono_get_addr_from_ftnptr 
(mono_compile_method (nm));

seems to meet all three conditions, so I'm suspecting the first caller.

 Can someone point me in the direction of what useful debugging
 information I can obtain to help pin-point the issue (if it's
 something weird that IKVM is doing, I can certainly fix that).

I tried running arm-darwin-mono in gdb, but I can't seem to set a
breakpoint on mono_marshal_get_delegate_begin_invoke. I'm not super
fluent in Mac OS native development, but maybe that binary lacks
debugging symbols? (Is there a way to make otool show those?)

Just going off the hunch that maybe IKVM is generating a funny
delegate (that contains BeginInvoke but doesn't extend
MulticastDelegate), I tried running monodis on IKVM.OpenJDK.Core.dll.
Tragically that crashes with a bus error in:

0xf459 in dis_stringify_method_signature_full (m=0x902200,
method=0x0, methoddef_row=869, container=0x0, fully_qualified=0,
with_marshal_info=1) at get.c:913

before it gets very far into the dll.

Is it possible for me to rebuild arm-darwin-mono with debug symbols
based on the mono source checked out from Github? I don't know to what
extent the shipped version of MonoTouch differs from the open source
code on that front.

Thanks again for any pointers,

Michael

-- m...@samskivert.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] AOT compiler crash

2012-01-20 Thread Michael Bayne
On Fri, Jan 20, 2012 at 12:31 PM, Robert Jordan robe...@gmx.net wrote:
 Try to add -v -v -v to the AOT compiler's command line arguments
 in MonoDevelop.

Unfortunately that didn't yield any additional output.

 BTW, the MonoTouch mailing list is over there:

This seems more like a compiler issue (or an issue of IKVM generating
funky bytecodes) than anything particularly MonoTouch specific. But if
you think someone on that mailing list is more likely to have insight
into the problem, I can definitely give it a shot.

-- m...@samskivert.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] AOT compiler crash

2012-01-20 Thread Michael Bayne
On Fri, Jan 20, 2012 at 1:22 PM, Robert Jordan robe...@gmx.net wrote:
 It doesn't really matter where the problem is. MT is a commercial,
 closed-source product, and its support mailing list isn't mono-devel.

Fair enough. I'm not used to using commercial software. :)

 Other than that, you may want to check whether the IKVM assemblies
 are defining delegates that are not derived from MulticastDelegate
 (unlikely).

Yeah, I tried tracking that down, but monodis is crashing. The stock
mono compiler seems to crash trying to AOT-compile that dll as well,
though in a different way, and the failing assert there references a
clearly long out of date line of code. I'm building mono from source
now and I'm going to see whether that crashes in the same way. That'll
be much easier to debug.

 Note that in this case the JIT runtime would abort in
 the same way, but given its lazy operating principle, odds are
 that the offending method was not triggered by your test.

That's pretty likely. There's a ton of stuff in OpenJDK.Core.dll that
I'm not using.

-- m...@samskivert.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Environment.SpecialFolder.MyDocuments question

2011-08-23 Thread Michael Hutchinson
You are printing the enum value directly. You need to call GetSpecialFolder.
On Aug 22, 2011 10:17 PM, Paul F. Johnson p...@all-the-johnsons.co.uk
wrote:
 Hi,

 Is this correct?

 If I have

 Console.WriteLine ({0}, Environment.SpecialFolder.MyDocuments);

 on my Linux box it returns Personal rather than ~

 Under WinXP and 7 it returns the path to MyDocuments.

 Is this the correct behaviour or should it (under Linux) return ~?

 TIA

 Paul

 P.S. Using mono-2.10
 --
 Vertraue mir, ich weiss, was ich mache...

 ___
 Mono-list maillist - Mono-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] WCF certificate security with Mono

2011-07-22 Thread Michael Stoll

I'm trying to migrate an existing application to Mono (v2.10.2).

Therefore I created a test WCF service with BasicHttpBinding and message 
security. The client works perfectly with .NET, but when running with 
Mono it fails.


The client factory is instantiated as follows:

|
var  certificate=  new  X509Certificate2(certificate.pfx,  password);

var  binding=  new  BasicHttpBinding();
binding.Security.Mode  =  BasicHttpSecurityMode.Message;
binding.Security.Message.ClientCredentialType  =  
BasicHttpMessageCredentialType.Certificate;

var  epa=  new  EndpointAddress(
new  Uri(http://localhost:53076/Service1.svc;),
new  X509CertificateEndpointIdentity(certificate));

var  factory=  new  ChannelFactoryIService1(binding,  epa);
factory.Credentials.ServiceCertificate.DefaultCertificate  =  certificate;
factory.Credentials.ServiceCertificate.Authentication.CertificateValidationMode 
 =  X509CertificateValidationMode.None;
factory.Credentials.ServiceCertificate.Authentication.RevocationMode  =  
X509RevocationMode.NoCheck;
factory.Credentials.ClientCertificate.Certificate  =  certificate;

var  client=  factory.CreateChannel();
|

In Mono the application fails within CreateChannel throwing the exception:

   System.InvalidOperationException: The binding does not support any
   of the channel types that the contract 'IService1' allows.

I debugged into the Mono source code and found out that the problem is 
that AsymmetricSecurityBindingElement.InitiatorTokenParameter == null.


I'm new to Mono, maybe you could point me to a documentation/tutorial 
which covers this topic.


___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-dev] Developer needed for contract position

2011-06-16 Thread Michael Mudge
Send to MonoDev mailing list:

Not sure if sending this to the mailing list is taboo or not, but I at
least hope it is of some value to those who would reply:

Welch Allyn, a medical device manufacturer (www.welchallyn.com), is
looking for a contract position that will involve working with the
Mono code on an embedded device with a team of other software
engineers.  It is likely to cover debugging both C and C# code, and
possibly some of the more difficult ends of the JIT and MMU.
Experience with the internal workings of the Mono runtime and/or
libraries is a must.

Send resumes to michael.mu...@welchallyn.com and please pass this
message on to anyone who may be interested.

Thanks,
- Michael Mudge
Software Lead Engineer
Welch Allyn
Skaneateles, NY
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-list] Value is not a convertible object

2011-05-15 Thread Michael M


Hello,

I am trying to run my .NET 2.0 Application at Mono 2.10.1 for Windows. When I 
try to add a new object to a Bindingsource, I receive the error message

Value is not a convertible object: System.Boolean to 
System.Windows.Forms.CheckState

The object contains a Boolean Value and it is binded to a Checkbox at my UI, 
which works with .NET 2.0.

Does someone know a solution or the reason for that error?

Regards

Michael
  ___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-dev] Cross-Appdomain remoting

2011-05-06 Thread Michael Mudge
Ah!  The idea of changing the lifetime was enough info for me to find the cause.

Hm, I could swear I saw a difference in behavior between .NET and
Mono, but my simplified test case revealed an identical error (with
slightly different text) in .NET - that led me to
InitializeLifetimeService.

I overrode InitializeLifetimeService on the MarshalByRef objects and
returned null - this prevents the objects from expiring.  Thanks for
the reply!

- Kipp

On Thu, May 5, 2011 at 4:49 PM, Robert Jordan robe...@gmx.net wrote:
 Hi,

 On 05.05.2011 22:11, Michael Mudge wrote:
 I'm seeing strange behavior on our device - AppDomain A has launched
 AppDomain B, and wired the DomainUnloaded event.  I'm seeing that
 RemotingServices.DisposeIdentity is being called after 5 minutes, and
 then when AppDomain B unloads itself and the unload event is fired, I
 get this error:

 Unhandled Exception: System.Runtime.Remoting.RemotingException: Server
 for uri '6c9364e7_bf92_4f6d_950d_9cfc5c9a372d/b4c91032_2.rem' not
 found

 Server stack trace:
    at System.Runtime.Remoting.Proxies.RealProxy.GetAppDomainTarget ()
 [0x0] infilename unknown:0
    at (wrapper xdomain-dispatch)
 Manager.Shells.WAppServer:HandleDomainUnload
 (object,byte[],byte[],string)

 I *think* that the problem is that the domain unload can't find A.

 I *think* that the object that can't be found is supposed to be
 automatically recreated - am I right?  If that's true, I'm guessing

 The proxy won't be recreated. If you want to prevent it from
 being disposed, you should either change its lifetime (via
 app.config's system.runtime.remoting element) or call/poll
 a method periodically.

 that this can't be done when an AppDomain is being unload...  Is that
 true?  Where should I start looking to solve this?  Can someone
 provide a clearer explanation of how this all works?

 Please explain first (preferably with code) what you're trying
 to achieve.

 Robert

 ___
 Mono-devel-list mailing list
 Mono-devel-list@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/mono-devel-list

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Cross-Appdomain remoting

2011-05-05 Thread Michael Mudge
I'm seeing strange behavior on our device - AppDomain A has launched
AppDomain B, and wired the DomainUnloaded event.  I'm seeing that
RemotingServices.DisposeIdentity is being called after 5 minutes, and
then when AppDomain B unloads itself and the unload event is fired, I
get this error:

Unhandled Exception: System.Runtime.Remoting.RemotingException: Server
for uri '6c9364e7_bf92_4f6d_950d_9cfc5c9a372d/b4c91032_2.rem' not
found

Server stack trace:
  at System.Runtime.Remoting.Proxies.RealProxy.GetAppDomainTarget ()
[0x0] in filename unknown:0
  at (wrapper xdomain-dispatch)
Manager.Shells.WAppServer:HandleDomainUnload
(object,byte[],byte[],string)

I *think* that the problem is that the domain unload can't find A.

I *think* that the object that can't be found is supposed to be
automatically recreated - am I right?  If that's true, I'm guessing
that this can't be done when an AppDomain is being unload...  Is that
true?  Where should I start looking to solve this?  Can someone
provide a clearer explanation of how this all works?

- Kipp
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] [MonoDevelop] GSoC Application 2011 for Axiom

2011-04-07 Thread Michael Hutchinson
Hi,

Applications must be made directly to the Google GSoC site, and should
include a project proposal. If you are having trouble finding ideas
for the project, I suggest you approach the Axiom developers on their
mailing list or IRC.

- Michael

On Wed, Apr 6, 2011 at 8:23 PM, Shivansh Srivastava
shivansh.b...@gmail.com wrote:
 Hi,
 I have been interacting frequently on the monodevelop mailing list, but
 havnt got a chance to discuss any idea regarding Building/developing apps
 with Axiom engine.
 Also, i am not able to join the mono...@googlegroups.com googlegroup,
 where they could really help me.
 Kindly find attached my application for GSoC 2011.
 I have a sound experience in developing apps/games in C# using XNA Framework
 (3.0, 3.1, 4.0) for Windows  Windows Phone 7.
 I have compiled/built OGRE  am going through its code for better
 understanding.
 I dont have any idea(s) as such, but would really appreciate if any mentor
 would guide me  help me with how I can help in the development.
 I would be glad to help in the development of Axiom Engine.

 I really apologise for submitting my Application this late. I had a few
 family problems/commitments that I had to take care of.
 Waiting for a reply.
 With regards,
 Shivansh.

 --
 Shivansh Srivastava | +91-955-243-5407 | shivansh.b...@gmail.com
 2nd Year Undergraduate | B.E. (Hons.) - Electronics  Instrumentation
 BITS-Pilani.
 ___
 Monodevelop-list mailing list
 monodevelop-l...@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monodevelop-list





-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] GSOC MonoDevelop Project

2011-04-06 Thread Michael Hutchinson
On Tue, Apr 5, 2011 at 1:28 PM, darshan.modani88
darshan.modan...@gmail.com wrote:
 Hiii,
 I am Darshan Modani,  a Computer Science a graduate student. I am GSOC
 aspirant. I consider myself to be good in C# and thats what my area of
 interest is. Until GSOC list of accepted organisations was released i didn't
 knew about Mono-project. I really feel the concept and idea is great. I
 installed my mono-framework on mac-osx, and was amazed to find ASP.NET
 working on mac.

 I am very much  interested in mono-project and would like to contribute.
 Browsing through the list of project ideas, i found that improvements in
 mono-develop IDE interests me such as Webkit based HTML editor, CSS support
 or JS support. I clearly understand the project requirements but still very
 skeptic. I am proficient in C# but very new to mono.

 Any suggestions and some pointers before applying would be greatly
 appreciated.
 Also I want to know the mentors of the projects Webkit based HTML editor,
 CSS support or JS support under Web Tools.

There isn't a pre-assigned mentor, you should apply and if a mentor
likes your proposal they will pick it up.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Faster

2011-03-24 Thread Michael Hutchinson
On Thu, Mar 24, 2011 at 12:51 PM, Rodrigo Kumpera kump...@gmail.com wrote:
 Now onto the null check. Such a null check will exploit a cpu feature known
 as branch prediction, which guesses the outcome of the
 conditional jump. Since in the majority of the cases the value won't be
 null, the cpu can pretend the branch doesn't exist and keep executing
 as it was not taken. This means the null check costs virtually nothing on a
 modern cpu.

Could we have the JIT recognize the if (foo == null) throw ...
pattern and add a branch hint?

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] GSoC 2011 - Interest

2011-03-21 Thread Michael Hutchinson
On Thu, Mar 17, 2011 at 12:35 PM, Abdul Rauf raufb...@gmail.com wrote:
 Dear Team Mono,

 I am very excited to contribute in open source community through the
 platform of Google Summer of Code 2011. I have visited the web page
 of “Mono” at http://mono-project.com/Gsoc and have seen project ideas for
 GSoC 2011. I am interested in two projects. The reason for my interest is
 that I have previously worked on .NET related projects both in VB and C# and
 want to develop skills of IDE development. I am writing you to let you know
 my understanding of the project and required knowledge of technologies. I
 would like your feedback on it. My understanding of the requirements is as
 follows:

 “Debugger Visualizer”

 1.  Implement a debugger visualizer (Can “Debugger Visualizer” template from
 .NET framework be used?)

There is no debugger visualizer infrastructure in .NET, only VS, and
MD doesn't implement the VS API. MD has its own visualizer
infrastructure.

 2.  A DataType assembly will be loaded into the debugger visualizer at
 runtime and display the desired properties in a presentable form.

That sounds like more like the DebuggerTypeProxy. That's also a
possible GSoC project, but would have to take place in the Mono
framework, not the MonoDevelop IDE.

 3.  I need to specify which visualizers are to be implemented.

Yes, this is only an idea for a GSoC project. You would have to define
a project that is big enough for the GSoC period, and it can consist
of several smaller tasks, such as a number of different visualizers,
or you could find other debugger enhancements and combine them into
the project. You'd need to describe what visualizers you want to
create, explain why they're useful, and so on.

 “Translation Resources Editor”

 1. Implement an editor for different language resources to help people edit
 resources files without modifying XML files directly.

 2. The program should load strings from .resx file and provide an interface
 to enter the required translations.

 Also, it says Should extend or share code with the Gettext addin. I am not
 quite sure about this at the moment. Does it mean that this Resource Editor
 is required to be integrated with Gettext? Any help is appreciated in this
 regard.

MonoDevelop already has a Translation addin, which has a GUI for
editing Gettext translation catalogs. The idea here is that the resx
translation editor would be able to re-use some of the code
(particularly some of the GUI) from the Gettext addin.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] GSoC 2011 - Documentation Addin

2011-03-21 Thread Michael Hutchinson
On Sat, Mar 19, 2011 at 7:22 PM, zur13 zur...@i.ua wrote:
 Hi Team Mono

 I want to take part in Documentation Addin project. I think that work in
 your team will be very exciting experience. I want to get skills in IDE
 programming and to familiarize with basics of code parsing and automation of
 documentation processing.

 What is final result should look like (this is only my point of view and I
 likely discuss it): it will be the interractive pad, that will show the part
 of documentation for the current (under or nearest to the text cursor) part
 of code and provide basic text editing features and maybe feature of
 template generating document for the current part of code if it hasn`t
 documentation yet.

Yes, there are a bunch of different ideas in this area. The project is
essentially to improve MD's support for documentation. As it is, there
are two kinds of documentation:
* inline XML doc comments
* MonoDoc files
MD supports XML doc comments pretty well, though it could be improved.
However, MD has no support for creating or editing MonoDoc
documentation. So the project could consist of any combination of the
following:
* a documentation project type, for creating and compiling MonoDoc docs
* the pad you mentioned, for editing MonoDoc docs
* nicer editing support for XML doc comments
* a pad for displaying and browsing docs, regardless of source
* some integration/unification between MonoDoc and XML docs

 Rough workplan:
  * Observe MonoDoc and MonoDevelop parsing interfaces, maybe fix some bugs
 (5-7 days)
  * Observe MonoDevelop addin architectures and design general Documentation
 Addin architecture (7-12 days)
  * Coding
  * Tests and bugfix (18 days)
  * Prepare Documentation (5 days)

FWIW, I'm wary of any project proposal that begins with periods of
planning/design/research - ideally, such stuff should be done when
creating the proposal, so we have a good idea of what you'll be doing.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] ScrollWindows spacing

2011-03-14 Thread Michael Hutchinson
On Mon, Mar 14, 2011 at 6:03 AM, Daniel Hughes tramps...@gmail.com wrote:
 I have GTK ScrollWindow in which I have placed a TextView.
 Between the Vertical Scrollbar and the TextView there is a gap of about 3
 pixels.
 This page here says there is a scrollbar-spacing Style Property but it is
 read only.
 http://library.gnome.org/devel/gtk/unstable/GtkScrolledWindow.html
 Also it says allowed values are = 0 which doesn't make sense if its read
 only.
 either way I can find a way to change this value from GTK#
 Lots of Gnome applications appear to not have this spacing and I would
 rather not waste the Pixels. Aside from this it just doesn't look that good.
 How do I remove the 3 pixel spacing between my TextView and Horizonal
 ScrollBar?

It's part of the GTK+ theme, and not changeable from user code.

That said, you can change it using a style fragment:
https://github.com/mono/monodevelop/blob/master/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/CompactScrolledWindow.cs

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-dev] Issue with inlining in the JIT

2011-03-08 Thread Michael Mudge
I'm running into an access violation in Mono... I've traced the
cause as far back as I can (mono_method_to_ir), but that function is
so full of macros and switches that it's hard to figure out how it
came to make the decision it did.  Here is the story of how the access
violation occurs:

ins-sreg1 is being set to 0xA365734 in method-to-ir.c, line 5928
(call to EMIT_NEW_ARGLOAD call in the CEE_LDARG_3 case of
mono_method_to_ir).

The call stack at this point is:
mono_method_to_ir  (working on Size::.ctor)
.. called by inline_method()   (working on Size::.ctor)
.. called by mono_method_to_ir()   (working on Rectangle::get_Size)
.. called by inline_method()   (working on Rectangle::get_Size)
.. called by mono_method_to_ir()   (working on
TextRenderer::MeasureTextInternal)
.. called by mini_method_compile() (working on
TextRenderer::MeasureTextInternal)
..

Later, in local-propagation.c, line 77 (at the call to
mono_inst_get_src_registers in mono_local_cprop), the ins-sreg1 value
is moved to sregs[0]:
 num_sregs = mono_inst_get_src_registers (ins, sregs);

Two lines later, the value is moved to sreg:
 int sreg = sregs [i];

Two lines later, that value (0xA365734) is used to index into an array:
 defs [sreg] = NULL;

And boom, access violation.  I can follow values around all day, but I
have no idea what this code is supposed to do or how it should work.
Anyone have any insight the cause of this?  The next steps in terms of
debugging?  I'm using Mono 2.8.2.

- Kipp
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] PDB native support in C from C# open source project

2011-03-07 Thread Michael Hutchinson
On Mon, Mar 7, 2011 at 9:41 AM, David Marsh dmars...@hotmail.com wrote:
 Ref :-
 http://www.mono-project.com/StudentProjects#Native_support_for_PDB

 I'd be interested in contributing in this area, is it still an open item ?

I believe so, yes.

It would be particularly interesting to add full support for the local
mappings that pdb has for nested scopes and iterator scopes, and
propagate that information into the soft debugger, since Mono's mdb
format doesn't currently support those. That would help to fix a few
problems we have right now in the debugger - inspecting captured
variables in anonymous delegates and iterators, and inspecting
multiple variables with the same name in sub-scopes of a single
method. We could then either propagate those features back into the
mdb format, or switch to pdb entirely.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] Can't build NUnit testing project

2011-02-17 Thread Michael Hutchinson
On Fri, Feb 4, 2011 at 1:56 PM, Alexander M. Batishchev
abatishc...@godfather.net.ru wrote:
 Hi, everybody.

 I have a complex solution (developed under Windows, deployed under
 GNU\Linux) with a number of unit-testing projects, using NUnit 2.9.3.

 Here's a reference from project:

 Reference Include=nunit.framework, Version=2.9.3.0, Culture=neutral,
 PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL
   SpecificVersionFalse/SpecificVersion
   HintPath..\..\..\..\..\Program Files\NUnit
 2.9.3\bin\net-4.0\nunit.framework.dll/HintPath
 /Reference

 I downloaded and built NUnit 2.9.3 from source:

 $ xbuild solutions/MonoDevelop/NUnit.Framework.sln /p:Configuration=Release

 and installed into GAC:

 $ gacutil /i solutions/MonoDevelop/bin/Release/nunit.framework.dll
 $ gacutil /l nunit.framework

 The following assemblies are installed into the GAC:
 nunit.framework, Version=2.9.3.0, Culture=neutral,
 PublicKeyToken=96d09a1eb7f44a77
 Number of items = 1

 and deleted local mono nunit installation:

 $ rm /usr/lib/mono/2.0/nunit*
 $ rm /usr/lib/mono/4.0/nunit*

 but when I try to build my solution:

 $ xbuild MySolution.sln | grep error
 : error CS0006: Metadata file `/usr/lib/mono/2.0/nunit.framework.dll' could
 not be found

 What do I wrong?

The GAC is for resolving assemblies at run-time, not compile time.
This is true on .NET too.

http://monodevelop.com/FAQ#I_added_an_assembly_to_the_GAC.2c_why_doesn't_it_appear_in_the_assemblies_list_when_I_try_to_add_a_reference_in_a_MonoDevelop_project.3f

The reason you get the specific error you do is because you removed
the compile-time version of the assemblies pointed to by the pkconfig
file but did not update or remove the pkgconfig file.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono.Posix

2011-02-02 Thread Michael Hutchinson
On Wed, Feb 2, 2011 at 7:07 AM, Robert Jordan robe...@gmx.net wrote:
 On 02.02.2011 11:54, Steve Lessard wrote:
 I just wrote a simple command line tool using the Mono.Unix.Native namespace 
 in
 the Mono.Posix assembly. This tool basically checks a file's permissions to 
 see
 if the file is executable by any or all of user, group, other. It works 
 great on
 my Mac.

 Windows is supposed to have a Posix compliant layer. Does Mono.Posix assembly
 work on Windows's Posix layer?

 The Windows POSIX subsystem was discontinued almost 10 years ago.

It was replaced by Interix which is now included as an optional
component on high-end (Server, Ultimate) recent Windows versions. I
doubt anyone's ever tried Mono on with Interix though, as I can't
think of any reason to do do.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] generics and IEnumerable

2011-01-23 Thread Michael Hutchinson
On Jan 24, 2011 12:58 AM, oddstray withheld.for.priv...@gmail.com wrote:

 My immediate question is, I tried to create a generic class:
 public class LinkedListT : IEnumerableT
 but I get the error:
   The non-generic type 'System.Collections.IEnumerable' cannot be used
 with the type arguments.
 I have a using System.Collections; statement higher up.  Am I doing
 something wrong?

Yes. The generic IEnumerableT is in System.Collections.Generic, not
System.Collections.

 My general question is, how can I determine which .NET features are
 implemented in MonoDevelop?

To clarify, MonoDevelop is an IDE, the equivalent of Visual Studio. The
runtime, which is what actually runs your app (the equivalent of .NET), is
Mono. MonoDevelop on Windows even uses .NET :)

You can view the status of the Mono class libraries at
http://go-mono.com/status/

Beware that this corresponds to the latest development version, not the
release version that you'll be using, so you might just have to 'try and
see' in some cases.

- M
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-winforms-list] Porting Mono winforms to a new OS/Window Manager

2011-01-12 Thread Michael Mudge
We are working on getting Mono WinForms up and running on our device,
and I'd like to make sure that we're on the right track and have a
good understanding of what is ahead of us.  Through the project, most
of our issues have been unknown unknowns - so if you can anticipate
any obstacles, it would be very helpful.

We use a GUI manager called PegX - it is fairly primitive.  As I
understand it, there is some dependency between LibGDIPlus and the
GUI, and XPlatUIDriver is also meant to map to the GUI.  What is the
description of these relationships?

PegX does make use of some hardware acceleration, so we would like to
leverage that as much as possible.  Also, the current implementation
of LibGDIPlus has dependencies on many things - FontConfig, FreeType,
LibPNG, XLib, GLib, Cairo.  We only have FreeType and Cairo completely
ported.

Are there parts of LibGDIPlus that we can cut out and replace with
calls straight to PegX, and minimize all of the remaining
dependencies?  Is there someone who can help guide us?

The system is touchscreen-only.  How much do we need to be concerned
with the UI message pump?  The only touchscreen events are down, move
and up.  How might we detect that the cursor has clicked on a textbox
so that we can pop up our onscreen keyboard?  And most importantly,
what questions have I failed to ask?

Thanks,
- Michael Kipp Mudge
Welch Allyn
___
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list


Re: [Mono-dev] Git line-ending issues

2011-01-07 Thread Michael Hutchinson
On Fri, Jan 7, 2011 at 2:17 AM,  st...@free.fr wrote:
 Alright. But my main question was about what I should do specifically about 
 the commit I mentioned.
 Should I restore the line endings to what they were, or leave things as is? 
 Or does it not matter either way?
 Thanks.

I don't know that I can make the call which way it should go.
Reverting it won't help history now it's in the main repo, so maybe it
makes sense to leave it as it is... but either way it should match the
.gitattributes settings. Of course, that means you could either change
the .gitattributes to match the file, or revert the file.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Git line-ending issues

2011-01-06 Thread Michael Hutchinson
On Thu, Jan 6, 2011 at 2:02 PM, Stifu st...@free.fr wrote:

 Hi guys,

 I'm having issues with a commit I did (d'oh :(), and would like help to
 clean up my mess.
 The commit can be seen here:
 https://github.com/mono/mono/commit/4d5451a61ce63769083ebad3b1a5d9055a27b6df

 I only removed a few lines in the file, but the whole file shows up as
 changed. From what I understand, this is due to a difference in line-ending
 encoding.
 Looking at the .gitattributes file in the same folder, I see certain files
 (including the one I modified) are specified as having a certain line-ending
 encoding (CRLF).

The .gitattributes format is rather unintuitive.

crlf means the file is stored as lf in the repo, but converted
to/from crlf on windows.
-crlf explicitly disables conversions, in case the user has
autoconversion enabled for all files.

Are you perhaps using a git tools that ignores these attributes?

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Git line-ending issues

2011-01-06 Thread Michael Hutchinson
On Thu, Jan 6, 2011 at 3:38 PM,  st...@free.fr wrote:
 No, shamefully I thought I could get away with directly editing the file from 
 the GitHub web interface (which actually works fine with files that aren't 
 -crlf). I'll refrain from doing so in the future, as I guess it's not 
 recommended (can't even preview).
 Do you have an opinion about how I should fix this issue (if there is 
 actually anything to fix)?

Don't use tools that autoconvert and ignore .gitattributes.

 And aren't all those files defined in the .gitattributes file only there for 
 historical reasons, rather than being something desirable? I wouldn't mind 
 going through files (WinForms only, in my case) to convert them all to the 
 same format, if it's something that sounds any good.

Conversion without a good reason is bad because it adds a ton of noise
to history, for example annotation.becomes ~useless.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-list] taglib-sharp

2011-01-05 Thread Michael Hutchinson
On Wed, Jan 5, 2011 at 2:41 PM, Steve Lessard s_less...@yahoo.com wrote:
 It appears Novell has (or had) a C# library named taglib-sharp for editing
 ID3 tags commonly found in MP3 files (and other audio files.) There doesn't
 appear to be any download link for it on Novell's web site. Does anyone know
 how I can get this library?

http://download.banshee-project.org/taglib-sharp/

https://github.com/mono/taglib-sharp/

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] How to: start a process which shows a password window

2010-12-17 Thread Michael Hutchinson
On Fri, Dec 17, 2010 at 7:48 PM, Dimitar Dobrev dpldob...@yahoo.com wrote:
 I need to start a process on Mac OS X with root privileges which must prompt
 the user for a password. In Windows Vista and above this is achieved by
 setting Process.StartInfo.Verb to runas. Unfortunately, this didn't work
 on the mac, the password window did not appear. I guess it won't work in
 Linux as well. Any ideas? Is this possible in any way (as far as Linux is
 concerned, gksudo is not desirable because it's not guaranteed to be
 available in KDE)?

On a recent Linux system you should be able to use xdg-su:
http://portland.freedesktop.org/xdg-utils-1.0beta1/xdg-su.html

On MacOS there seem to be a few options:
http://stackoverflow.com/questions/1517183/graphical-sudo-for-mac-osx

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Moonlight - MonoDevelop @ Mac

2010-12-12 Thread Michael Hutchinson
On Sun, Dec 12, 2010 at 4:50 AM, Lennie De Villiers lenni...@gmail.com wrote:
 How can I get this working?

The Moonlight SDK as included in MD only works with Mono 2.6.x. You'll
have to downgrade Mono, or ask the Moonlight team to make an SDK
release that works with Mono 2.8.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Moonlight - MonoDevelop @ Mac

2010-11-30 Thread Michael Hutchinson
On Tue, Nov 30, 2010 at 3:43 PM, Lennie De Villiers lenni...@gmail.com wrote:
 When creating a new Moonlight project in MonoDevelop on the Mac
 (latest MonoDevelop download version) it compile but give an error...
 can't see the error in the error list... It say 1 as an error but
 doesn't list the error.

Unfortunately the Moonlight 2.0 SDK does not work on Mono 2.6.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Moonlight - MonoDevelop @ Mac

2010-11-30 Thread Michael Hutchinson
On Tue, Nov 30, 2010 at 4:30 PM, Michael Hutchinson
m.j.hutchin...@gmail.com wrote:
 On Tue, Nov 30, 2010 at 3:43 PM, Lennie De Villiers lenni...@gmail.com 
 wrote:
 When creating a new Moonlight project in MonoDevelop on the Mac
 (latest MonoDevelop download version) it compile but give an error...
 can't see the error in the error list... It say 1 as an error but
 doesn't list the error.

 Unfortunately the Moonlight 2.0 SDK does not work on Mono 2.6.

Er, I mean it does not work on 2.8.x. It works fine on 2.6.x.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] DrawingArea needs to redraw signal??

2010-11-16 Thread Michael Hutchinson
On Tue, Nov 16, 2010 at 6:09 AM, Francisco M. Marzoa fmmar...@gmx.net wrote:
 Hello,

 Currently I'm handling the ExposeEvent -as Miguel de Icaza told me in a
 prior answer- but I ignored that there're another way to do the same. I
 assume that overriding OnExpose is not available through Monodevelop
 interface designer, isn't it? So I should do something like:

 drawingarea1.OnExpose += MyOnExposeMethodDelegate

You may also wish to use [ConnectBefore] on your event handler, and
set RetVal to true, so that the default handler doesn't get called.
All the GTK built-in behaviors are implemented as event handlers, but
GTK offers a way to stop events from propagating to other handlers
(set RetVal to true), so built-in handlers often swallow events. You
can use ConnectBeforeAttribute to insert handlers before the
built-ins.

Note also that you should use the Drawable object from the expose
event's Window property, not the widget's GdkWindow property. This is
a temporary double-buffered surface.


-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] DrawingArea needs to redraw signal??

2010-11-15 Thread Michael Hutchinson
On Sat, Nov 13, 2010 at 9:21 AM, Francisco M. Marzoa fmmar...@gmx.net wrote:
 Hello again,

 In my application I've a DrawingArea. I use that DA's GdkWindow property
 to create a Cairo.Context. I can draw on the DA but if I, for example,
 resize the main window, the DA is erased.

 I assume I must redraw the DA in some events, isn't it? If this is the
 case, the question is what signal(s) on the DA may I catch to redraw
 when needed

Override OnExpose or handle the ExposeEvent event and inspect the
args.Event value. There you will find the invalidated region, and a
Window drawable.

-- 
Michael Hutchinson
http://mjhutchinson.com
___
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list


  1   2   3   4   5   6   7   >