Run VS-project on OSX - macos

I want to join as a team member doing web design work in an ASP.NET/C# project.
The project is setup in Windows environment using TFS for source control.
However, I work on OSX and would love to be able to work in the project without having to setup a developing environment using Parallels or so.
Visual Studio Code seemed promising and I installed a TFS plug-in, but I have no idea how to connect to the project and run it on a http://localhost.
Is there a good way to do this?
(I am more of a designer than a tech person so please bear with me and my stupid questions :))
Thanks!

Visual Studio Code is certainly one way to view code in C#, but you can't really run it unless you're in .NET Core. I think you may be able to debug with Mono, so that might be worth a look first to see if your application is supported through that route. I've heard that Visual Studio will be available cross-platform sometime in the future (which will be amazing), but for now, the IDE is only available for Windows.
You can try using MonoDevelop which looks like a C# IDE for Mac (http://www.monodevelop.com/) and there's also Xamarin Studio (https://www.xamarin.com/studio). See this StackOverflow thread.
As for TFS, if you're using Git, you can easily connect to TFS using the server as a remote for your local repo (or clone the TFS instance onto your local machine), or you can use the command-line for Team Explorer Everywhere.

Related

how to use tfs source control on an Apple Mac

Hi I made the mistake of experimenting with an Apple Mac just before the lockdown and now im stuck with it. Now I am trying to work on a tfs project in os as both bootcamp and parallels drivers drain the battery too fast.
As TFS is not supported in visual studio for Mac I have been trying to get it to work in visual studio code. I have installed the extension, but can't get tee clc working (I think its no longer supported)
It appears that tee clc is not compatible with the latest version of oracle.
I have tried installing oracle 10 and folowing this fix here but I get an error java.lang.module.FindException: Module java.xml.bind not found
can anybody point me in the right direction. I feel like im missing something as this should not be so hard.
Is TEE clc the right tool to be using. If not how should this be done now?
Thanks
We do not have TFS source control, assume you are talking TFVC source control. You are right, it is not support with Visual Studio Mac right now. But if you are using Git, it's available in Visual Studio Mac.
More details please take a look at our official doc here-- Does Visual Studio for Mac support Team Foundation Version Control?
Unsupported workarounds for TFVC
While Visual Studio for Mac doesn't officially support TFVC, the rest
of this guide provides some workarounds to work with TFVC on macOS. If
you're using TFVC for version control today, here are some solutions
you can use to access your source code hosted in TFVC:
Option 1. Use Visual Studio Code and the Azure Repos extension, for a graphical UI
Option 2. Connect to your repo using the Team Explorer Everywhere Command Line Client (TEE-CLC)
So, Tee clc is the right tool to be using.
tee-clc (can be installed with HomeBrew), which depends on Java 6, 7,
or 8 (see How to install Java 8 on Mac -- as of this writing, Java 9
will not work.)
Make sure you have installed java 8 on your Mac machine. You could also take a look at replies in this question: Connect VS code with TFS on mac It provide step by step guide of installation and configuration.
You could use https://github.com/microsoft/team-explorer-everywhere CLI tool for TFS support on Mac, or using older JetBrains IDE with TFS plugin,
for example I am using Rider 2019.3.4 with TFS plugin(already obsolete).
Screenshot of JetBrains TFS:

What's the best workflow for an Azure virtual machine (Windows)?

I'm developing a Socket.IO application with a MongoDB database. For various reasons I am developing the application to run on a Windows virtual machine within Azure. Setting everything up was fairly painless and I now have a basic application within the cloud. However, I am unable to find a comfortable workflow. I want to be able to push changes to the virtual machine (as if I was on *nix system using git) and I'm not sure how best to do this.
So you can use Visual Studio to develop along with Github for Windows.
For something familiar to Linux, you may want to try Cloud9 IDE, which is an IDE in a browser that also makes it easy to connect to your github or bitbucket accounts. It actually supports the basic git commands along with some basic debugging.
The Cloud9 IDE is not quite as advanced as Visual Studio. But it's very focused for node.js and I have been enjoying it quite a bit for my personal projects.

