FAQ Database Discussion Community


Include file in solution explorer without it being a build dependency

c#,visual-studio,msbuild,intellisense
How can I include a file in the list of files in solution explorer without including it as a dependency for compilation? I have a .targets file that generates .cs files, similar to the examples in this answer. <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <CoreCompileDependsOn>$(CoreCompileDependsOn);GenerateCode</CoreCompileDependsOn> </PropertyGroup> <ItemGroup> <Sources Include="..\sources\*.txt" /> </ItemGroup> <Target Name="GenerateCode"...

Cannot link to sublibrary/internal library/embedded library with CMake's Visual Studio generator

c++,visual-studio,visual-c++,cmake
The full error is available at AppVeyor. I create a library using CMake's add_library command, but when I try to compile another target to this library, I get silly errors like LINK : fatal error LNK1104: cannot open file '..\Debug\boost_http.lib' [C:\projects\boost-http\build\test\algorithm.vcxproj]. Other CMake generators do fine. How to properly handle...

How connect database created in SQL Server Management Studio with Visual Studio?

c#,visual-studio
I've created a database Test1 in Microsoft SQL Server Management Studio and I would like to connect this database to my VS C# project. I found this question where are instructions how to connect just system databases (tables master, model, msdb and tempdb). Is there some way how to connect...

visual studio cannot resolve static functions

c++,visual-studio,linker,singleton,static-functions
Here is the code and the output. win_main.cpp #include <Windows.h> #include <tchar.h> #include "d3d9_object.h" #pragma comment(lib, "d3d9.lib") #pragma comment(lib, "d3dx9.lib") LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); WNDCLASSEX createWndClassEx(HINSTANCE); HWND createWindow(const wchar_t *caption, HINSTANCE); void exitWithFailure(const wchar_t *message, HINSTANCE); const wchar_t gszWndClassName[] = L"MainWindowClassName"; WNDCLASSEX gWndClassEx; int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE,...

SDL image disappears after 15 seconds

c++,visual-studio,sdl
I'm learning SDL and I have a frustrating problem. Code is below. Even though there is a loop that keeps the program alive, when I load an image and change the x value of the source rect to animate, the image that was loaded disappears after exactly 15 seconds. This...

how to display dates from two different tables?

c#,mysql,visual-studio,dataview
In a DataView I am displaying two dates from two different tables in a database. Service date from maintenance table and Checklist date from fleetchecklist table. Both columns are called Date in the database tables. The problem is its only displaying one date (checklist date). Service date should say 14/06/2015....

Proget Server Up but Feed Inaccessible in Visual Studio

visual-studio,visual-studio-2013,nuget,proget
We have reinstalled ProGet as we rebuilt our server after a security hole was discovered (unrelated to ProGet). The feed is visible in the browser, but inaccessible in Visual Studio. While rebuilding our server, we have ProGet running on a temporary Azure server, which is working and serving our NuGet...

Using Try/Catch block to set file path?

visual-studio,visual-studio-2013
I'm having a bit of trouble figuring out an assignment for my Visual Basic course. I am told to assume that a given text file is not in the \bin\Debug folder of my program, so I am trying to throw an exception error and get the correct path from the...

Is it possible to read/retrieve a c++ source code from a .sln file?

c++,visual-studio,source,solution,sln-file
I sent a .sln file (instead of .cpp file) to a friend; will he be able to read the source code from it or is it just a file used from Visual Studio to load projects?

Remove Unused Namespaces from entire project/solution

visual-studio
Is there an easy way to remove unused using namespaces from the entire project or solution? I know that you can remove the unused namespace of a particular class by right click on using namespace statements >> Ogranize Usings >> Remove Unused Usings But doing this for each and every...

C++ Have a function repeat in the background

c++,visual-studio
I am using microsoft visual express. I have viewed the accepted answer for this question and it seems to not be doing what I want it to do. This is the function that repeats every second for me: double time_counter = 0; clock_t this_time = clock(); clock_t last_time = this_time;...

VB.Net: Display total when check boxes are checked

vb.net,visual-studio,checkbox,include
I am making a EXP multiplier for a game, so when i key in an amount, i will tick the certain multiplier and it will multiply my EXP to display how much EXP i will earn. I want to be able to know how to include statement if i check...

Lightswitch HTML Client: How to re-render an item (re-execute postRender callback)

javascript,html,visual-studio,visual-studio-lightswitch
I am developing an lightswitch HTML client with Visual Studio 2013. I have a screen with a tile list of customers, where the ones that are marked as "premium" (which is a boolean field of the customer entity) are highlighted with an orange background, whereas all other customers stay in...

