w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I add a .cs file to a project template in Visual Studio 2012?
Short Answer You will need to create a project based on the template you want to edit. Then use the Export Template to overwrite the original template. Longer Answer How to: Update Existing Templates

Categories : C#

How to make Visual Studio Setup Project to require but not include a given project output?
In VS 2010 in the solution navigator there is a small icon called "Launch Conditions editor". There you can search on the target machine for resources and create "Launch conditions" which binds your wanted message texts ("The file xx was not found...") against the property chosen for the resources.

Categories : Visual Studio 2010

Install Web Performance and Load Test Project Template into Visual Studio Professional 2012
I believe you cannot do that. Web performance and load tests are only available within Visual Studio Ultimate edition. See http://www.microsoft.com/visualstudio/eng/products/compare In summary, there are five version of Visual Studio Express, the free version. Limited in functionality. Does not support extensions. Professional, has most of the development tools. Premium, adds Coded UI testing Ultimate, adds web performance and load testing. Test professional, has some test tools but no development tools.

Categories : Visual Studio

Test Project in Visual Studio 2010 for a Windows Service Project
Do you want to debug the service or code that service runs? In the past I would create one project for a service, one project for a library that contains the logic, and one project for a console app that would be used to test and debug the logic locally. That setup covered most of the debugging needs. Hope this helps!

Categories : Visual Studio 2010

Visual Studio: Programmatically Create Project Items in project directory
That's roughly how I add my cpp file, should be no different in your case. The code will add the file under "SourceFilesSomeFolder" in the project and also in the "Source Files" folder in the project view tree (it should be already there). Project project = null; // you should get the project from the solution or as active project or somehow else string fileName = "myFileName.cpp"; string fileRelativePath = "SourceFiles\SomeFolder\" + fileName; // First see if the file is already there and delete it (to create an empty one) string fileFullPath = Path.GetDirectoryName(project.FileName) + "\" + fileRelativePath; if (File.Exists(fileFullPath)) File.Delete(fileFullPath); // m_applicationObject here is DTE2 or DTE2 string templatePath = (m_applicationObject.Solution as Solution2).Projec

Categories : C#

How to add test project over an existing project in Visual Studio 2012
I had the same problem with GTest framework (but I think it does not matter). So I found 2 possible solutions: Change output type of the tested project. Make tested project output as "static library" ( Project - Properties - Configuration Properties - Configuration Type - Static Library (.lib) ), then add the library file to the testing project (Project - Properties - Linker - Input - Additional Dependencies - Path to lib file from tested project) there is article to read http://leefrancis.org/2010/11/17/google-test-gtest-setup-with-microsoft-visual-studio-2008-c/ OR Add files from tested project to testing project through menu Project - Add Existing Item (choose *.h and *.cpp files you need). If someone has more convenient solution to the problem it would be great to know it.

Categories : Testing

