CodeSlinger | 1 Jan 2011 08:46

Is it possible to use .NET TeamFoundation libraries on Linux mono?


I know of Joel Reed's work on these libraries but is there much of a chance
to use the actual TeamFoundation libraries from .NET under mono to use the
TeamFoundationServer class?

Thanks, Dave
--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Is-it-possible-to-use-NET-TeamFoundation-libraries-on-Linux-mono-tp3170015p3170015.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
Leszek Ciesielski | 1 Jan 2011 19:21
Picon
Gravatar

Problems with compiling code using F# from github

Hi,

I am trying to compile a simple program using fsc built from a github clone. I am using mono from git-head, building F# with:
autoreconf;configure --prefix=~/bin-mono;make;make install
but the resulting executable fails to compile a source file:

[mono] ~/workspace <at> fsc test.fs
Microsoft (R) F# 2.0 Compiler build (private)
Copyright (c) 2002-2010 Microsoft Corporation. All Rights Reserved.

/home/skolima/workspace/unknown(1,1): error FS1221: FSharp.Core.sigdata not found alongside FSharp.Core                                                                                                                                       
                                                                                                                                                                                                                                              
/home/skolima/workspace/unknown(1,1): error FS0229: Error opening binary file '/home/skolima/workspace/bin-mono/lib/mono/fsharp-4.0/FSharp.Core.dll': Exception of type 'Microsoft.FSharp.Compiler.ErrorLogger+ReportedError' was thrown.

Indeed, the .sigdata files are present in the F# build directory, but they are not installed into ~/bin-mono directory. Is the build instruction missing some steps?

Regards,

Leszek 'skolima' Ciesielski

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
CodeSlinger | 1 Jan 2011 22:42

Re: Is it possible to use .NET TeamFoundation libraries on Linux mono?


Well I was not so far able to use the actual .NET 4 assemblies on Linux mono
but I did get the below app, that gets the latest changeset for a branch,
working on both Windows and Linux, using the opentf libraries. Sure would
like to see the openrt libraries get updated since they do not support the
newer classes and signatures (see my comments).

The below code runs on both systems if reference the openrt assemblies.

using System;
using System.Net;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.VersionControl.Client;

namespace GetTfsChangeset
{
    class Program
    {
        static void Main(string[] args)
        {
            string lPath = "$/MyBranch/Main";

            //string lServer = "MyServer.com"; // this works in Windows but
not in Linux
            //string lServer = "http://xxx.xx.xx.xxx:8080"; // this works in
both
            string lServer = "http://MyServer.com:8080"; // this works in
both

            // all of these work on windows and indeed fails if pw is bad -
are supposedly obsolete though! Linux needs the last one with the domain!
            //TeamFoundationServer tfs = new TeamFoundationServer(lServer);
            //TeamFoundationServer tfs = new TeamFoundationServer(lServer,
new NetworkCredential("user", "password"));
            //TeamFoundationServer tfs = new TeamFoundationServer(lServer,
new NetworkCredential("user", "password", "domain"));
            //VersionControlServer vcs =
(VersionControlServer)tfs.GetService(typeof(VersionControlServer));

            // this does not work with the openrt libraries - mismatch of
parameters - and does not give obsolete errors on Linux
            TeamFoundationServer tfs =
TeamFoundationServerFactory.GetServer(lServer, new NetworkCredential("user",
"password", "domain"));
            VersionControlServer vcs =
(VersionControlServer)tfs.GetService(typeof(VersionControlServer));

            // this is the newer way to do it but the class is apparently
not avail in the Linux openrt libraries
            //TfsTeamProjectCollection tfscoll = new
TfsTeamProjectCollection(new Uri(lServer), new NetworkCredential("user",
"password"));
            //VersionControlServer vcs =
(VersionControlServer)tfscoll.GetService(typeof(VersionControlServer));

            // get the changesets - currently stops after one which should
be the latest
            IEnumerable changesets = vcs.QueryHistory(lPath,
VersionSpec.Latest, 0, RecursionType.Full, null, null, null, 1, false,
false);

