w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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++

Visual Studio 2013 Browser Link not working for empty ASP.NET project?
Browser Link makes use of SignalR under the covers, so that has a few dependencies: A relatively modern browser (almost anything from IE 7 and onwards) JavaScript to be enabled on the browser The ability for the the browser to talk back to the computer running VS, which is acting as a server. Firewalls/proxies could hurt this. My gut says that since it is SignalR, which has a server, that the server needs to run ASP.NET & thus needs the run time bits their to work. This could be your issue. In addition the web.config file needs to have Debug set to true.

Categories : Visual Studio 2013

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++

How to use MSBuild to build a Visual Studio Setup Project
This works for me: <Exec Command="&quot;$(ProgramFiles)Microsoft Visual Studio 9.0Common7IDEdevenv.com&quot; your.vdproj /build &quot;Debug|AnyCPU&quot;"/> You don't need the space in any cpu and you need to call devenv.com, also assuming you have those build configuration existing?

Categories : Visual Studio 2010

Visual studio 2010 Express- how does one copy project properties?
OK so I figure out...the "add new..." actually really only gives me a blank property sheet and I have to modify it again and save and then I can share it around the projects. Oh my, a bit speechless.

Categories : Visual Studio 2010

Visual Studio 2012/2013 crashes when creating a new custom project type or when closing
The problem is the use of method cascading when calling COM objects in the MPFProj source. I was able to resolve this by modifying the GetActiveConfigurationName method, which is located at around line 431 of Dev12SrcCSharpUtilities.cs. [ Note that I'm using the 2013 version of MPFProj downloaded from here: https://mpfproj12.codeplex.com ] Change the following line: EnvDTE.Configuration activeConfig = automationObject.ConfigurationManager.ActiveConfiguration; to this: EnvDTE.ConfigurationManager configManager = automationObject.ConfigurationManager; EnvDTE.Configuration activeConfig = configManager.ActiveConfiguration;

Categories : Visual Studio

Git .gitignore - Ignore Scripts folder in Visual Studio mvc project
The type of project is determined automatically by Github's Linguist gem. If you want to ignore those scripts on future commits (which you shouldn't do, if they are necessary to your project), your .gitignore file should read like this: Chat/Scripts/* It's also worth noting that even if you change this, unless you remove your scripts from the repository, Linguist will still note them when calculating the language used for the project.

Categories : Github

How to Access Bin Folder of Active Project using visual studio 2010 add in
Environment.CurrentDirectory returns the current working directory. or you can use System.Reflection.Assembly.GetExecutingAssembly().Location

Categories : C#

How do you add a folder to a project in Microsoft Visual Studio Express 2012 for Web?
Browse to the folder your javascript files are in, and drag that folder into your blank solution's Solution Explorer, or right click in the Solution Explorer on the right and hit "Add > Existing Website", then browse to the folder your javascript files are in.

Categories : Javascript

How can I change the Build.Platform property in a Visual Studio project?
Try adding a new build configuration to your project from the solution file (right click it on Visual Studio, properties then go to Configuration Manager. Otherwise you can manually edit the project file (open the *.csproj with notepad) and add back the rule for AnyCpu http://msdn.microsoft.com/en-us/library/ms734788(v=vs.85).aspx. It is likely that if you're working in a team with source control and continuous integration, this has been changed by someone to satisfy a requirement on the build server. Probably the cleanest thing to do is add a custom build configuration for your project and use that one on your solution.

Categories : Visual Studio 2010

Visual Studio 2012 Fails To Build New Project That References Other Projects
Figured it out. Apparently I was missing a reference that was unbeknownst to me. All the other projects were referencing Microsoft's BCL Portability Pack. Once I saw that in NuGet and all projects had it except the new one, I immediately referenced it and now everything builds. That was a fun ghost hunt.

Categories : C#

How to make Visual Studio resolve and include all the dependencies of my project during build?
Basically, using Visual Studio, you can set all of your Solution's Projects to build into the same Output folder and use this folder as your Windows Form application folder (where the application EXE will reside). By doing this, you will coordinate all of the possible assemblies references that your app is depend on. In VS 2012, right-click on a Project => Properties => Select Build (left pane) => Set your Output path: I would select a a solution-level folder as the Output path. And if it's prohibited to perform such a modification at your workplace so I would suggest you to use dependency analysis tools like the following in order to interrogate and gather the appropriate assemblies that your app is depend on and will require at run-time: Dependency Walker NDepend Red-Gate Reflect

Categories : C#

Visual Studio 2012 doesn't build project on run when its dependencies change
It appears that this is the same problem described by these questions: Visual Studio / MSBUILD does not update .lib files when sources are updated Executable not rebuilt but object files recompiled Solution: The intermediate folder for any VS project is not allowed to be under %TEMP% or %TMP%, and also may not be named "temp" (or maybe even contain the substring "temp"?).

Categories : Visual Studio 2012

Passing custom project properties from Visual Studio Extension during build
You can request service IVsBuildPropertyStorage, it has following method: SetPropertyValue Used by a project subtype to set an MSBuild property value. Something like this: EnvDTE.Project proj = ...; var sol = Package.GetGlobalService(typeof(VsSolution)) as IVsSolution; IVsHierarchy hier; sol.GetProjectOfUniqueName(p.UniqueName, out hier); var storage = hier as IVsBuildPropertyStorage; storage.SetPropertyValue(..); More information: http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.interop.ivsbuildpropertystorage.aspx

Categories : Visual Studio

How to build visual studio solution file .sln command line with selected project
You could make a solution containing just the projects you want to build. Alternatively you could make an MSBuild .proj file that collects together the projects you want to build: <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <ItemGroup> <ProjectsToBuild Include="X.csproj;ChildY.csproj" /> </ItemGroup> <PropertyGroup> <Configuration>Release</Configuration> </PropertyGroup> <Target Name="Build"> <MSBuild Projects ="@(ProjectsToBuild)" ContinueOnError ="false" Properties="Configuration=$(Configuration)"> <Output ItemName="OutputFiles" TaskParameter="TargetOutputs"/> </MSBuild> </Targe

Categories : Visual Studio 2010

How to configure Visual Studio 2012 Database Project to Build deployment .sql file
If you're trying to do this automatically, you'll want to use the SQLPackage command to generate a script. If you want to do this within the IDE, publish the database and choose the option to generate a script instead of publishing the changes. I'll usually build the project first with msbuild. That will generate a dacpac against which I can run the SQLPackage command. My batch file looks something like this: msbuild .MyDBMyDB.sqlproj /t:build /p:Configuration="Local" sqlpackage /a:DeployReport /tsn:FTPROD /sf:.MyDBsqlLocalMyDB.dacpac /pr:.MyDBPublishProduction.publish.xml /op:.ReleaseMyDB-Production.xml sqlpackage /a:script /tsn:DBServer /sf:.MyDBsqlLocalMyDB.dacpac /pr:.MyDBPublishProduction.publish.xml /op:.ReleaseMyDB-Production.sql The first line builds the project. The second cr

Categories : Sql Server

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

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++

Visual Studio 2010 - Post-build event - cd "$(ProjectDir)" exits with code 1 when project is loaded from a network drive
CD is a command used by your shell command interpreter (CMD.EXE). You cannot pass a CD \servershare command to CMD.EXE. Instead I suggest to map your share name to a drive letter like (from the command prompt) NET USE Z: \servershare /PERSISTENT:YES Now you could write a batch file that uses your Z: drive and executes the commands required For example CD Z:projectfolderin elease copy *.exe z:projectfolderdistribution /Y You could also pass the predefined macros to this batch file as arguments and use them inside the batch file.

Categories : Visual Studio 2010

Visual Studio "Could not copy" .... during build
the .vhost.exe is a debugger process, so it appears that the process being debugged hasn't closed properly. Chances are you have a bug that's keeping it alive and are not stopping the debug process correctly - there are options to detach from the process when you click 'stop debugging' instead of actually killing the debugger so maybe you have that set. But that's the problem - the file you're trying to copy over is locked (ie still being used) by the OS so its preventing the copy. Ensure that file is free and you'll be able to copy.

Categories : Visual Studio 2012

when I run Ant in cmd it is showing me error of build.xml not exist while I have build.xml file in my project folder
Thanks you all for your great help, I have resolved that error .. It was related to the path of the jar files , I provided incorrect path to the jars. This was line 70 : - <javac debug="true" destdir="${test.dest}" srcdir="${test.src}" target="1.7" classpath="${test.classpath}"> this is related to the path to the jars and in the top line of my file I did provided this path - D:All jars , while all required jars was not in this folder, now I updated the jar folder and it is working fine now.

Categories : Ant

How can I build executables which can be run in Window XP using Visual Studio 2012 and Intel Compiler XE 2013?
I found a solution in Intel official articles. http://software.intel.com/en-us/articles/linking-applications-using-visual-studio-2012-to-run-on-windows-xp

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++

How can I simply modify the path for the entire requests package within a libraries folder in my appengine project
I have all my third party libs in a lib dir The I just include sys.path.insert(0,'./lib') in appengine_config.py which is loaded before any of your code. If find it needs to be inserted at the beginning of sys.path rather than at then end if you use specific versions of libs like webob that are not part of the appengine available versions. Then you don't have to modify any of the libraries etc.... This is pretty standard python behaviour. In a normal desktop install situation you are installing vie easy_install which sticks stuff in places like site-packages and setups paths etc.... but if you aren't using any of that, and you can't with appengine you have to do the path manipulation yourself.

Categories : Python

Visual Studio: How to "Copy to Output Directory" without copying the folder structure?
Keep them in $(ProjectDir)Lib, but add those files "As a link" to the root of your csproj. Now they will get copied to binDebug (or whatever other output folder) without being in lib.

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

How to build standalone SDL project with visual C++?
If you have an EXE, then your program is compiling. Most likely in debug mode, the program is running using a specific directory as the current working directory (CWD), but when you run it as standalone, the CWD is different. The CWD affects both the DLL that can be loaded as well as the search of any file that uses a relative path (that is, not starting with a [back]slash). That is probably your problem: textures, graphics, configuration files, fonts... My advise is to set the CWD in the debugging runs (there is an option for that) to be exactly the same than that of the EXE, that is the default when you run the EXE. Then you will be able to debug your crash.

Categories : C++

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

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#

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

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

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

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

Add an extra lib folder dependency to build sbt in a lift project
You can use sbt's Path API to get all jars in your directory. Edit: a shorter version using .classpath: unmanagedJars in Compile ++= (file("[Path to My Project]/lib/") * "*.jar").classpath which is more or less equivalent to: unmanagedJars in Compile ++= Attributed.blankSeq((file("[Path to My Project]/lib/") * "*.jar").get) (Attributed is necessary because unmanagedJars is a setting of type Seq[Attributed[File]] and not Seq[File])

Categories : Scala

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#

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++



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