visual-studio-2012

Visual Studio/ NuGet missing references

﹥>﹥吖頭↗ 提交于 2019-12-21 07:04:31
问题 I had some problems with my solution's references since somebody went and messed up NuGet... restoring from source control rendered the projects unloadable, and I had to play around a bit to finally get things to load. When I was finally able to get my projects to load properly (after one heck of a headache), I had a pretty big experimental mess to clean up, and now nothing builds. Nuget thinks my dependencies are installed. Visual Studio disagrees. What do I have to do to make NuGet and

How to change border width and color of “highlight current line” in Visual Studio 11

廉价感情. 提交于 2019-12-21 07:04:19
问题 I have been able to change the background color after installing the updates by changing Tool / Options / Environment / Text Editor / Highlight Current Line (Active) Is there a way to change the highlights border width or color? I like having the highlight so I would prefer not to just disable it. But it would be nice to either eliminate the border, make it smaller or change the color. 回答1: Seems to be this behavior was fixed since original answer was written. So answer needs update and here

Unable to add service in WcfTestClient when copy to a different machine

南笙酒味 提交于 2019-12-21 07:02:42
问题 I'd like to run WcfTestClient (one that's included with VS2012) on a different machine without installing VS2012. Is this possible? On the machine I've installed .NET 4.5 but when I try to add web services it gives me the following stack trace: ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Tools.Common.SdkPathUtility.GetRegistryValue(String registryPath, String registryValueName) at Microsoft

NuGet VS 2012 ServicePointManager does not support proxies with the https scheme

*爱你&永不变心* 提交于 2019-12-21 06:56:37
问题 I have recently upgraded from VS2012 RC to RTM, and since the upgrade to RTM, I can no longer access nuget. I receive the following error in the Manage NuGet Packages window. The ServicePointManager does not support proxies with the https scheme. I looked at the solution offered here in a previous stack overflow question, but it does not apply to me as I am not behind a firewall (certainly not supposed to be and verified by http://whatismyipaddress.com/proxy-check). I can also see the RSS

Getting site under construction message after azure webapp deployment

假如想象 提交于 2019-12-21 06:55:24
问题 I had a network failure while publishing (using visual studio webdeploy ) my webapp to azure. Later i tried again, Then i got the below error message. Error 5 Web deployment task failed. (Web Deploy cannot modify the file 'NewRelic.Agent.Core.dll' on the destination because it is locked by an external process. In order to allow the publish operation to succeed, you may need to either restart your application to release the lock, or use the AppOffline rule handler for .Net applications on your

How can I add a note to a Visual Studio bookmark or line?

空扰寡人 提交于 2019-12-21 06:48:26
问题 When I am in the middle of debugging I often find more than one area that can be improved (or fixed) and I like to mark them in such away that I can come back later and make the improvement. Currently I add a bookmark to the line but this can't include any notes that can be used to remind me why the bookmark was there (you can change the name of the bookmark but this isn't enough). I suppose I really want to be able to add a TODO to the code while the code is running but although Edit and

Entity Framework 5.0 EntityObject Generator not available in Visual Studio 2012 RC?

可紊 提交于 2019-12-21 06:45:34
问题 Carry over from social.msdn.microsoft.com... http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/4993d0bf-94e8-4d14-aff1-3458b4ad467f?prof=required Original Post I try to migrate a project from 2010 EF 4.3.1 (modified EntityObject generator template) up to vs 2012 rc, ef 5.0 rc and .Net 45 rc. Painfully, my old T4 template doesnt work any longer. Where can I get the correct template to migrate it to EF 5.0 ? I can compile the old project, but after starting the app I

App's .exe file missing .NET TargetFramework, but only on clean builds

强颜欢笑 提交于 2019-12-21 06:23:34
问题 I have an app I'm converting from VS2008 to VS2012. The app is mixed mode and made of multiple projects. After upgrading, the app crashes on run as soon as managed code is entered with this exception: An unhandled exception of type 'System.TypeInitializationException' occurred in PresentationFramework.dll Additional information: The type initializer for 'System.Windows.Application' threw an exception. The deepest inner exception is: "String cannot be of zero length. Parameter name:

Why won't “extern template” work with shared_ptr?

独自空忆成欢 提交于 2019-12-21 05:15:17
问题 I had the (seemingly) bright idea of using extern template class std::shared_ptr<SomeWidelyUsedClass> in stdafx.h immediately after #include <memory> in order to prevent std::shared_ptr<SomeWidelyUsedClass> from being redundantly instantiated in hundreds of files, figuring I could place template class std::shared_ptr<SomeWidelyUsedClass> in a single .cpp in order to force a single instantiation and hopefully save on compile/link time. However, examination of the resulting .cod and .obj files

Team Foundation Service Fatal when git push

两盒软妹~` 提交于 2019-12-21 05:06:16
问题 I have added Source Control (git) to my project. I have also created a project at Team Foundation Service with git . The project at Team Foundation Service is connected to my Visual Studio . I have Enabled alternate credentials . References Ref1 and Ref 2 When i run; git remote add origin https://yourname.visualstudio.com/DefaultCollection/_git/ProjectName Then: git push origin master I get this: Username for 'https://yourname.visualstudio.com':` After i enter username: Password for 'https:/