            Console.WriteLine("Changesets for path '{0}'.", lPath);
            foreach (Changeset changeset in changesets)
            {
                Console.WriteLine("Changeset id {0}, Comment '{1}'.",
changeset.ChangesetId, changeset.Comment);
            }

            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
    }
}

--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Is-it-possible-to-use-NET-TeamFoundation-libraries-on-Linux-mono-tp3170015p3170471.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
CodeSlinger | 1 Jan 2011 22:53

Re: Is it possible to use .NET TeamFoundation libraries on Linux mono?


Here is the list of real .NET 4 assemblies I have copied to the local dir
that I execute my program from and the error msg I get when running under
mono on Linux RHEL45. They seem to want to load but I am either missing some
other dependent dll or have some incompatibility issue. I was hoping the
real TFS API SDK libraries would run under mono rather than be dependent on
the outdated openrt libraries though they do work somewhat.

Any suggestions on how I might get away with using the real thing
appreciated - Dave

-rwxrw-r--  1 6144 Jan  1 16:43 GetTfsChangeset.exe
-rwxrw-r--  1 11776 Jan  1 16:43 GetTfsChangeset.pdb
-rwxrw-r--  1 11600 Jan  1 16:43 GetTfsChangeset.vshost.exe
-rwxrw-r--  1 490 Mar 17  2010 GetTfsChangeset.vshost.exe.manifest
-rwxrw-r--  1 429960 Mar 19  2010 Microsoft.TeamFoundation.Build.Client.dll
-rwxrw-r--  1 151944 Mar 19  2010 Microsoft.TeamFoundation.Build.Common.dll
-rwxrw-r--  1 99697 Nov  4  2009 Microsoft.TeamFoundation.Build.Common.xml
-rwxrw-r--  1 1482624 Mar 19  2010 Microsoft.TeamFoundation.Client.dll
-rwxrw-r--  1 332688 Mar 19  2010
Microsoft.TeamFoundation.Common.Library.dll
-rwxrw-r--  1 516992 Mar 19  2010 Microsoft.TeamFoundation.Common.dll
-rwxrw-r--  1 597408 Mar 19  2010
Microsoft.TeamFoundation.TestManagement.Client.dll
-rwxrw-r--  1 33696 Mar 19  2010
Microsoft.TeamFoundation.TestManagement.Common.dll
-rwxrw-r--  1 693152 Mar 19  2010
Microsoft.TeamFoundation.VersionControl.Client.dll
-rwxrw-r--  1 36792 Mar 19  2010
Microsoft.TeamFoundation.VersionControl.Common.Integration.dll
-rwxrw-r--  1 229792 Mar 19  2010
Microsoft.TeamFoundation.VersionControl.Common.dll
-rwxrw-r--  1 687008 Mar 19  2010
Microsoft.TeamFoundation.WorkItemTracking.Client.dll
-rwxrw-r--  1 663920 Mar 19  2010 Microsoft.TeamFoundation.dll

-bash-3.00$ /usr/mono/bin/mono GetTfsChangeset.exe
Changesets for path '$/MyBranch/Main'.

Unhandled Exception: System.NotImplementedException: The requested feature
is not implemented.
  at
Microsoft.TeamFoundation.Proxy.BisRegistrationService.GetRefreshDurationInSeconds
() [0x00000] in <filename unknown>:0 
  at Microsoft.TeamFoundation.Proxy.BisRegistrationService..ctor
(Microsoft.TeamFoundation.Client.TfsTeamProjectCollection tfsObject)
[0x00000] in <filename unknown>:0 
  at
Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.get_RegistrationProxy
() [0x00000] in <filename unknown>:0 
  at
Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.CreateServiceProxy
(System.Type serviceType) [0x00000] in <filename unknown>:0 
  at
Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.GetServiceInstance
(System.Type serviceType, System.Object serviceInstance) [0x00000] in
<filename unknown>:0 
  at Microsoft.TeamFoundation.Client.TfsConnection.GetService (System.Type
serviceType) [0x00000] in <filename unknown>:0 
  at
Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.FindServiceLocation
(System.String serviceType, System.String toolId) [0x00000] in <filename
unknown>:0 
  at
