Posts

Showing posts with the label Visual Studio

Using TypeScript in Visual Studio 2017

Image
See this link for very similar instructions: https://www.typescriptlang.org/docs/handbook/asp-net-core.html Step 1: Create a new Asp.Net Core project Select Empty project: Click OK. Step 2: Add Microsoft.AspNetCore.StaticFiles via NuGet Right click on Dependencies and select Manage NuGet Packages: Select Browse and search for 'Microsoft.AspNetCore.StaticFiles': Select this item and click Install. Step 3: Add a scripts folder for TypeScript First update the body of Configure in Startup.cs file as shown: Startup.cs [code language="csharp"] using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; namespace AspDotNetCore { public class Startup { // This method gets called by the runtime. Use this method to add services to the container. // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public void ConfigureServices...

Using the WiX Toolset to create installers in Visual Studio C# projects

Image
Here is some of their online documentation on how to use the WiX Toolset to create installers: https://www.firegiant.com/wix/tutorial/getting-started Here is a quick and concise guide to set up using the WiX Toolset in a Visual Studio project, in order to create installation packages, from start to finish. Step 1: Install WiX Toolset First make sure you have installed the WiX toolset from the following site: http://wixtoolset.org/releases/ WiX Toolset when run looks like this: [caption id="attachment_7571" align="alignnone" width="355"] WiX Toolset to create installers[/caption] Step 2: Create a new Visual Studio project In this example I'm creating a new WPF application: Step 3: Add a WiX installer project to the solution Right click on your solution folder and select Add > New Project... Select 'Windows Installer XML' > 'Setup Project' and give your installer project a name: Step 4: generate GUID...

How to rename a project folder in Visual Studio

Image
Example folder name ‘PortableMedia’ that I wish to rename to ‘Renishaw.IDT.Powers.PortableMedia’: Step 1: Close the VS solution and nename the folder in source control ‘PortableMedia’ Gets changed to ‘Renishaw.IDT.Powers.PortableMedia’: Re-open the solution. Observe that the renamed project that is now marked as unavailable in the Solution Explorer: Open the Properties pane on that unavailable folder: Just select properties window – you can’t right-click and select properties anymore… Edit the folder and update the path name: (If you have problems doing this then just edit the *.sln file using notepad++ and change the ‘File Path’ property in there) Right click on that unavailable project and try to reload project. This should work now: Remove the old folder in your workspace folder: You might get the following build whinge [code language="txt"] 1>------ Build started: Project: RenishawOnDemand.TestHarness, Configuration: Debug x64 -...

Getting started with Spire.XLS for .NET

Image
E-iceblue Ltd . is a vendor of powerful components for .NET, Silverlight and WPF development. These products enable the user to easily read and write different formats of office files. A quick an easy guide to setting up Spire.XLS for use in Visual Studio .NET projects is presented here. For the purpose of clarity and helping the user get started as soon as possible, a simple 'HelloWorld' example is presented.

How to Create an Installer with Microsoft Visual Studio

Image
Introduction Visual Studio 2010 contains a package that enables you to create Windows installer files for your applications. Follow these simple steps to build your own setup package for the Visual Studio application you are working on.

Using FLTK in Visual Studio

Image
Note: for configuring FLTK in Linux environments, please refer to this post . 1. Download and extract FLTK For this particular install I used an old Visual Studio 2003 .NET version. Get the zipped file from the download section of Bill Spitzak's FLTK site. Unzip the file and place it somewhere suitable such as C:\fltk-1.1.10-source.

Getting Started with OpenGL for Windows

Image
For setting up OpenGL in Ubuntu Linux, please see this post , otherwise for Windows / Visual Studio environments, please use these following instructions: 1. Download the latest Windows drivers As stated on the OpenGLs wiki page , OpenGL more or less comes with the Windows operating system. You will need to ensure your PC has the latest drivers for your graphics hardware, however. Without these drivers, you will probably default to the software version of OpenGL 1.1 which is considerably slower.

Getting Started with Boost Threads in Visual Studio

Image
Introduction This post aims to be an accessible introduction to getting set up with the Boost threads in Visual Studio environments for the first time.  Like with many technical subjects, there is a great deal of information out on the internet, that tells you a lot without actually showing you anything!

Getting Started with the CU Decision Diagram (CUDD) Package for Windows

Image
I have managed to download, uncompress and compile this library in a Visual Studio environment. At last.  Though a very powerful package for the implementation of binary decision diagrams, the documentation for its actual set-up for non-Unix environments seems a little sketchy and somewhat intimidating for the beginner. 

Getting Started with OpenCV in Visual Studio

Image
OpenCV is a free, open source library that enables your computer application to "see" and make decisions from the image data it acquires.  Here are some guides for setting up OpenCV for use in Microsoft Visual Studio Environments:

General HowTos

Image
Collapse / Expand code blocks: Go into Tools -> Options -> Text Editor -> C/C++ -> Formatting Check everything or a selection as required.

Getting Started with the FlyCapture SDK

Image
I have recently been working on a knotty problem involving control and image acquisition using the Flea ® 2 camera, using FlyCapture ® SDK by Point Grey Research, Inc.

How to use the Boost Libraries in Visual Studio

Image
In this guide we will use boost::format , a Boost library requiring no separate compilation. If you do not already have Boost installed, the first task is to download and extract the Boost zip file to a destination of your choice. Official releases of Boost may be obtained from here: http://www.boost.org/users/download/. Download and extract the zip file to your destination of choice:

Installing ActiveX Controls For Communicating With Mitsubishi Microcontrollers

Image
Another recent re-revisit was necessary, this time to enable USB-based as well as COM-based communication between PC and Mitsubishi PLC microcontrollers.   Registering the ActiveX Control To register the ActiveX component so that is shows up on your toolbox, choose Tools and select Add/Remove Toolbox Items: Click the Com Components tab and choose the DLL which includes the ActiveX control you want to use: The Mitsubishi ActiveX control is now added to your toolbox: Set the include file Start Visual Studio, choose the Tools menu and select Options. In the Projects folder select VC++ Directories, choose Show directories for include files and select the location for the include file: Using the ActiveX control in your project Right-click on your form and choose "Insert ActiveX Control": Select the one you need, which will then paste itself onto your form. Generate the new ActiveX class Navigate to the Project menu and select Add Class. Select MFC c...