boost/lexical_cast.hpp not found

c++,visual-studio,boost
In a different project which I unfortunately deleted, I was able to use Boost. I added the libaries in the project configuration, and then I declared #include <boost/lexical_cast.hpp> Everything was fine. Now in my new project I am getting the error boost/lexical_cast.hpp not found I have followed the instruction on...

many undefined functions in opencv 3.0.0 using visual studio 2013

c++,visual-studio,opencv,visual-studio-2013,opencv3.0
I have just started out to learn opencv but facing many issues. i have installed opencv and linked it to visual studio 2013. My first program which i copied from a video worked fine, which was #include <cstdio> #include <opencv2\opencv.hpp> void main() { std::cout << "OpenCV Version: " << CV_VERSION...

C# Referenced Namespace Hidden By Class Namespace

c#,visual-studio
I have a class like this: namespace Token1.Token2.Token3 { public class Class1 { } } And another class like this: namespace Token2.Token4.Token5 { public class Class1 { } } The first class is a part of my project, the second class is from a framework library developed by another group...

Visual Studio 2013 crashes when writing opening angle bracket

visual-studio,xaml,crash,intellisense,xamarin.forms
everytime I try to write an opening angle bracket in vs13 it crashes. The Problem only happens in a xamarin.forms project and in an xaml-file. Every other key works fine, just the opening angle bracket causes the problem. If I copy/paste it in the code it works fine, as well......

How to Customize Visual Studio Setup

c#,visual-studio,setup-project
I have created a video chat application in c#. Now I wan to make a setup of it. I have created a setup using Visual studio's setup project but my client told me to customize the setup progress bar styles and other properties. i dont know how to do it....

Call Contentclick event elsewhere

c#,visual-studio
I have a method inside the CellContentClick event handler to filter data as shown below: private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (cboQuantity.Text == "1") { tempn = 4; } if (cboQuantity.Text == "2") { tempn = 5; } if (cboQuantity.Text == "3") { tempn = 6; } if...

.gitignore File Not Working With Bonobo

git,visual-studio,github,bonobo
I set up a Bonobo Git server in IIS and have it working on my local computer. However, the .gitignore file is not working. I'm using the GitHub Windows client and this ignore file. I want the bin and obj folders ignored, but they are showing up as changed folders...

How do I make program with c# to check to see if a word is a palindrome? [closed]

c#,visual-studio,cmd
so i'm trying to make a program (text based) that can scan a word you type into it to see if it's a palindrome or not so just a true or false outcome i'm a beginner with c# so please help me out! So far this is all i have...

Msbuild now to conditionally use one of two targets with same name

visual-studio,msbuild
I've seen some answers to a similar question but not exactly the same and not with positive luck trying to use suggested solutions... so I'm trying something like this: <project> <target name="foo" Condition="'$(Configuration)' == 'Debug' "> <Message Text="=== RUNNING FOO DEBUG TARGET ===" /> </target> <target name="foo" Condition="'$(Configuration)' == 'Release'...

In Visual Studio 2013, what does this black arrow-shaped symbol in the breakpoint bar mean? [duplicate]

c#,visual-studio,visual-studio-2013,ide
This question already has an answer here: Black dash / line on visual studio 2012 left margin 1 answer Somehow, one of the lines in my source code became marked with a black arrow-shaped icon pointing to the right. I'm familiar with bookmarks and breakpoints, but I can't find...