Microsoft.TeamFoundation.Framework.Client.PreFrameworkServerDataProvider.LocationForCurrentConnection
(System.String serviceType, Guid serviceIdentifier) [0x00000] in <filename
unknown>:0 
  at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected
() [0x00000] in <filename unknown>:0 
-bash-3.00$ 

--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Is-it-possible-to-use-NET-TeamFoundation-libraries-on-Linux-mono-tp3170015p3170478.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
christoph | 2 Jan 2011 00:18

[C# mp3 playback] gstreamer integration or any other lib?


Hello,

Sorry for my bad English, I'm not a native speaker.

I'm searching for a free as possible lib that allows me to playback mp3
files and mp3 streams (such as shoutcast) under mono with c#. I found out
about gstreamer-sharp, but after compilation I'm not able to use it with
MonoDevelop.

After a bit frustrating afternoon trying to get it working I have 2
questions:

1) Is there a way to integrate the gstreamer-sharp installation with
MonoDevelop?
After compilation I got the following files:

* ls -al /usr/local/lib/mono/gac/gstreamer-sharp/0.9.2.0__4956b48baf980190/
...
-rwxr-xr-x 1 root root 689152 2011-01-01 19:01 gstreamer-sharp.dll
-rw-r--r-- 1 root root    723 2011-01-01 19:01 gstreamer-sharp.dll.config
-rw-r--r-- 1 root root 330633 2011-01-01 19:01 gstreamer-sharp.dll.mdb

* ls -al /usr/local/lib/mono/gstreamer-sharp-0.10/
...
lrwxrwxrwx 1 root root   68 2011-01-01 19:01 gstreamer-sharp.dll ->
../gac/gstreamer-sharp/0.9.2.0__4956b48baf980190/gstreamer-sharp.dll

but I cant find out how to tell MonoDevelop to use these dlls.

2) Are there any other libs for my needs? I read some about ffmpg bindings,
irrklang and bass but I didnt have the chance to give them a try yet.

My environment is Linux Mint 9 (Ubuntu 10.04) with Mono JIT compiler version
2.4.4 (Debian 2.4.4~svn151842-1ubuntu4) and MonoDevelop Ide  2.2.0.0.

I'm a beginner with c#, mono and MonoDevelop. 
Creating an simple mp3 software player is my learning project.

Thank you very much and a happy new year :)
Christoph

--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/C-mp3-playback-gstreamer-integration-or-any-other-lib-tp3170545p3170545.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
Michel Foucault | 2 Jan 2011 18:41
Picon
Gravatar

svcutil - assemblyPath support

Hi,

I'm trying to use svcutils (mono 2.8.1).

Since it fails with metadataUrl I've try assemblyPath method.
It doesn't work either

I've modified the code of mcs/tools/svcutil/Driver.cs, it seem working well for assemblyPath.

see attachment for the patch.

Michel
Attachment (svcutil-0001-assemblyPath-support.patch): application/octet-stream, 4472 bytes
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
Miguel de Icaza | 3 Jan 2011 16:55
Picon
Favicon

Help updating the release notes for Mono 2.10

Hello guys,


    As usual, before we push a release, we need to make sure that the release notes are up to date.

    I took a first stab at what is new in 2.10, but I am likely missing a lot, please help me by adding the proper bullet points, or if you feel courageous, by filling the entire description of the feature here:

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
Matt Johnson | 3 Jan 2011 18:24
Picon
Favicon

Re: Problem when running winforms app on arm processor

No, I have no resolution yet.  I have simplified my winforms test application such that it is a single form with a single text “hello world” label and no code logic whatsoever.  It crashes in the exact same manner.

 

One point I am unclear on is that I read in some old posts that the thumb instruction set is not supported.  I am not compiling with thumb enabled, but I am using a toolchain that targets armv4t instead of straight armv4.  I actually found it very difficult to even find an “non-t” toolchain out there – I’d have to compile one from scratch if this is the problem.  I don’t see how it could be though.  Especially since it is only winforms apps that are failing.

 

