visual-studio-2012

Move Semantics with unique_ptr

[亡魂溺海] 提交于 2020-12-29 05:55:19
问题 I am using Visual Studio 2012 Update 2 and am having trouble trying to understand why std::vector is trying to use the copy constructor of unique_ptr. I have looked at similar issues and most are related to not having an explicit move constructor and/or operator. If I change the member variable to a string, I can verify that the move constructor is called; however, trying to use the unique_ptr results in the compilation error: error C2248: 'std::unique_ptr<_Ty>::unique_ptr' : cannot access

How to open two Solution in one Visual Studio IDE?

时间秒杀一切 提交于 2020-12-25 10:56:42
问题 I am working on two different solutions, say, Solution1 and Solution2 . As these two solutions are dependent upon each other, I have to open two separate Visual Studio while developing. It is really difficult to switch between these Visual Studio. I can't merge these two solutions into one as Solution1 is being used by other projects and all are part of Source Control. Just wondering, can I open both solutions in the same Visual Studio IDE? I searched a lot but no luck. Any suggestions on

How to open two Solution in one Visual Studio IDE?

半腔热情 提交于 2020-12-25 10:55:52
问题 I am working on two different solutions, say, Solution1 and Solution2 . As these two solutions are dependent upon each other, I have to open two separate Visual Studio while developing. It is really difficult to switch between these Visual Studio. I can't merge these two solutions into one as Solution1 is being used by other projects and all are part of Source Control. Just wondering, can I open both solutions in the same Visual Studio IDE? I searched a lot but no luck. Any suggestions on

How to open two Solution in one Visual Studio IDE?

亡梦爱人 提交于 2020-12-25 10:54:21
问题 I am working on two different solutions, say, Solution1 and Solution2 . As these two solutions are dependent upon each other, I have to open two separate Visual Studio while developing. It is really difficult to switch between these Visual Studio. I can't merge these two solutions into one as Solution1 is being used by other projects and all are part of Source Control. Just wondering, can I open both solutions in the same Visual Studio IDE? I searched a lot but no luck. Any suggestions on

Can postsharp aspects be used on website projects?

泄露秘密 提交于 2020-12-12 11:39:07
问题 I'm trying to use a PostSharp aspect in a website project in VS2012. It seems to work fine when I set up a web application project, but when I apply the aspect attribute to a method on a page in the website project it compiles and runs fine, but my OnMethodBoundaryAspect never gets hit. I tried setting breakpoints and logging from the aspect methods. Does PostSharp support website projects? if so, what am I missing? Please no comments about why I want to use a website instead of a web app.

How to include custom folders when publishing a MVC application?

只谈情不闲聊 提交于 2020-12-04 18:30:49
问题 I have an "Uploads" folder with logos within in. I would like the VS2012 one-click publish to include this folder. Currently it is not. How can I achieve this? 回答1: I believe you need to set the folder's "Build Action" to "Content": What are the various "Build action" settings in Visual Studio project properties and what do they do? 回答2: I did this for a web api project (not dot net core) which had Angular 6 as a front end. My visual studio version was 2017. I had created a wwwroot folder

How to include custom folders when publishing a MVC application?

心不动则不痛 提交于 2020-12-04 18:30:47
问题 I have an "Uploads" folder with logos within in. I would like the VS2012 one-click publish to include this folder. Currently it is not. How can I achieve this? 回答1: I believe you need to set the folder's "Build Action" to "Content": What are the various "Build action" settings in Visual Studio project properties and what do they do? 回答2: I did this for a web api project (not dot net core) which had Angular 6 as a front end. My visual studio version was 2017. I had created a wwwroot folder

How to include custom folders when publishing a MVC application?

守給你的承諾、 提交于 2020-12-04 18:30:13
问题 I have an "Uploads" folder with logos within in. I would like the VS2012 one-click publish to include this folder. Currently it is not. How can I achieve this? 回答1: I believe you need to set the folder's "Build Action" to "Content": What are the various "Build action" settings in Visual Studio project properties and what do they do? 回答2: I did this for a web api project (not dot net core) which had Angular 6 as a front end. My visual studio version was 2017. I had created a wwwroot folder

How do I reference instead of copy js files from a Nuget package at build time in TeamCity?

孤人 提交于 2020-12-01 07:30:06
问题 I've got a packages.config file checked into source control. This specifies the exact version of the Nuget dependency I want. We have our own NuGet repository. We are creating these NuGet packages ourselves. <packages> <package id="Dome" version="1.0.0.19" targetFramework="net45" /> <package id="Dome.Dojo" version="1.0.0.19" targetFramework="net45" /> </packages> These packages have some JavaScript files which when you add the Nuget package as a reference in Visual Studio are copied to the