use object files from one project in another project visual studio
You can specify project dependencies (http://msdn.microsoft.com/en-us/library/et61xzb3(v=vs.80).aspx) but in order to use the same source between the projects you'll need to create a static lib or a dll and link with that. You can set up these configurations in the project settings as well so you won't have code that shows the linking, it's all done in compile/linking statements

Categories : C++

Can you convert Visual Studio 7.10 project to Visual Studios 2012?
Converting from an older version may cause problems, here and here you can find more about converting from an older version. You can also try to make rebuild the code manually, you can rewrite the project in a newer version by yourself and this will also help you understand the code.

Categories : C++

Not able to run Visual Studio Project
In the properties of your web project you can see the start options which has a server option. Also if you right click your web project you can see option to use IIS express or dvelopment server.

Categories : Asp Net

Cannot use my interop dll in my visual studio project
Interop.CRYPTLib isn't a COM DLL - it is only a .NET wrapper for the CRYPTLib COM DLL. You need the DLL that implements CRYPTLib (probably CRYPTLib.dll) and install that DLL with regsvr32.

Categories : C#

What causes a Visual Studio project to sport a "10"?
When you double click a .txt file, Notepad launches. When you double click a .docx file, Word launches. And when you double click a .sln - it's complicated. Usually what will launch is a little helper app that looks in the .sln to figure out whether to launch VS 2008, VS 2012, or whatever. The overlay indicates a VS version number - not a year. For VS 2012 solutions, it looks like this: VS 10 is 2010; VS 9 is 2008. A lack of a version number overlay means the little helper hasn't figured out which version this is for.

Categories : Visual Studio 2010

How to create a DLL project for Qt 5 in visual studio Qt add on
I don't know if Qt5 comes with the same templates, but anyway, this is how I would do it for Qt4: If you can't disable the Create Static Library for the Qt5 library template, then you can change the Configuration Type of the library project afterwards (right-click your project in Solution Explorer > Properties):

Categories : Visual Studio 2010

Visual Studio SVN project without a Solution?
When you create a solution and add a Website project to it, you should be able to let Visual Studio work on a folder structure. Just don't check in the project file, nor the solution and you should have basic editing functionality.

Categories : Svn

Why Visual Studio allows us to add a reference to a DB project?
The reason you can add a reference to a database project is because a winforms project may have dependencies on the database. However, a database would typically never have a dependency on a windows forms project, so I think that it makes sense that VS doesn't allow you to create a reference from a database project to a winforms project.

Categories : Visual Studio 2010

Debugging a VC++ 6 Project in Visual Studio 10
Make sure you 'Rebuild' to ensure your binaries are fresh before you start the debug session. If you get build errors, you will need to fix the code or project settings. [Added] Make sure you're building and debugging a Debug build configuration. A Release build usually won't include debug information. If you have VC 6 available, you could instead install VC6 and Daffodil, then set the project's Platform Target to v60. This way you're building with VC6 build tools, thus minimizing the need for code changes.

Categories : Visual Studio 2010

Translating a Visual Studio project
There is a build in way in .Net using resx files. You can find the short introduction here. More on Programmers stackexchange MSDN is quite extensive with it's documentation about this topic and it is a good read. MSDN There are a lot of Tools out there helping with the translation based on .Net localization but you can also do it in VS directly. Maybe ResXManager is of your taste The .Net applications able to change translations on the fly usually use custom made internationalization e.g. loading text files and refreshing the GUI. If you want to do something like that on your own be aware that you also have to resize controls so that the text fits. For your problem wiht #count text text and text text #count you can use string.Format like. Add a resx file to your project like L

Categories : C#

Best way to deploy visual studio 2013 project
Your friends computer needs to have the VS 2013 redistributable packages You can perhaps build an installer that either downloads these, or installs them as part of your distribution. Or you can tell your "customers" to download and install them from a suitable link.

Categories : C++

Compile Visual Studio 2012 project with GCC
You will need to either compile everything by hand or write a Makefile, CMakeLists.txt, bjam, scons, or premake or whatever file to compile your project. It may not take too much time depending on the scope and size of the project, and your familiarity with a decent build system.

Categories : Visual C++

How to reference web resources from another project in Visual Studio
This example shoes the best way I have come up with so far http://www.codeproject.com/Articles/12997/WebResource-ASP-NET-2-0-explained However I'm not that keen on it because it means that I have to create many manual entries in the AssemblyInfo.cs file and then modify css and js to point images. Like so <img src='<%=WebResource("MyWebResourceProj.MyResources.Test.gif")%>'>

Categories : Visual Studio 2010

I can't execute a project on Visual Studio 2012
Identical problem... XamlParseException after deploying WPF project In this case the project was clean re-built... However, I do think it might be deeper than that. Try: http://geekswithblogs.net/lbugnion/archive/2007/03/14/108728.aspx that at least then should give you more concrete information.

Categories : C#

Visual Studio 2012: Error while trying to run project
Create a new project, copy the code from source file of this project to a new source file in the newly created project, then compile and execute it, hope it works fine then... The ".exe" file in this project is causing some problem or files are missing.. A new project can be helpful for these repairs.

Categories : C++

Package a Visual Studio project from Powershell
you can use MSBuild for this purpose. This is how I do it for my projects: So from powershell, you could call it like this: .MSBuild MyProject.proj /target:package /p:Configuration=Release EDIT 25/06: Worked for James with the /target:publish Note: You may need to specify the location of MSBuild as a variable, this can be found under C:WindowsMicrosoft.NetFrameworkversionNumber In that case it'd become: $msbuild = "C:WindowsMicrosoft.NETFramework64v2.0.50727msbuild.exe" & $msbuild MyProject.proj /target:package /p:Configuration=Release Notice the & instead of the . this tells powershell to execute the variable (which in this case is an exe). Also, further to your problem of not really knowing how to do it. I use a build language called PSake which is a PowerShell based bu

Categories : Powershell

Cannot open project in visual studio 2012 from another pc
right-click the project Solution Explorer and choose Edit ProjectName.csproj" In the project file, change the following line: <UseIIS>True</UseIIS> to <UseIIS>False</UseIIS>

Categories : C#

What's the point of unloading project in Visual Studio?
It can be useful to unload a project from a solution while resolving circular dependencies between projects or conflicts with different versions of the .NET framework between projects. It is considerably more difficult and error-prone to directly edit the configuration files with Notepad.

Categories : Asp Net Mvc

How do I programmatically add a file to a visual studio project in C++?
There are two ways how you could do this. You simply treat the project as XML and you edit that XML. You use Visual Studio's COM/.NET APIs. It is not (IMHO) easy to do it using the Visual Studio APIs but it is doable. Start at MSDN's "How to: Get References to the DTE and DTE2 Objects" and follow the links.

Categories : Visual Studio 2010

Why does Visual Studio take so long to add a project or file
The answer to this is highly dependent on the version of Visual Studio you are using, the language you are using, and the particular build configuration your project is using. I would need to see all three, as well as your system hardware and software configuration to give you the precise cause. However, based on the absurdly long time you listed (5 minutes), I predict that you are facing one of the following problems: Your build configuration requires certain build steps be run the first time the project is loaded, and the build is taking a long time. Your machine uses exceptionally out-of-date hardware, or has no available memory and is operating from a page file. One or more of your projects is bound to source control, and the source control provider in Visual Studio and/or the serve

Categories : C#

Upload a project to github C# Visual Studio
It probably says Everything up-to-date when you github push -u origin master because it sounds like you haven't actually made any commits in your local repo to push to your remote yet. Before you push source code to a remote repo, you must first add and commit it to your local repository: git add . # Add everything in the current directory (".") git commit git push origin master # Now you can push. Also, it's unusual that you would keep your local repo directory separate from your working directory for Visual Studio. A typical setup would be to just initialize a Git repo directly in your working directory: cd <your-visual-studio-project-folder> git init git add . # Add everything in the current directory (".") git commit git remote add origin <url-for-your-remote> git fet

Categories : C#

Visual Studio C# Project Reference not working
Did you use the using Core.Util instruction? Normally when you try to use the class, the VS will propose the using instruction for you. You can also click on the code where the error is and press alt+shift+F10.

Categories : C#

Visual Studio can not preview project in browser
This turned out to be a result of no start up project being selected. Simply going to Solution > Properties > then selecting a start up project fixed the issue. Or going to Solution > Properties > RightClick file> Select Brows with > choose your default browser .

Categories : Asp Net

how I can edit the asp.net mvc project direct from ftp using visual studio 12?
I want to edit the views without downloading them. I want to edit the file direct on FTP. That does not exist. You must download a file before you can edit it, and re-upload it when done. There are IDE's and FTP programs that abstract this behavior by using a kind of temp folder and a FileSystemWatcher, but to my knowledge this isn't built in to Visual Studio. And that is a good thing, because you do not want to edit live files through the IDE. How will you revert an accidental file deletion or other screwup? Use versioning, work locally, test locally, then publish to the server.

Categories : Asp Net Mvc

project can't be opened, visual studio crashing
It sounds like your solution settings were corrupted when Studio crashed. You can reset them by deleting your solution's *.suo file: Make sure you can view hidden files Find your solution in Windows Explorer. It should be a *.sln file There should be a hidden *.suo file in the same folder. Delete it. That will reset all of your solution-specific settings, including the windows you had open. In the future, you can prevent code from executing in the designer by wrapping it in an if using the Form.DesignMode property (inherited from System.ComponentModel.Component): if(!this.DesignMode) { /* put code to be excluded from the designer here */ }

Categories : C#

Build several targets from 1 project in Visual Studio
Yes, you can. The default configuration in Visual Studio has Debug and Release configurations, but you should create your own configurations (call them Config1...Config5). Then go to the Build menu / Batch Build, where it will list all your configurations. Check the checkboxes by the ones you want to build, and hit "Build". Each configuration will be built in turn.

Categories : C++

Visual Studio: how to get output in "Win32" project
In you console project the main function has to be called main, not WinMain. #include <iostream> #include <windows.h> BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lparam) { LPTSTR title = 0; GetWindowText(hwnd, title, sizeof(title)); std::cout << "Window Name: " << std::endl; return true; } int main(int argc, char* argv[]) // SUBSYSTEM:CONSOLE //int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR lpCmdLine, int nCmdShow) // SUBSYSTEM:WINDOWS { EnumWindows(EnumWindowsProc, NULL); std::cin.get(); return 0; } This will work for a Win32 console application project. It's exactly your code but I changed the signature of the WinMain function to be the standard main. To know which of the two you shoul

Categories : C++

How do I deploy a visual studio project on ngrok?
EDIT: There is a new open source WPF application that makes it easier to setup ngrok. Check it out here. https://github.com/devinrader/ngrok.editor. Prerequisite: You'll need to have some way to run the WPF application. The instructions immediately below should still be valid. NOTE: Make sure that Visual Studio is running in Administrator mode. Otherwise, ngrok may not be able tunnel to your local server First, you'll need the name of the port that you are deploying to. Run and deploy your solution, then look at the address bar. You should see an address like this, localhost:####, where #### is your port name. Copy that port name because we'll use it in a bit. Navigate to %userprofile%documentsiisexpressconfig. To navigate here, just copy the address above and paste it into your addr

Categories : C#

Running Visual Studio Test project from outside
mstest.exe is the command line test runner. It is documented on MSDN: http://msdn.microsoft.com/en-us/library/jj155804.aspx I see no reason this will not work from PowerShell.

Categories : C#

Use existing Visual Studio project in cmake
I found a way to do it: It is as simple as just put the following line in a cmake file: INCLUDE_EXTERNAL_MSPROJECT(<Name> <Path>) I've also had dependencies in my MS project and those dependencies were on the projects generated by the CMake so I had to re-add deps every time I do clean build or change the machine I'm working on. It was solved with manually setting GUID for the CMake generated projects: SET(${PROJECT_NAME}_GUID_CMAKE "<GUID>" CACHE INTERNAL "Project GUID") So now I can work with projects generated by CMake and "native" MSVS project without any pain.

Categories : Visual Studio

Visual Studio 2012: Can't add new item to project
Although the class isn't shown in Visual Studio as part of the project, the file still exists in the folder. In solution explorer, click the icon at the top to "Show All Files", then the file should appear in solution explorer, you can right click and select include in project.

Categories : Visual Studio 2012

Visual Studio 2012 crashing with Silverlight 5 project
After 2 days of research, problem solved : I installed VS 2102 EN (english) on a Windows 8 x64 French, because I always use VS in english, not french. That was the problem. I uninstalled VS (no need to uninstall dependencies) and reinstalled it from a french ISO. Problem solved.

Categories : Visual Studio 2012

How to implement Tesseract to run with project in Visual Studio 2010
You need to use the library through the API. Most probably: start by downlaoding the libs ( https://code.google.com/p/tesseract-ocr/downloads/detail?name=tesseract-3.02.02-win32-lib-include-dirs.zip&can=2&q= ). They're compiled with Visual 2008 but it should be enough Use the API directly (example, look at an open source project using it: https://code.google.com/p/qtesseract/source/browse/#svn%2Ftrunk%2Ftessdata ) and read the links from this answer : How can i use tesseract ocr(or any other free ocr) in small c++ project?

Categories : C++

Is there a way via Powershell to add a web service reference to a Visual Studio project?
A Visual Studio project file is simple XML, so you can manually add it in Visual Studio, see what it looks like in the project file, and then look up how to change XML files using PowerShell. For example: http://blogs.msdn.com/b/benjones/archive/2010/07/14/editing-xml-using-powershell.aspx

Categories : Web Services



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.