Can someone with some expertise with the arm trampoline please chime in here?  It is fairly urgent.

 

Thanks,

Matt

 

From: Jae Kim [mailto:jkim0130 <at> gmail.com]
Sent: Friday, December 17, 2010 10:52 AM
To: mj1856
Subject: Re: [Mono-dev] Problem when running winforms app on arm processor

 

Hi Matt,

 

Did you ever resolve this?  I'm experiencing the same problem.

 

Thanks,

Jae

On Mon, Nov 29, 2010 at 7:44 PM, mj1856 <mj1856 <at> hotmail.com> wrote:


I have cross compiled mono 2.8 with libgdiplus for the s3c2410 processor I am
running. It is an arm920t (armv4t architecture).  I use scratchbox with a
recent codesourcery toolchain.

I have two test applications that I wrote in visual studio targeting .net
2.0.  The first is a console app with a basic "Hello world".  It works
perfectly.  The second is a winforms app with a single form that has a
simple label that gets updated with a timer control to show the current date
and time. (basically a digital clock).  Running it, I get the following
error:

* Assertion: should not be reached at tramp-arm.c:48

Checking /mono/mini/tramp-arm.c, the function in question is
mono_arch_patch_callsite, which has two blocks of code, where one of them is
supposed to run.  I'm not sure exactly what it's checking here, but neither
block gets executed, so it hits the assertion.  Can anyone shed some light
on what might be the problem?

One note that may or may not be of interest, but because the codesourcery
toolchain is multilib, I have to specify -march=armv4t on the CFLAGS passed
to configure mono.  This appears to be working, as my console app works
fine.

I do have a running X server, which I've tested with other native apps, so I
know at least that part is functional.

Thanks,
Matt
--
View this message in context: http://mono.1490590.n4.nabble.com/Problem-when-running-winforms-app-on-arm-processor-tp3064820p3064820.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

 

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
acidzombie24 | 4 Jan 2011 07:46
Picon

Re: (70014)End of file found: read_data failed


I am having the same problem. On debian i can restart apache and every 10
pages i'll have 3 or more pages that either give a 500 error or loads
incorrectly (the css file gives the 500 error which causes the page to look
wrong). The below are errors for 5 pages. Whats strange is it takes a long
time for pages to load if they do load. Like > 2 or 3 seconds. My other site
on the same server using the same config loads practically instantly on all
pages and doesnt ever give me the error. The site uses the same base code

[Tue Jan 04 06:34:36 2011] [error] (70014)End of file found: read_data
failed
[Tue Jan 04 06:34:36 2011] [error] Command stream corrupted, last command
was 1
[Tue Jan 04 06:34:44 2011] [error] (70014)End of file found: read_data
failed
[Tue Jan 04 06:34:44 2011] [error] Command stream corrupted, last command
was 1
[Tue Jan 04 06:35:18 2011] [error] (70014)End of file found: read_data
failed
[Tue Jan 04 06:35:18 2011] [error] Command stream corrupted, last command
was 1
[Tue Jan 04 06:35:26 2011] [error] (70014)End of file found: read_data
failed
[Tue Jan 04 06:35:26 2011] [error] Command stream corrupted, last command
was 1
[Tue Jan 04 06:35:30 2011] [error] (70014)End of file found: read_data
failed
[Tue Jan 04 06:35:30 2011] [error] Command stream corrupted, last command
was 1

--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/70014-End-of-file-found-read-data-failed-tp2287402p3173109.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
Stifu | 4 Jan 2011 11:08
Picon
Favicon
Gravatar

Re: Indexes Mono


I'm not sure I understand.
Isn't that what the Indexes option is for: letting you view directory
content or not?
Ie: if you want to see the files in a directory, then set it on?

fabiano lima da silva wrote:
> 
> Dears.
> 
> I´m a problem in MONO, I can´t to view the pages in server if INDEXES
> option are off.
> 
> Anybody knows a way for repar this?
> 
> Thanks
> 

--

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Indexes-Mono-tp3173275p3173282.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Gmane