Questions tagged [visual-studio]

71709 questions
1

votes
2

answer
1k

Views

How to find with lookahead in Visual studio 2012 Regex Find and Replace

I am trying to find all using statements that are in cs files that contain a reference to a class anywhere in the file following it. For example, I want to match using Example.Foo; if BaseClass is found anywhere in the file following it. Like such: I've tried (using Example.Foo;)(?=[.\s\n]*BaseClas...
Jim
1

votes
2

answer
3.1k

Views

Consume web reference in Visual Studio 2012

I am trying to add a web reference hosted by a thrid party to a new project in visual studio 2012. Specifically the UPS API. I have contacted their support and if I receive a response before this question is answered it will be updated. Now adding a normal web reference I have followed the article a...
Oxymoron
1

votes
1

answer
76

Views

Should I always use Command even though it might not be necessary?

Should I always use Command even though it might not be necessary? Or should I only use Command in the case where more things, menu items, buttons, whatever, when clicked execute the same code? Maybe it is good practice to always use Command, or maybe it adds additional unnecessary complexity. I am...
user2381422
1

votes
1

answer
3.3k

Views

How to generate a Visual Studio project file when I build my qmake project?

I like to do most development using Qt Creator, and the builds are driven with qmake and jom. I occasionally want to use Visual Studio for debugging. I'd like to know what magic to put into the .pro file to automatically generate a Visual Studio project file during the project build, every time the...
Kuba Ober
1

votes
1

answer
792

Views

In constructors and initializers, only property or field parameter bindings are supported in LINQ to Entities

