visual-studio-2012

Changing URL in a CodedUI Test [closed]

a 夏天 提交于 2019-12-21 17:37:03
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have created a codedui test in Visual Studio 2012. The problem is that I need to be able to change the URL occasionally that opens

Web Deploy to Server with MSBuild

自作多情 提交于 2019-12-21 17:29:35
问题 I have a publish profile set up in a VS 2012 project. When I right click on the project in VS, select Publish and click on the [Publish] button, it publishes the project to the server using the settings provided in the Publish Profile. When I use msbuild and the command line, with the following syntax: msbuild.exe .\mvc.csproj /p:PublishProfile=DevServer /p:DeployOnBuild=True /p:Password=MyPassword /p:AllowUntrustedCertificate=true Then it builds the project, and gives me a message: Package

Separate cache per browser?

二次信任 提交于 2019-12-21 17:16:09
问题 Currently I'm setting the cache path as follows: CefSettings settings = new CefSettings(); settings.CachePath = mycachePath; Cef.Initialize(settings); var browser = new ChromiumWebBrowser(myUrl); The above works. However, I need to login to a website with 2 different accounts simultaneously but it uses the same cookie container. So if I login with one account and then the other, the first account is overridden. Is it possible to have a have a cache path per browser? Or is there a better way

adding Outlook 2013 mailitem contextmenu. VS 2012 C#

梦想的初衷 提交于 2019-12-21 17:12:05
问题 Hi i want to add a new button to outlook 2013 mailitem contextmenu. I use VS 2012 C#. I seached internet but cant find a way to do this, im upgrading an Outlook 2010 addin which modified the contextmenu. 回答1: In visual studio on project select add new item. Choose Ribbon(XML). add following to XML file: <contextMenus> <contextMenu idMso="ContextMenuMailItem"> <menu id="ArcIT" label="ArcIT"> <button id="MyContextMenuMailItem" label="ContextMenuMailItem" onAction="OnMyButtonClick"/> </menu > <

Whats the proper way to link Boost with CMake and Visual Studio in Windows?

不打扰是莪最后的温柔 提交于 2019-12-21 16:53:32
问题 I am trying to generate some Boost 1.58 libraries that I need (chrono, regex and thread) for Visual Studio 2012 and link the libraries with CMake. I have real problems for CMake and Visual Studio to find or link the libs, depending on the configuration I set. I am finally using the following configuration: bjam.exe --link=static --threading multi --variant=debug stage But this doesn't seem to generate static libs. How should I generate the libs and search them with CMake in order for Visual

VS2012 compiler Strange memory deallocation issues

旧城冷巷雨未停 提交于 2019-12-21 13:05:14
问题 I'm having a strange problem with the VS2012 compiler that doesn't seem to show up in GCC. The deallocation process ends up taking minutes rather than seconds. Does anyone have any input on this? Step debugging shows a noticeable hang at calls to RtlpCollectFreeBlocks(). I have this problem in both debug and release mode. I'm running Windows 7 32-bit, but I have the same problem on 64-bit 7. #include "stdafx.h" #include <iostream> #include <stdint.h> #include <cstdlib> #define SIZE 500000

c++ std::unique_ptr won't compile in map

廉价感情. 提交于 2019-12-21 12:36:48
问题 I'm currently trying to store a std::unique_ptr in a std::unordered_map, but I get a weird compile error. Relevant code: #pragma once #include "Entity.h" #include <map> #include <memory> class EntityManager { private: typedef std::unique_ptr<Entity> EntityPtr; typedef std::map<int, EntityPtr> EntityMap; EntityMap map; public: /* Adds an Entity */ void addEntity(EntityPtr); /* Removes an Entity by its ID */ void removeEntity(int id) { map.erase(id); } Entity& getById(int id) { return *map[id];

Unable to install Windows Web Services API for Remote Debugging with VS2012

半腔热情 提交于 2019-12-21 12:17:24
问题 I'm trying to remote debug using visual studio 2012 and windows server 2008 not R2. I recieve the following error when setting up the remote debugger. Has anyone else been able to install 2012 remote debugger on Windows server 2008 that is not R2? This is the full error message after I hit configure remote debugging. 回答1: According to VS 2012 system requirements remote debugging is not supported on Windows Server 2008. 回答2: At this MS forum post Brad Sullivan the Program Manager for Visual

How to sign manually an exe file with developer licence for Windows 8 RT

风格不统一 提交于 2019-12-21 12:15:28
问题 I make an exe file for Windows 8 RT. But when I want to run, show an error message: "Windows cannot verify the digital signature for this file. ..." I get a developer licence for windows 8 RT . With this license visual studio 2012 can remotely deploy and run metro application in my surface. But I want to sign manually my exe file with this certificate using signtool.exe : signtool.exe sign -s CertStoreName -n "subject name" C:\mytest.exe My problem is that I don't know the "CertStoreName" and

Visual Studio 2012 Code Coverage

爱⌒轻易说出口 提交于 2019-12-21 11:03:13
问题 We have very complex web based product including solid number of web services etc. I'm trying to collect code coverage for all assemblies in our product using VS 2012 command line utility vstest.console.exe. It is pretty easy to collect code coverage for Unit Tests, however, there is no flag or switch that indicates that I can attach the process to IIS or collect info for web services (both client and server sides). Any suggestions? 回答1: Detailed instructions for collecting code coverage from