I installed SpecFlow package via NuGet in VS2012 Express edition for my class library project.
But when I want to add a new SpecFlow item to it I can't find any SpecFlow templates on the list.
I see in the project references that TechTalk.SpecFlow is added.
I found some work around for VS2010 Express : https://stackoverflow.com/a/5041703/1037754 but I would prefer to have it working in the 'normal' way if possible:)
I have .Net 4.5 on my machine if that matters.
Thanks!
Visual Studio Express does not support project extensions (forbidden and disabled by Microsoft).
This means you cannot use the SpecFlow Gherkin Editor (syntax highlighting, table formatting, autocomplete for steps, navigation between steps and step definition code), nor does the code generation from feature files to executable scenarios work from the IDE (single file generator).
However you can edit feature files as normal text files and you can generate the executable scenarios using the SpecFlow command line tool (like you would do on the build server).
Related
I am looking at how to setup a modern js library project (npm + react + typescript + webpack, etc) with Visual Studios 2019. Note that I don't want this project to be executable (as all of the built-in project types appear to be...). What I want is for the build process to produce bundle(s) which will ultimately be uploaded to Azure Storage and deployed via Azure CDN. Right now I'm just focusing on how to setup the project so that it will produce a bundle(s).
Is there a built-in project type suited to this that I'm missing? Or do I need to use Visual Studio Codes for this type of work? Preferably I'd like to stick with Visual Studio 2019 rather than introduce another IDE if I can help it.
Thanks!
I don't see the option to create an Azure function class library template in new projects under Visual Studio Mac. If I created one manually - what files do I need to include and what framework target should I use for the library? .net core or .net standard or something custom?
Alternatively - if I use a CSX script file instead, how would I debug that on a mac?
Azure Functions support for Visual Studio for Mac is available in the alpha channel, so you need to switch to that in order to use this functionality.
The tooling there is similar to what is available for Visual Studio 2015, supporting CSX based projects (as opposed to pre-compiled, class library projects) and giving you a local run/debug experience.
In Visual Studio Mac 7.2 this feature was moved into an extension. Just open the extension manager - search for "functions" and you can install that feature again.
I have a VC++ (unmanaged) project to which I added performance counters using manifest method. Everything is working great and I even have build steps that do manifest compilation and automatic registration using lodctr.exe tool with /m:manifest switch.
The problem that I'm running into is that I now need to make installer (VS2008 Installer project) do registration on install (unregistration on uninstall).
I tried to set it up by having a custom action that referenced lodctr.exe tool with CustomActionData set to /m:[TARGETDIR]PerfMon.manifest and similar setup using unlodctr.exe for custom uninstall action.
When installer runs, I do see a brief flash of cmd window (which is ok), but counters are not getting registered. I ran SysInternals' ProcMon tool, and I don't see lodctr.exe process even created.
I tested that running lodctr.exe manually on target machine registers the counters.
I googled for an example or explanation how to do it with Visual Studio installer project, but came up empty. It has some .NET oriented examples, but nothing for unmanaged, hard and cold VC++...
How can I register performance counters manifest using installer project?
Visual Studio installer project has very limited functionality. Starting from Visual Studio 2012 Visual Studio installer project is not supported, you should consider to use Windows Installer XML (WIX) instead.
Include your manifest into WIX project and use WIX's PerfCounterManifest with it.
In Visual Studio 2012 I have native C++ project. There are a lot of settings in "Properties" page of this project:
Additional Include Directories
Preprocessor definitions
Additional Library Dependencies
etc.
Later I need to migrate to Linux, and of course I need this settings too. Obviosly Visual Studio project can not be used in Linux
Can you suggest another, platform-independent, mechanism of declaring Additional Include Directories/Preprocessor definitions/Additional Library Dependencies etc. so I can migrate to Linux easier?
cmake might fit your needs: it's a cross platform build system that allows to configure your project in a compiler-independent way. For Windows, it is then able to generate Visual Studio Project files based on that configuration.
When I right click on a project in my solution and go into the properties, I don't see the Compile tab on the left. I see Application, Build, Build Events and then the next one is Debug.
I've Googled for this but couldn't find anything, and also couldn't find anything here. Does anyone have any idea what I'm doing wrong?
Many thanks!
The Compile tab shows up for Visual Basic projects, but not for C# projects. For Visual Basic it mainly houses constructs specific to VB, like OPTION EXPLICIT, but there are elements like target platform that are found on the Build tab for C#. The target framework, available under the Advanced Compile Options of the Visual Basic Compile tab is found on the C# Application tab.
UPDATE: With Update 2 of Visual Studio 2012 I'm now seeing Target Framework for a VB project also in the Application tab.