I am able to execute the below code snippet in my application with no problem. Projects.Select(s => new ProjectName() { ProjectID = s.ProjectID, Name = s.Name }) Note that ProjectName is a parameterless constructor which exists in the following class: namespace YeagerTechModel.DropDownLists { [Dat...
sagesky36
1

votes
2

answer
3.4k

Views

Cannot see Databases In Visual Studio SQL Server Object Explorer after previous database dropped

I used to be able to see all databases in the SQL Server Object Explorer in Visual studio 2012. I dropped one of the main databases that I used to work with in VS, now I can no longer see any of the other databases. I can connect to the Server (SQL Server 2012) but the database tree is empty. Screen...
Asynchronous
1

votes
2

answer
300

Views

Operator overloading in C++ - why do we need to pass parameter as const & (…)?

let's say I want to overload an operator ==. I've got a class vector and the following method: bool operator ==( const Vector & v ) { if(( this->x == v.x ) &&( this->y == v.y ) ) return true; else return false; } Why do I need to pass an object (in this example v) as a constant address to this objec...
tomdavies
0

votes
0

answer
5

Views

I made changes to a local file in a Branch and did a commit but didn't push to the origin. How can I get the original file back?

Here's what I have: MacBook:Ja.git alan$ git status On branch alan-1 Your branch is ahead of 'origin/alan-1' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working tree clean Is there anything I can do on the command line or with the Visual Studio options that will al...
Alan2
0

votes
0

answer
4

Views

Coco dataset to voc dataset for darkflow

I am working on a project of object recognition in darkflow andI want to train it with the coco dataset. Darkflow can only work with the voc dataset so far I know. So I am trying to convert the coco dataset json to multiple xml files darkflow need. I want to create a script in vb.net because I know...
Woebenskie
1

votes
0

answer
9

Views

Compile and create exe file using ML64

I am new to assembly and I have a bunch of .c files and a .asm file which I would like to compile to produce a .exe file. I was able to use the command here to generate the obj file correctly. However I have not done the linking because I am not really sure of the process. Do I add the .c files to t...
droidnoob
2

votes
0

answer
21

Views

How to debug a Windows kernel driver properly?

I'm trying to set up the environment of Windows VM for debugging a kernel driver. I created a sample of kernel driver in Visual Studio 2017. File->New Project->Kernel Mode Driver (basic project; just for testing - autogenerated trace macro, required procedures, etc.) and want to test it on the targe...
devbutch
1

votes
2

answer
2k

Views

Simple Application To Transfer File From Localhost To SFTP

I'm looking to create a simple desktop application that transfers a file from my local machine to an SFTP location. I have attempted the below, which transfers a file from my local machine to another location on my machine.. But struggling on how to transfer to an SFTP location, which uses a usernam...
Oam Psy
1

votes
1

answer
145

Views

VS2012 C++ to XCode

I have written a DLL in VS2012 C++ and did not use anything fancy. I think I have stayed cross-platform, at least I hope so. Can somebody tell me how to most easily get it to compile to OSX code? I think I will have to do some manual work, but I would like to find a pipeline that would allow me to...
tmighty
1

votes
1

answer
3.3k

Views

Error when running unit tests in automated build since VS upgrade to 2013 on TFS2012

I started creating automated builds in TFS 2012 using a build server with VS2012 on it. Everything was running fine, but then we updated the build server to VS2013(still with TFS 2012). Now no units execute. I get the error: Handle Test Run Exception Could not load file or assembly 'Microsoft.Visual...
user3115698
1

votes
1

answer
290

Views

How to copy directory with xcopy?

I am using Visual Studio 2012. I have the following xcopy command set myDir="$(SolutionDir)\MyFolder\MySubfolder" xcopy /D /Y /I /G /R /E %myDir% "$(TargetDir)" This only copies the contents of MySubfolder to the TargetDir. But I want it to create the whole folder. Right now if I have: MySubfolder\f...
Dzyann
1

votes
1

answer
562

Views

Blend VS2013 missing HTML Option

I just installed VS2013 Pro in Office, mostly because of Blend and its HTML Option. Maybe im blind but i cannot find any way to start an application with html like its shown in multiple videos. I must confess that i wanted to "abuse" blend to create prototypes with html. There are plenty of nice loo...
dichterDichter
1

votes
1

answer
486

Views

Unable to change Tab's label Text of VC++ CMFCOutlookBar

Its been a while i have stopped working on VC++ and now i have some project which i have again started my development on VC++.... I am having a strange issue right now the label of the control is not getting change at all here is my code for initialization of mfcoutlookbar BOOL CMainFrame::CreateOut...
wolvorinePk
1

votes
1

answer
258

Views

“Visual Studio Online” for 2010 version?

I am talking about the Visual Studio Online Source Control service by Microsoft. They now support Git as well. I know they work fine on VS 2013, but is there a way to get it to work on 2010? It worries me on using their service because what if a new vs studio release, such as vs 2014, and then I wo...
JohnC1
1

votes
1

answer
19

Views

letting the user know props of component in react

i would like to know if there is a way to show the user what props a component can get without using typescript. an example from material UI:
alejandroFernandez
0

votes
0

answer
3

Views

Debug external classes in Visual Studio 2017 version 15.0

I would like to debug external classes (MVC in this case), but I can´t get it to work. I have turned of the "Enable Just My Code" option under the menu Debug - Options and turned on "Anable .NET Framework source stepping" and "Enable source server support" (please see the enclosed image). debug set...
Miss Lira
0

votes
0

answer
3

Views

What is “command 'ftp-config' not found” error in visual studio code (VSCode) ftp-simple

I am trying to connect ftp server and edit & save my files on the remote server using ftp-simple but after updating VSCode recently, I receive the error "command 'ftp-config not found", while I did not change any config file and try to reinstall but it is not working.
Khalil Shakeri
0

votes
0

answer
5

Views

API or context menu to set the working directory

Is there an option/extension to right-click on a folder and set it as a working directory? Does VSCode provide such API to modify it easily? Would it be complicated to implement such an extension?
Garry White
1

votes
1

answer
3.3k

Views

How to get all Forms and User Controls in WinForms project?

I have a WinForms project, using Visual Studio 2013, DotNet Framework 4.0. How can I get a list of all of my created Forms and User Controls in the project, preferably at runtime? EDIT: Thanks for your reply. SO for example, I want to get the FOrms and User Controls under the namespace "MyApp.Forms"...
Tủn
1

votes
2

answer
589

Views

Programmatically start selenium test

Using C#, is it possible to start a selenium test? The only way I found is via the UI by right clicking on the test itself and starting it manually.
phadaphunk
1

votes
1

answer
3.2k

Views

Visual Studio 2013 Designer View not showing the UI Elements

I started facing the weird problem recently on my new laptop. I installed a fresh copy of Windows 8.1 and then Visual Studio Ultimate 2013. It worked fine for the first few hours, but the next time I opened it, it did not show the UI elements in the XAML Designer view. There's no error, the XAML cod...
Varun Mashru
1

votes
2

answer
1.6k

Views

“Object reference not set to an instance of an object” visual studio when hitting enter

For some reason, every time I hit enter in Visual Studio 2013, I get a message saying “Object reference not set to an instance of an object” Why? It's really annoying and I can't work like this. Thanks, -Gie
TheGie
0

votes
0

answer
5

Views

Xamarin.Forms: add labels inside ListView?

I'm still learning, so please bear with me. I'm trying to display a ListView in my Xamarin.Form. So far, this is what I have, and it works pretty well: This is the codebehind: var obj = JsonConvert.DeserializeObject(coord); List storeList = new List(); string store = string.Empty; foreach (var item...
0

votes
0

answer
3

Views

Azure web app publish with Visual Studio - not including all files

I have an MVC project being published to Azure from Visual Studio as a web app. In the solution I have a project set up as a "plugin" which is used by the web application and installed using Unity DI. Locally this works but when I publish to azure the plugin files aren't being deployed. This is h...
Heinrich
1

votes
2

answer
149

Views

C++ Conversion from Float to Hex not correct when writing to Memory

I'm trying to convert a float value (0.75) to hex and write that converted value to memory. char Actual[4]; float f = 0.75f; int i = *(reinterpret_cast(&f)); wsprintf(Actual, "%08X", i); MessageBox(NULL, Actual, "Float", NULL); unsigned long OldProtection; VirtualProtect((LPVOID)(0x01234567), 4, PAG...
Jugyou
1

votes
1

answer
370

Views

Visual Studio - How to add elements to left panel?

Basically I want to add Toolbox and SQL Server Object Explorer to my VS to be added to my left panel. Right now it looks like this: I want this (disregard the colors of course): I cannot figure out how to do it - been messing with this for a good 30 minutes now.
Jamie Romeo
-1

votes
1

answer
23

Views

Asp.Net Core site doesn't have 4x framework available? [duplicate]

This question already has an answer here: ASP NET Core 2 with Full Framework 1 answer I'm just getting started using .Net Core and at work our servers only have 4.6.2 installed. We will not be able to install Core 2.2+ for at least another 6 months and maybe up to the beginning of next year. To sta...
Caverman
0

votes
0

answer
5

Views

Service which allows me to use a droplet for accessing Visual Studios IDE?

Similar to how you can create a droplet in Digital Ocean for Ubuntu, Cent OS, & other OS with MEAN stack setup or Node.js setup. Is there a service available where I can access Visual Studios IDE to write .NET programs? (This way I won't have to install Visual Studios on my machine & can access it o...
Dragon Designer
0

votes
0

answer
5

Views

Issues with class instantiation after converting VS 2005 project to VS 2017

I'm working on getting a (badly written) VB web app up to something approaching modernity by converting it off a VM running visual studio 2005 and into VS 2017. The solution conversion went smoothly however when I try to compile it throws around 1k errors that are instantiations of user defined cla...
Zoidfarb
1

votes
2

answer
164

Views

Memory 1, Memory 2, Memory 3, Memory 4 in VS2013 Memory window

Why in VS2013 there are four Memory windows? Do they refer to RAM slots by any chance? Documentation does not explain why there is more than one, nor how information in them is different. To open a Memory window 1. Start debugging, if you are not already in debug mode. 2. In the Debug menu, poin...
Matas Vaitkevicius
1

votes
3

answer
203

Views

force visual studio linker to keep name mangling

i am working on a dll proxy project and i am having problem with forcing the visual studio linker to use the mingling name of the functions. in my def file i have : EXPORTS [email protected]=__E__0__ @1 but after building the solution the function in the dll is : _ap_abort_on_oom when i run the my...
Omega Doe
1

votes
1

answer
343

Views

MSBuild: building of DefineConstants value

I heed to extend the current value of DefineConstants property of my csproj-file. The string, which I want to add as a suffix, can be evaluated on C# such: Int32 min_year = 2009; Int32 max_year = 2015; String result = String.Join(";", Enumerable.Range(min_year, max_year - min_year + 1).Select(...
Andrey Bushman
1

votes
4

answer
306

Views

conditionally check toggle switch c#

I'm using c# on VS2012 After installing NI Measurement Studio 2013 for Visual Studio 2012, I created a windows form and added a toggle switch to it. in the code I wanted to check if the toggle switch state has changed, but I am running into problem, I am sure that like may of the questions asked h...
Duke
1

votes
1

answer
401

Views

Command Line to open ReadMe file when opening project in Visual Studio

I want to open a ReadMe.html file located in my project/solution as soon as Visual Studio is opened. Is there any command line switch to open ReadMe.html file of my project? For Example, Devenv myproj.csproj /F:ReadMe.html Note: I want to automate this through a program, so not looking for manual so...
Chirag
1

votes
1

answer
540

Views

trying to use regular expression to surround my text with double quotes

The following is just a small scale example. How do I use search and replace (regular expression option) to surround each line with double quotes in Visual Studio 2012 search and replace? List Item Item 1 Item 2 End List Item "List Item" "Item 1" "Item 2" "End List Item"
Rod
1

votes
2

answer
2.5k

Views

The specified task executable “cmd.exe” could not be run.The specified executable is not a valid application for this OS platform

I am getting this weird error on Windows 10 when I try to build any project. The projects are working fine if I build them on other OS. The specified task executable "cmd.exe" could not be run. The specified executable is not a valid application for this OS platform. When I tried to check the log I...
Syed Farjad Zia Zaidi

View additional questions