Thread: Visual Studio
View Single Post
  #6   Spotlight this post!  
Unread 03-08-2016, 13:06
ahaltom ahaltom is offline
Registered User
FRC #5712
 
Join Date: Jan 2015
Location: Hemlock High School
Posts: 11
ahaltom is a glorious beacon of lightahaltom is a glorious beacon of lightahaltom is a glorious beacon of lightahaltom is a glorious beacon of lightahaltom is a glorious beacon of light
Re: Visual Studio

Quote:
Originally Posted by Jaci View Post
If you want to get the code to work nicely with Visual Studio, you're going to have to do a bit of manual work.

Step 1: Get the WPILib and NT-Core header files. These will usually be under ~/wpilib

You can add these to your project's header files include directory. This should fix up any false-alarm syntax errors you might be getting.

Step 2: Configure your build system.

This is a bit difficult. First, you need the FRC C++ toolchain installed and added to your PATH.

Next, you have to use some form of build system to send over and compile your code. You can use the one provided by WPILib for this.
WPILib uses ANT to build and deploy code. Visual Studio supports ANT builds and you can find instructions here. Reconfigure your build targets to use this build system, and you should be set to go. If you're stuck looking for what tasks to run, run a simple build in eclipse and take note of what tasks are executed, that should help you.

Keep in mind this is only to build and deploy code. The code you build will not run on your system, as it's built for an ARM target (the roborio)
Thanks for the reply, Jaci! It's great to see that someone has worked with robot code in Visual Studio. I've used Visual Studio a TON in college, so it really appeals to me more than Eclipse does (IntelliSense is amazing). I'll work with Joeojazz and try to get Visual Studio working properly. You may hear from Team 5712 in the next few days if we hit any bumps in the road, but we'll give it a shot!

Alex
Team 5712 Mentor

Last edited by ahaltom : 03-08-2016 at 13:11. Reason: typo
Reply With Quote