Installing Team Foundation Server (Migrate from StarTeam)

We are currently using StarTeam as our source control, but I am looking into alternatives. We are licensed for Team Foundation Server so I am thinking of using that as I believe it can integrate with VB6 and VS2010 Prof? (StarTeam doesn't integrate with either - at least the version we have doesn't)
Looking briefly at the features of TFS it seems there is a lot in there. To start with I just want SourceCode control. Does anyone know of a good step by step idiot's guide to setting this up? What needs to be installed where, what needs to be backed up etc, etc?
Also do I need to install anything else on my client to get VS2010 to work with it?
I don't really care about migrating the data from StarTeam but if anyone knows how this can be done I would be interested!
For your Visual Studio clients, you'll have to install Team Explorer - there's an installer on the TFS media, or you can download it separately. Each Visual Studio has to have a matching Team Explorer version installed (so if you have VS2008, you'll have to install Team Explorer for 2008), but to access later TFS servers, you generally have to install an extra update. For VB 6 (or VS2003), you'll have to use the TFS MSSCCI provider.
As to installing the server, all I'd recommend is install it somewhere first and play around with it before you install it for production use - get some familiarity with it. The install process is relatively straightforward.

Building webparts with Visual Studio 2010 Express

I'm trying to get started with building my own webparts, planning to follow this MSDN article.
I've downloaded Visual C# 2010 Express - I'm not quite at the point where I feel comfortable dropping 1000 big ones yet, and I installed Visual Web Developer 2010 Express via the WPInstaller.
Following through the tutorial, aside from the fact that I don't get the option to create a "Web Control Library", a gap I filled with this article, I can't seem to find the sn.exe tool (or the "Visual Studio 2005 Command Prompt"!).
I know it's not quite a direct programming related question, but I can't even get the thing going yet!
Any help is appreciated.
Thanks
EDIT:-
I think I may be jumping the gun quite considerably, I wrote a simple hello world example and tried to build it but it doesn't have any references to the Microsoft.SharePoint packages and they don't appear in my lists.
Am I understanding some more research I've done (namely this) correctly, in that I have to actually have a full installation of actual SharePoint on the machine I'm developing on?
sn.exe is part of the .Net Framework SDK tools - not actually part of Visual Studio.
If you've got the SDK installed (which I think you must have if you're using VS) then it will be in a directory such as (depending on which version of .NET SDK you've got installed)
c:\program files\microsoft.net\SDK\v2.0\Bin
You can develop SharePoint web parts with VS express but you won't be able to use extensions like VSeWSS which can make your life a little easier.
You don't have develop on a machine with SharePoint installed upon - you can just copy the Microsoft.SharePoint.dll assembly from a machine with it installed on and reference it in your project.
There are pros and cons to developing on a SharePoint machine.
Its easier to get started -
especially debugging locally rather
than remote debugging.
Harder to be
sure that you're code will work a
'real server' - are you sure you
don't have any dependencies that may
not be installed.
Harder to work with
multiple versions of SharePoint (2007
WSS and MOSS and 2010 foundation,
server etc).
If you do want to work with a locally installed SharePoint then
You can install windows server OS with SharePoint and Visual Studio.
there is a hack for installing SharePoint 2007 on vista (referenced in the SO article you link to)
you can install SharePoint Foundation 2010 on Windows 7 (but I am not sure what the licensing restrictions are - is this maybe something thats given through MSDN?)
If you decide to go with the remote server installation then save yourself some grief and use virtualization such as VMWare Server, Virtual PC or Hyper-V.
If you are doing SharePoint development trying to reference the Microsoft.SharePoint namespaces you need to have SharePoint installed on the machine if you want to do things like debugging, etc. For SP 2010 you CAN install SharePoint on a Win 7 machine. For previous versions of SharePoint, you will need to setup a Server that is Server 2003 or Server 2008 (you can't install SP 2007 and earlier on client machines). Generally this is a Virtual Machine for developers.
Having said all of that, there are relatively few reasons you need SharePoint to develop a WebPart. The vast majority of the WebPart functionality is part of the System.Web.UI.WebControls.WebParts namespace. Even if I am accessing SharePoint data, I generally use the ASP.NET web part.
If you are trying to use the new SharePoint VS 2010 functionality to create Visual Web Parts, etc, then you will need to install SP 2010, since that functionality is not supported in earlier version of SharePoint.
John

What is the best way to integrate TFS version control

Working on implementing TFS throughout our organization. It is easy to integrate with .NET projects and any platform that uses Eclipse or a derivative of Eclipse for editing.
What's the best way to use TFS version control with Xcode (now that I find out we need to write some iPhone apps)?
Xcode integration is something that we at Teamprise have been looking into a lot. One of the main problems for us is that Apple does not provide a version control API that we can hook into to add a new version control system to Xcode - for integrated version control it is either the systems that Apple provide access to or nothing at the moment.
That said, we do have a number of customers who develop in Xcode for TFS. They either use Teamprise Explorer (which is a standalone GUI client to TFS compiled as a Universal Binary) or they have macros inside Xcode that perform basic check-out and get operations in-conjunction with the TFS command line (tf). It's obviously not the ideal experience but acceptable for them. The stand-alone GUI has the advantage that you can do all the work item tracking stuff there as well and integrate this with your check-ins.
Sorry if this is a very "marketing" type answer - just trying to let you know what our current customers do with Xcode. If you want more details around the macro approach then let me know.
Hope that helps,
Martin.
Few week earlier announced Git-tf by codeplex could do the job.
One way would be to use the Team Foundation System client under Windows in VMWare, and check out (or whatever TFS calls it) your sources to a directory on your Mac that's shared with the virtual machine. It also looks like Teamprise has a Team Foundation client for Mac OS X built atop Eclipse that would be worth looking into.
That said, I'd very strongly encourage you to use a natively cross-platform source code management system like Subversion or Perforce instead of a platform-specific silo like Team Foundation System for your company's soruce code, especially since you're going to be doing multi-platform development.
While you're not likely to share code between a .NET application and an iPhone application, having full cross-platform access to things like design documents can be really important. Mac OS X 10.5 and later include Subversion, Perforce is readily available, and both Perforce and Subversion are natively supported by the Xcode IDE. Subversion in particular is also more likely to be familiar to experienced Mac and iPhone developers you might bring onto your projects as you ramp up.
Perhaps SVNBridge will do the trick, it's an open source used at CodePlex (Microsoft's Open Source Hosting). Check it out here: http://www.codeplex.com/SvnBridge
I have limited experience with it other than using it briefly to connect to CodePlex.
Follow this links, its raeally helpful:
https://www.visualstudio.com/get-started/cross-platform/share-your-xcode-projects-vs
After that Check-in your existing xCode project code into TFS
On your Mac, download and extract www.microsoft.com/en-us/download/details.aspx?id=30474. I placed it in /users/{myuseraccount}/git-tf
Open Terminal and run the following commands
export JAVA_HOME=/Library/Java/Home
export PATH=$PATH:$JAVA_HOME/bin:/git_t
export PATH="/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/":$PATH
export PATH="/Users/{myuseraccount}//Git-Tf/":$PATH
change the working directory to your xCode project folder:
e.g.: cd “/users/{myuseraccount}/documents/xCode Projects/testproject1/”
In terminal fire commond:
- git remote add origin url//companyName.visualstudio.com/DefaultCollection/_git/xyz
and than
git push -u origin --all
It'll directly push your project into Visual studio TFS server..!!!!
The biggest problem with this is that Xcode only runs on OS X and TFS client tools only run on Windows. If you're host operating system in OS X and you have a Windows virtual environment running locally (like Parallels or VMFusion) then you could use Team Explorer or the command-line tools to work with the repository.
But this is a lot of work just to use a really dated version control system. If you don't have to use TFS I would probably use SVN or something else with native OS X support.

Resources