visual-studio-2012

I can't execute a project on Visual Studio 2012

邮差的信 提交于 2019-12-19 05:01:22
问题 I am doing this Robosapien Kinect project in C# ( http://www.youtube.com/watch?v=TKpO5F8LsCk ) and I zipped the code source form here https://github.com/fatihboy/Robosapien and I don't know why that when I open the KinectRopsapien project with Visual Studio 2012 and I run and debug the MainWindow.xaml.cs window, the window that should show what the Kinect is filming is not opening and there is blue bar on the bottom saying "Ready". I have Kinect for Windows SDK 1.7 installed on my computer.

I can't execute a project on Visual Studio 2012

那年仲夏 提交于 2019-12-19 05:00:59
问题 I am doing this Robosapien Kinect project in C# ( http://www.youtube.com/watch?v=TKpO5F8LsCk ) and I zipped the code source form here https://github.com/fatihboy/Robosapien and I don't know why that when I open the KinectRopsapien project with Visual Studio 2012 and I run and debug the MainWindow.xaml.cs window, the window that should show what the Kinect is filming is not opening and there is blue bar on the bottom saying "Ready". I have Kinect for Windows SDK 1.7 installed on my computer.

.NET Release code very slow when running a method for the first time. How to fix it withough NGen?

烂漫一生 提交于 2019-12-19 04:09:30
问题 I have deployed a application in release mode (x64) which I expected to be fast, and I noticed that there is a severe slowdown whenever a new method, or set of methods is executed for the first time. When I say severe I mean 100-200 ms to execute the first time and it takes well under 1 ms after that. From what I found, this seems to be due to the JIT compiler which is supposed to compile methods the first time they are run. I expected some delay from this, but 100 ms is a disastrous delay in

Error downloading prerequisites after publishing ClickOnce application from VS 2012

自古美人都是妖i 提交于 2019-12-19 03:57:17
问题 I published a ClickOnce application from Visual Studio 2012, and selected the .NET 4.0 runtime and Microsoft Report Viewer 2012 as prerequisites. I also selected to download the prerequisites from the vendor's website. When I try to install the application on a client PC, I receive the following error: Setup has detected that the file 'C:\Users\MyUsername\AppData\Local\Temp\VSD537C.tmp\DotNetFX40\dotNetFx40_Full_setup.exe' has changed since it was initially published. The log provides no

How to extract common/similar code blocks to function in Visual Studio C#

蓝咒 提交于 2019-12-19 03:44:10
问题 I want to select code, e.g. doSomething(myEnum.firstThing) doSomethingElse(myEnum.firstThing) evenMoreStuff(myEnum.firstThing) and convert it to a function GroupCommonStuf(myEnum.firstThing) which would look like: GroupCommonStuff(myEnum id) { doSomething(id) doSomethingElse(id) evenMoreStuff(id) } Preferably it would catch any code that is: doSomething(myEnum.secondThing) doSomethingElse(myEnum.secondThing) evenMoreStuff(myEnum.secondThing) and convert it to GroupCommonStuf(myEnum

Visual Studio 2012 asp net mvc 3 project razor view

烈酒焚心 提交于 2019-12-19 03:44:09
问题 I have problem with intellisense in my asp net mvc 3 project in new visual studio 2012 RC. If I open VS2010 SP1 asp net mvc project in VS2012, cshtml view like this one : @model Intranet.Web.ViewModels.Login.LoginVM @{ Model. // dynamic expression - This operation will be resolved at runtime } My configuration : Windows 8 x86(x64 fail too), VS 2012 and 2010SP1 installed. So, is this bug? Thanks 回答1: Add <add key="webpages:Version" value="1.0" /> to <appSettings> in Web.config. Otherwise,

VS2010 and VS2012 “Script Documents” section never appears, and I can't debug JavaScript

梦想的初衷 提交于 2019-12-19 03:38:13
问题 Tools: Windows 7, Visual Studio 2010 and 2012, IE 9, ASP.NET 4.0, MVC4 Until a couple of days ago I had been able to debug by using the Script Documents section in the Solution Explorer. Now, the Scripts Documents section does not appear when Start Debugging (F5). I do have IE set as the default browser. Using "debugger;" has no effect. Configuration is set to "Active (Debug)." Silverlight debugging is off. I have 'repaired' the Visual Studio 2010 inatallation. I have no idea how to correct

Oracle database TNS The value's length for key 'data source' exceeds it's limit of '128'

限于喜欢 提交于 2019-12-19 03:36:32
问题 So I have a connection string to an Oracle Database essentially I copied it straight from sql developer and then cut out the white space. I later programmatically add in the user name and password.The problem is that when I try to open an SQLConnection object. I get the error: The value's length for key 'data source' exceeds it's limit of '128' I don't really know much about oracle TNS connections. I used this connection string because it worked in the wizard when I pasted it in and did test

Is there any way to call custom code when publishing?

非 Y 不嫁゛ 提交于 2019-12-19 03:31:28
问题 We have quite a large site now, build in C#/Asp.Net. We've got two publishing profiles, one for Staging and one for Production. They have been made using standard Web Deploy publish profiles. What we now want to do is to send out an email any time we publish to Production. What I would like to do is find some sort of post publish method that I can hook into. Sort of like the Post-build event, except for publishing instead. Is this possible? 回答1: Although I haven't tested it out there is some

Is there any way to mass organise usings in Visual Studio 2012?

删除回忆录丶 提交于 2019-12-19 03:11:25
问题 In Visual Studio 2010 I am aware you could use the PowerCommands extension to Right Click->Project and 'Remove and Sort Usings', I am also aware you can organise usings on a single file basis on the right click context menu. I did find instructions to create a new macro which executed the organise usings command over your entire project to do this, however didn't get far with that - as I believe macros are not supported in Visual Studio 2012. Anyone have any ideas on how to do this en-mass?