Tiny stub of bogus code purely for the purpose of setting a breakpoint (that doesn't create a compiler warning)

c#,visual-studio
This is trivial question but find myself thinking it all the time - often when debugging, I want to break right after a certain line of code executes, and rather than putting the breakpoint on the next line of code (which may be a ways down due to large comment...

How do I make visual studio show exceptions that any method may throw?

c#,visual-studio
I was wondering about how I can make visual studio show the exceptions that any method may throw, not just the .NET Framework methods (I am using C#). For example, here's a picture showing that when I hover over Console.WriteLine it says "Exceptions: System.IO.IOException". However when I do that for...

why my asp.net project look like references not resolved?

asp.net,visual-studio,visual-studio-2015
Running VS 2015 RC on windows 7 64, for the asp.net projects, it looks like the screenshot below, there is also no intellisense, but the project can compile, something wrong? the VS has resharper 9 and web essential extension installed as well project.json { "webroot": "wwwroot", "version": "1.0.0-*", "dependencies": {...

uint32_t variable is strange changing

c++,visual-studio,sdl,sdl-net
I have simple code: #define NUM_UA_SOCK 100 typedef struct _UA_REQUEST { string full_url; uint32_t url_adler32 ; TCPsocket sock_ua ; uint32_t status_flag ; // ref Enum STATUS } UA_REQUEST ; UA_REQUEST GLB_ARRAY__UA_REQ[ NUM_UA_SOCK ] ; void handle_ua_sock_ready( uint32_t ii ) { string _req_mstr; byte*request = (byte*) _req_mstr.c_str() ; byte*pcrlf = NULL...

An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code

c#,asp.net,visual-studio
I am attempting to multiply the values of dropDown to the user's inputted value in daysRenting. I am getting a format error with respect to the data types being used. dropDown uses doubles and daysRenting is an int. My problem lies in this line of code... How can I rewrite...

Trouble with LINQ query and XML elements

visual-studio,visual-studio-2013
I've run into an issue trying to work with xml files in visual studio and was hoping someone could point out my error for me. What I'm trying to do is read in all the child elements, then find the longest child from the parent . I've tried many, many...

TFS Build - Get Assembly Version Info

visual-studio,tfs,build,msbuild
Is there a simple way to set the TFS Build Number to be an Assembly Version during build? I've seen many examples of the other way around (i.e. a build number updates the assembly version). We already use the SharedAssemblyInfo implementation from here, so we would like to leverage this...

Visual Studio code generation - Use uppercase type names

c#,visual-studio,code-generation,codegen
I prefer to use actual type names for primitive types instead of their corresponding keywords, such as String instead of string, Int32 instead of int, etc., because I like to have consistent syntax highlight and casing - that is, typenames are colored like typenames (aqua blue), and cased properly (uppercase...

finding file in root of wpf application

c#,xml,wpf,visual-studio,relative-path
I'm trying to load a file with pack://application: The file is situated in the root of my project but I keep getting a null reference error. However When I do an absolute reference it finds the file and loads just fine. What am I missing here? This doesn't work var...

Visual Studio 2013 LINK : fatal error LNK1181: cannot open input file

c++,visual-studio,opencv,visual-c++,visual-studio-2013
I am using Visual Studio 2013. I'm trying to build some code given to me from my professor and I keep getting this error: LINK : fatal error LNK1181: cannot open input file 'C:\Users\manduchi\Documents\eyegaze\EyeGazeDemo..\Libraries\OpenCV\lib\opencv_core249.lib' However, on my computer opencv_core249.lib is located somewhere else. I've tried updating the linker directories to...

Exception in async task gets intercepted in Visual Studio

c#,visual-studio,exception,asynchronous
I want to run several tasks, some of which would complete async'ly, and then wait for all of them to complete. As the tasks may throw exceptions, I want to catch and log them. sample code for that: static async Task doit(int x) { try { Console.WriteLine("{0} {1} start", x,...

Azure : HOWTO/BEST-Practice : Publish WebApp with Webjob using blobs Q's to multiple destinations?

visual-studio,azure,windows-azure-storage,publish
I have a webapp that I publish from VS. I have 3 publishing profiles (Test, Demo and Production). Each targets a different server on Azure, with it's own SQl behind it. I added a webjob using Queue's and Blob-storage. Again for test, demo and production I create 3 different storage...

Is there an opposite to 'go to definition' in Visual Studio?

c#,visual-studio
I can right click a variable/method/class etc and click 'go to definition' and it will show me where that variable/method/class was created. Is there a way to do the opposite of that? Is there a way to see where that variable/method/class is used in your C# project?...

Release Management for Visual Studio 2013 - Release Exception

visual-studio,tfs,msbuild,release-management,ms-release-management
Getting the following error after a successful MsBuild on a TFS Build Server: ERROR: Value cannot be null. Parameter name: The attribute 'BuildNumber' is not part of this XElement at Microsoft.TeamFoundation.Release.Common.ExtensionMethods.XmlExtensionMethods.GetAttributeValue(XElement element, XName attributeName) at Microsoft.TeamFoundation.Release.Data.Model.ReleaseComponent.SetBuildToLatest() at Microsoft.TeamFoundation.Release.Workflow.Services.ReleaseWorkflowService.InitiateFromBuild(Uri teamFoundationServerUrl, String...

Get the path of the active document in Visual Studio

c#,visual-studio,visual-studio-2013,vspackage
I am writing a VSPackage for Visual Studio 2013 using C#. I need a simple menu to be added to the Visual Studio menu bar. When clicking it, I want the current open (active) document in Visual Studio to be uploaded on a specific repository. More Explanation: I want to...

VIsual Studio: Deleting SUO file causes vs2013 to hang?

visual-studio,visual-studio-2013,suo
Visual Studio 2013 was acting up - it would take > 20 minutes to compile. I decided to try and help myself by deleting the SUO file thinking that may be a good first step. Here is the thing, when I delete the file VS hangs at "loading solution". Put...

How can I tell what will be updated if I use “Get Latest Version”?

visual-studio,visual-studio-2013,tfs,tfs2013,tfvc
I have a Visual Studio solution and am using TFS for version control. When I've made a bunch of changes to my working copy of the solution, the Team Explorer window will show me all the files that I've changed, and allow me to compare my version with either the...

How do I display an Icon on the Taskbar but not on the form itself?

vb.net,winforms,visual-studio
If I use ShowIcon in the form properties, I get the icon in the top left of my form (I don't want that), but I do get my icon in the taskbar. If I turn ShowIcon off, then I get no icon on the form but I get the default...

How Can I Add a Drop Downmenu, Selection, add that text in a richtextfield

visual-studio,visual-studio-2013
How Can I Make It So That: When I Select An Option From A Option From a Drop Down Menu, It adds a text into a richtextbox for example: Drop Down Menu/ComboBox > |Are Goood| richtextbox: ___________________________________________________ | (output after selecting option from dropdownmenu | | | | "Waffles Are...

String tokenizing in Visual Studio C++

c++,visual-studio
I have been trying to use the strtok function but the function breaks the code every time. Here is a code part : if (!strcmp(strtok_s(buf1, " ",NULL), ".model")){ strcpy_s(buf2, strtok_s(NULL, " ",NULL)); charPtr1 = strtok_s(NULL, " ",NULL); if (!strcmp(charPtr1, "PNP")) TtypeBuf = PNP; else if (!strcmp(charPtr1, "NPN")) TtypeBuf = NPN;...

Can I deploy multiple instances of my application on the same windows phone?

visual-studio,visual-studio-2013,deployment,windows-phone
I would like to deploy two or more instances of my application, however VS informs me that there is already an installed instance of this application on my phone. How can I install/deploy multiple instances on the same phone for debugging?...

Why a breakpoint jumps in my C++ code?

c++,visual-studio,visual-c++
MS Visual Studio 2013. I see my breakpoint is moving in runtime (C++ code). I had never such behaviour in my C# code, why I get this in C++? How can I solve it? #include <Windows.h> int main(){ HANDLE hFile = ::CreateFile(TEXT(""), 0, 0, NULL, OPEN_EXISTING, 0, NULL); if (INVALID_HANDLE_VALUE...

C# implementation of Dictionary to Create an index of words

c#,visual-studio,dictionary,indexing,text-processing
I'm currently trying to create an application to do some text processing to read in a text file, then I use a dictionary to create index of words, reading a text file and checking to see if the word is already in that file or not. If so, it will...

Visual Studio: replace default doubleclick-event

c#,winforms,visual-studio,events,attributes
I am aware of DefaultEventAttribute but I am still a bit clueless of how to implement it correctly. I have made a simple control class that inherits from NumericUpDown: public class NumericControl : System.Windows.Forms.NumericUpDown I want to use it in my project instead of a default NumericUpDown control, and I...

Visual Studio, Ripple Emulator and CORS/Cross Domain Ajax

visual-studio,cordova,hybrid-mobile-app,ripple
I have an issue with Visual Studio when working on a multi device hybrid app. When I try do to an ajax call to an external webservice, and get some errors in ripple. (Cross Domain Security issues). My code works fine when deploying to a mobile device. From research I...

Cannot find InvalidCastException in C# Application

c#,winforms,visual-studio,visual-studio-2012,webforms
I'm getting a strange error in Visual Studio, and of course this great software is unable to tell me where the error is, just that I'm getting an error. I guess the best I can do is paste my code. using (SQLiteCommand cmd = new SQLiteCommand(query, con)) { using (SQLiteDataReader...

How to uninstall a program using C#? [duplicate]

c#,visual-studio,visual-studio-2012,command-line,windows-installer
This question already has an answer here: How to uninstall MSI using its Product Code in c# 4 answers I'm trying to uninstall a program using C# via Visual Studio and possibly CMD. I made several attempts but could not getting anything to go. Attempt #1: RegistryKey localMachine =...

How to set a custom color for html angle brackets in VS 2013?

visual-studio
Under Tools => Options => Environment => Fonts and Colors there is Text Editor settings. Under Display Items there are items with names starting with HTML keyword. But I cannot find there a name for HTML angle brackets. How do they called?...

SQL server & Visual Studio

sql,sql-server,visual-studio,visual-studio-2012
i need help with SQL server in visual studio. I can't seem to connect my visual studio with internal SQL server. I had created a database with visual studio earlier and it was working fine but now i'm getting an error saying; "The attempt to attach to the database failed...

Why can't I use the Windows.Phone.Media.Capture namespace?

c#,windows,visual-studio,windows-phone,windows-phone-8.1
I'm attempting to use the AudioVideoCaptureDevice namespace in my application however I can't seem to locate the namespace. My guess is that I'm missing an assembly reference but I'm unsure if this should be required. I'm using Visual Studio 2015 and building against the Windows Phone 8.1 SDK. ...

Substring a stringRaw from String1 to String2

vb.net,visual-studio,substring,visual-studio-2015
If you didn't really get it what I actually want let me explain you better: I have a: stringRaw = "<img src=\"http://www.b92.net/news/pics/2015/01/15/111348233854b817af5b4bc991063053_v4 big.jpg\" title=\"\" alt=\"\" />" Now I have to do some kind of substring from string1 = "<img src=\"" to string2 = "\" title=\"\" alt=\"\" />" and have to...

Visual Studio Ctrl + F search freezes when including a '(' character

visual-studio,visual-studio-2013
For some reason whenever I include the '(' character in a Ctrl + F search in Visual Studio 2013 the search bar never works. It doesn't matter what other text is included in the search bar. It doesn't matter if I choose to search on just the current document, or...

How to rename qrc file?

visual-studio,qt
There is project based on MDI example. I work with it in Visual Studio 2013. I want to rename mdi.qrc file. But after renaming I get error 1>main.obj : error LNK2019: unresolved external symbol "int __cdecl qInitResources_mdi(void)" (?qInitResources_mdi@@YAHXZ) referenced in function _main What do I need to do?...

npm error : 404 Not Found: cordova-plugin-whitelist

visual-studio,cordova,plugins
I have installed a cordova-plugin-whitelist in Visual Studio project with cordova from GitHub but when I recompile, I get this error: Calling plugman.fetch on plugin "[email protected]" Fetching plugin "[email protected]" via plugin registry MDAVSCLI : npm error : 404 Not Found: cordova-plugin-whitelist All files of plugin there are correctly under plugin...

Visual Studio 2015 Ignoring New Folders & Files

asp.net,asp.net-mvc,visual-studio,visual-studio-2015
When I add a folder to the visual studio project, it ignores it completely. It didn't do that until recently, and I am not entirely sure why this is. A clean build does not solve the problem, in the visual studio folder structure, the resources folder is present. And in...

How to create an empty MVC 5 project in VS2013

c#,asp.net,asp.net-mvc,visual-studio
I'm using VS2013. After searching online for a while, I learned that I could create an MVC 5 project by clicking File--New--New Project--Web--ASP.NET Web Application, then select MVC as the template. But it created a whole new website template in this way. I'm new to MVC, I just want an...

Directory of where Office solution has been placed

c#,visual-studio,excel-template
I am trying to access the string which represents the path of the current directory my application has been placed in. I have an excel templates made in visual studio which needs to be populated by the names of files in the current directory (which the document have been placed)...

JS Code didn't work, trying do a demo in css lessons

javascript,jquery,css,visual-studio,vscode
but there's a demo that uses JS and CSS. I have been trying to fix it for about 3-4 hours. (FYI after 2 hours struggling I have found half of solution. I'm using Safari and should but -webkit-transform) Now I have tried the css added directly to the element and...

Code Execution stops with no error

c#,winforms,visual-studio
In my Form1_Load event, the code execution stops for no reason the middle of nowhere, and just finishes the loading process at that instance, showing the gui, this is the code and the line where it stops: Downloadn("https://somelinkhere.com/file.txt","Init.txt"); Application.DoEvents(); List<string> links = new List<string>(); var lines = File.ReadAllLines("Init.txt"); //Code Stops...

Is it possible to get code coverage data for integration tests using Visual Studio?

c#,visual-studio,selenium
I am testing a ASP.NET application and would like to get code coverage information about how much of the product code my integration tests exercise. Our libraries are already instrumented and the symbols (pdb) files are available, but I need to know exactly how to enable Visual Studio to capture...

Where to store an mp4 file in my project?

.net,vb.net,visual-studio,mp4
I have been studying vb.net for a couple of months now and I want to try something new. I have this sample project to try. It is a web browser and I want that if a button will be clicked, a video will play immediately. This is what my application...

Multiple socket connection

c#,visual-studio,sockets
I have 6 devices, price checkers. I have a project which the client in a supermarket will scan a product on this device and it will return the price of the product. I have managed to connect with one device, get the bar code and send data. But I can...

Node.d.ts issues errors using typescript compiler, how do I fix?

node.js,visual-studio,typescript,jasmine,protractor
I have a project that's a NODE console application project using Visual Studio 2013. When I compile the solution I'm getting typescript errors as follows: Typescript wants a semicolon after export interface ReadableStream extends EventEmitter { readable: boolean; read(size?: number): string|Buffer; //Like this ----> read(size?: number): string;|Buffer; Which means I...

Unsure how to set C# Connection string depending on solution configuration

c#,mysql,visual-studio,connection-string
I'm trying to figure out how to use Solution Configuration Management in Visual Studio to set a MySQL Connection string depending on what build configuration but am fairly new to this. I've found plenty of info on the XML for the App.config file for creating connection strings, but am unclear...

Can I pass VisualStudio Edition name through a compiler option?

c#,visual-studio,unit-testing,vs-unit-testing-framework,compiler-options
I am using Microsoft.QualityTools.Testing.Fakes to mock some unit tests. But this assembly is only available to users with VisualStudio Ultimate. Users with other editions (Professional) can't build and run this test project, and it gives an error on their environments. So I have created a compiler directive to deal this:...

Debug java in brackets editor or Visual Studio Code

java,visual-studio,debugging,editor,brackets
I really hate the IDE. They are too heavyweight and add a bunch of IDE specific files and folders and whatnot when creating a project. For the sake of making things easier, I use code editors. My favourite are Brackets (found at this site) and microsoft's cross platform Visual Studio...

C# Security Exception

c#,visual-studio,securityexception
When running this program I keep receiving the error: An unhandled exception of type 'System.Security.SecurityException' occured Additional Information: ECall methods must be packaged into a system module. class Program{ public static void Main() { Brekel_ProBody2_TCP_Streamer s = new Brekel_ProBody2_TCP_Streamer(); s.Start(); s.Update(); s.OnDisable(); } } How can I fix this? The...

Getting a project that uses Qt working in Visual Studio 2013

c++,visual-studio,qt,include
I downloaded a Github project that uses Qt 4.8 for GUI stuff, and am now trying to open the project in VS 2013. However, I'm not sure what to do about all the #include <Qt...> statements scattered throughout the project. My first thought was to install Qt via the Qt...

Build/Publish Single Page of Visual Studio 2013 ASP.NET Web Site

c#,asp.net,visual-studio
I'm working on a ASP.net web project that was migrated from Visual Studio 2010 to Visual Studio 2013. In VS 2010 when working on a page and it's respective code-behind you could right click the page in the solution explorer and click "Build/Publish" page and it would compile the aspx...

compile error when using boost::lockfree::spsc_queue (Is it a bug in boost?)

c++,visual-studio,boost
I defined a variable as follow: boost::lockfree::spsc_queue<std::vector<char *>, boost::lockfree::capacity<10> > myVariable; and in my code, I tried to rest it : myVariable.reset(); but when I am compiling my code I am getting this error: Error 17 error C2660: 'boost::lockfree::detail::ringbuffer_base<T>::pop' : function does not take 1 arguments C:\Local\boost\boost\lockfree\spsc_queue.hpp Why I am...

How to change TextAlignment by code? LightSwitch 2013

javascript,visual-studio,visual-studio-2013,visual-studio-lightswitch
I'm building a program in LightSwitch 2013 (Visual Studio 2013). I have a textbox (that is ReadOnly) that it's text alignment is fixed to my language by default (not to English). I wrote a code in my program that check if the textbox has my language or English. I want...

Get Latest Version using command-line from VSO?

visual-studio,tfs,visual-studio-online
I am looking for a simple way to get the latest version of source code from Visual Studio Online through automation (usually command line). I cannot seem to authenticate to VSO with the credentials I use to logon to the website with the TF or TEE command line. I have...

Should nDepend's output folder be added to source control?

visual-studio,code-analysis,ndepend
Background I am new to nDepend and wish to use it on a project that will be maintained with multiple developers in Subversion. I am quite keen on keeping historic nDepend analysis results and notice that nDepend does that quite well by default by placing such results in the folder...

Visual studio extension resource files

c#,wpf,visual-studio,xaml,resourcedictionary
I have developed a visual studio extension and I have a custom button that I want to style using PNG images, but the image files/resource files wont show while in action and the button is blank. I have a custom button template. <Style x:Key="openFilebtn" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate...

C++ Why does this work

c++,visual-studio,visual-c++,switch-statement
I am using Microsoft Visual studio 2013 I currently have this switch statement: switch (option) { case 1: getline(cin, newname); cout << "What would you like your new username to be?\nName: "; getline(cin, newname); name = newname; cout << "\nYour username is now '" << name << "' with your...

Elastic Bamboo CI Windows Server - MSBuild 12 not publishing

c#,visual-studio,visual-studio-2012,msbuild
I have a custom image with Node.js, Microsoft Build Tools 2013, Windows SDK for Windows 8.1, .Net Framework 4.5.1 SDK, Microsoft Test Controller for Visual Studio 2013, Microsoft Agents for Visual Studio 2013 and Microsoft Web Deploy 3.5 installed. Most things are working but I am struggling to get the...

Tab completion for array not shows after first selection

visual-studio,powershell,nuget,tabexpansion
This is a script for VS PowerShell. function global:Add-Shape { param([string]$Shape, [string[]]$Colors) Write-Host "Shape Name:$Shape" foreach ($i in $Colors) { Write-Host "Color Name:$i" } } Register-TabExpansion 'Add-Shape' @{ 'Shape' = { "Circle", "Square", "Triangle" } 'Colors' = { "Brown", "Red", "Blue" } } In Package Manager Console When I try...

Can't add TemplateField to Datagrid

html,asp.net,visual-studio,drop-down-menu,datagrid
I am trying to add a DropDownList into the DataGrid so the location column can be easily changed. I am getting an error with TemplateField, itemtemplate, label and DropDownList. I get the build error: is not allowed within a 'System.Web.UI.WebControls.DataGridColumnCollection'. <asp:DataGrid runat="server" CssClass="tblResults" OnItemDataBound="dgList_ItemCreated" AllowSorting="true" OnSortCommand="dgTrailer_Sort" ID="dgTrailers" DataKeyField="ID" AutoGenerateColumns="false"> <Columns>...

Cannot install Visual Studio Professional and Community on Windows 8.1 Enterprise

visual-studio,windows-8.1
I have a problem installing VS Professional 2012 and VS Community 2013 on Windows 8.1. The installation app crashes right after I open it. Following installation tips I disabled anti-virus and firewall software and I installed all the available Windows updates, but nothing has changed. Furthermore, I disabled .NET 3.5...

Visual Studio loses first stack frames on StackOverflowException

c#,visual-studio,stack-overflow,html-agility-pack,stack-frame
I am running a web crawler and parsing the page content with HtmlAgilityPack and randomly get a StackOverflowException in that C# library, but when I try to see the Call Stack list up to my code, I get: "The maximum number of stack frames supported by Visual Studio has been...

Binding warning when scrolling horizontally in datagrid

.net,wpf,visual-studio,binding,wpfdatagrid
In my WPF application, when I scroll horizontally a DataGrid, Visual Studio 2010 Output print this warning: System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='-0.29487179487171' BindingExpression:Path=CellsPanelHorizontalOffset; DataItem='DataGrid' (Name=''); target element is 'Button' (Name=''); target property is 'Width' (type 'Double') I'm looking for datagrid...

C# SocketException was unhandled

c#,visual-studio,socketexception
I just went through a YouTube tutorial on tcpip servers and clients and was using the code from it: https://www.youtube.com/watch?v=uXFso7xSSWk both part 1 and part 2. I have redone the code twice and have made sure that everything is the same. Whenever I run the server I get the error...

Emulate Devenv/Runexit under MSBuild

visual-studio,msbuild,build-automation
I am new to MSBuild and busy automating tests of Visual Studio solutions. I previously worked with the command line of Devenv, which provides a convenient /Runexit mode of operation. From the manual: /Runexit (devenv.exe) Compiles and runs the specified solution, minimizes the IDE when the solution is run, and...

Visual Studio 2013 closes

visual-studio,visual-studio-2013
I recently installed Visual Studio 2013, so I'm relatively new to it. I'm trying to run the code below: #include <iostream> int main() { std::cout << "Hello World! "; } but the terminal that's supposed to open to display "Hello World" closes immediately and doesnt give me the chance to...

Form close event in visual studio c#

c#,winforms,visual-studio
I had an problem with my application closing in c#. When I hit the close button it display twice or more times the message box. What should I do? private void home_FormClosed(object sender, FormClosedEventArgs e) { DialogResult dialog = MessageBox.Show("Are you sure you want to really exit ? ", "Exit",...

Implementing callback function for dialog-based application

c++,c,visual-studio,user-interface,winapi
I was reading a very old tutorial on how to create a dialog-based GUI application in Visual C++ (source - in portuguese). Based on my weak knowledge on WinAPI programming I decided to modify the proposed code mainly to achieve two things: 1) Consistency with Unicode programming standard (using wWinMain...

Change All ToolStripMenuItem ForeColor

c#,visual-studio,colors,items,menustrip
I'm trying to change the color from every Item from the menu Strip, but the dropdown items I can't change.The dropdown menu items aren't white the way I want. My need is to change the ForeColor from every item with one code in the .cs file.

Regex to find C# async methods with missing “Async” suffix?

c#,regex,visual-studio
In C#, one of the conventions for asynchronous methods (those marked with the async keyword) is that their names should end with an "Async" suffix: public async Task MyMethod(/* params */) ... <-- Bad, missing "Async" suffix public async Task MyMethodAsync(/* params */) ... <-- Good, as per convention I've...

msbuild set path to CL

visual-studio,msbuild,clang
I'm trying to take a couple of projects normally compiled on Windows with Microsoft C++ and compile them with clang instead. On the upside, there exists clang-cl.exe which is designed to be a drop-in replacement for cl.exe. However, even when I copy clang-cl.exe into the current directory as cl.exe, msbuild...

nuget security - malware installed by nuget packages?

visual-studio,nuget
Is it possible that you can be infected with malware by installing nuget packages? This is especially interesting when you think of Microsoft Visual Studio 2016 which will be fully dependent on Nuget....

How to map Visual Studio shortcut keys in Github Atom

visual-studio,coffeescript,atom-editor
How to map the shortcut keys in GitHub Atom just like Visual Studio. If anyone have keymap file kindly share. I tried to implement (Ctrl+K ,Ctrl+C) in github atom for comment. It didnt work. Also Ctrl-K,Ctrl-U to turn off comment 'atom-text-editor': 'ctrl-k+ctrl-c': 'editor:toggle-line-comments' ...

How To Install Extended WPF Toolkit?

c#,visual-studio
I just used the NuGet console to install the Extended WPF toolkit to my Visual Studio 2013 project, but the controls won't show up in the Toolbox. Am I doing something wrong?(I'm new to WPF)

Linker error compiling DX10 program in Visual Studio 2015

visual-studio,visual-c++,linker,directx
I am trying to compile old program which works with DirectX 10. Full list of libraries used: #pragma comment(lib, "d3d10.lib") #pragma comment(lib, "d3dx10.lib") #pragma comment(lib, "dxgi.lib") #pragma comment(lib, "dxerr.lib") #pragma comment( lib, "dxguid.lib" ) Linker error: dxerr.lib(dxerrw.obj) : error LNK2019: unresolved external symbol _vsnwprintf referenced in function "long __cdecl StringVPrintfWorkerW(unsigned...

Translate this float value into english

c++,visual-studio,floating-point
So I was debugging in VS and I found this to be the value of a float variable -1.#INF0000 What is it? negative infinity? If not then what's the INF mean?...

Use Sync Framework without Installation

c#,visual-studio,microsoft-sync-framework
I developed an application, which uses the Microsoft Sync SDK for syncing Directories. But I want to run the application without installing the sync framework on every computer before. So is there a way to publish the application, including the framework in his program directory?

Visual Studio 2013 - Setting up Nuget packages for every project

visual-studio,twitter-bootstrap,templates,nuget
I want all of our future projects to use Bootstrap LESS and other nuget packages. Rather than supply a document to all my team members and hope they remember to set it up, am I able to create a skeleton project then template it so it appears under File ->...

Assembly Dependencies Change After Installation

.net,visual-studio,dependencies,installer,.net-assembly
I have a .NET application that seems to have some of its dependency versions change between debugging and running as an installed release app. I'll just focus on the Castle.Core assembly for my details, but the same issue occurs with a couple others as well. A NuGet package I'm using...