visual-studio-2010-sp1

Visual Studio custom tool for code generation… how do I find out what's going wrong?

ぐ巨炮叔叔 提交于 2019-12-06 03:46:45
问题 I'm trying to create a custom tool for code generation in Visual Studio 2010. First I register it: "$(FrameworkSDKDir)Bin\NETFX 4.0 Tools\gacutil.exe" /if "$(TargetPath)" Then I add it via a reg key: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\CLSID\{6A96476E-74F3-4AB3-9CCA-F15EC6104D84}] "RuntimeVersion"="v4.0.30319" "Class"="MapBuildTool.MapFileGenerator" "Assembly"="MapBuildTool, Version=1.0.0.0, Culture=en-US, PublicKeyToken=7d8abca94a1e38ae" "ThreadingModel"=

#if DEBUG Always True for DEBUG and RELEASE modes

泄露秘密 提交于 2019-12-06 00:28:09
问题 For some reason, Any code like: #if DEBUG CallSomeMethod(); #endif Is always true regardless of debug or release mode. Any ideas why, and what setting I can use to turn the feature on or off? For the project, define DEBUG constant is set to true. Thanks. 回答1: You should be able to select the release mode in your project properties. Right click your project, select Properties and click the build tab on the left of the window. From there, you can uncheck the "define DEBUG constant" box. Make

Trying to Add Resource in Visual Studio 2010 Pro SP1 results in “The operation could not be completed. Unspecified error” message with C++ project

白昼怎懂夜的黑 提交于 2019-12-05 18:35:24
I'm using Windows XP Professional SP3 and recently switched to Visual Studio 2010 Professional SP1 to work on a C++ project. If I try to right-click on a project inside Solution Explorer and select "Add" >> "Resource...", I get this error popup window: "The operation could not be completed. Unspecified error" And then the only option is to click "OK". Anyone else encountered this? I had this same problem. Right clicking on the project, selecting Unload Project , then right clicking again and clicking Reload Project fixed it. So I'm not 100% sure of the exact reason for this, but it had

VS2010 SP1 unit tests targeting 3.5 framework fail if using private accessor

这一生的挚爱 提交于 2019-12-04 11:35:58
I converted a solution from VS2008 to VS2010 SP1, and changed the unit test project to target the 3.5 framework. Other than having to fix a few references in the unit test project, everything worked ok and the solution built successfully. Most of the tests run successfully, but there were a handful that failed. The ones that failed are using a private accessor. Personally, I'd rather just remove these tests since I don't think they're necessary, but as long as it reveals a potential bug in SP1, I thought I'd see if anyone could figure out a work-around. The error message that I receive when

Visual Studio custom tool for code generation… how do I find out what's going wrong?

冷暖自知 提交于 2019-12-04 07:15:24
I'm trying to create a custom tool for code generation in Visual Studio 2010. First I register it: "$(FrameworkSDKDir)Bin\NETFX 4.0 Tools\gacutil.exe" /if "$(TargetPath)" Then I add it via a reg key: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\CLSID\{6A96476E-74F3-4AB3-9CCA-F15EC6104D84}] "RuntimeVersion"="v4.0.30319" "Class"="MapBuildTool.MapFileGenerator" "Assembly"="MapBuildTool, Version=1.0.0.0, Culture=en-US, PublicKeyToken=7d8abca94a1e38ae" "ThreadingModel"="Both" "InprocServer32"="C:\\Windows\\SysWOW64\\mscoree.dll" @="MapBuildTool" [HKEY_LOCAL_MACHINE\SOFTWARE

Microsoft VisualStudio TestTools UITest dll

感情迁移 提交于 2019-12-04 05:13:02
I need to find Microsoft.VisualStudio.TestTools.UITest.Common.dll Microsoft.VisualStudio.TestTools.UITest.Extension.dll Microsoft.VisualStudio.TestTools.UITest.Extension.Firefox.dll Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.dll Microsoft.VisualStudio.TestTools.UITesting.dll Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll Where are these dll located so I can reference it on my project and i am using visual studio 2010 professional. For Visual Studio 2013, CodedUI is only available in the premium and ultimate editions. For Visual Studio 2015, it's only available

Visual Studio 2010 SP1 incompatible with Windows 8?

做~自己de王妃 提交于 2019-12-03 07:12:14
I ran Windows 8 Upgrade Assistant on my laptop today, and I saw something very interesting. Visual Studio 2010 SP1 is not compatible with Windows 8, but Visual Studio 2010 (no service pack) is compatible. Does Visual Studio 2010 SP1 work on Windows 8? If not, are there just a few specific functions that do not work correctly, or does it just crash and burn and become unusable? Compatibilty Center listed out that Microsoft Visual Studio 2010 SP1 is not compatible with Windows 8. But Visual Studio 2010 Ultimate SP1, Visual Studio 2010 Professional SP1, Visual Studio 2010 Premium SP1 are

Is it possible to use custom host headers / bindings with IIS7 Express?

落爺英雄遲暮 提交于 2019-12-03 05:54:57
问题 I'm trying to configure a new ASP.NET MVC3 using IIS7 express (on my local development machine) to use a custom domain name . eg. my local dev machine. kick open my web browser goto http://dev.www.mydomain.com my visual studio mvc project kicks in I've hacked my hosts file to include (yes, i saved the file .. which also meant i had to have admin rights enabled ... 127.0.0.1 dev.www.mydomain.com I just can't figure out how to use IIS7 express to get configured to do this. I went to MVC Project

Visual Studio 2010 SP1 Performance

心不动则不痛 提交于 2019-12-02 20:30:49
I've noticed since installing Visual Studio 2010 SP1 that I'm having huge performance issues. It will randomly freeze up on me quite a bit. I had no performance issues with Visual Studio 2010 before the upgrade. The only add-on I have running is ReSharper. I'm wondering if anyone else is experiencing performance issues? If so have you found a way to fix them? I emailed ReSharper support and they were helpful enough to point out that there is a known issue with the Productivity Power tools add-on not playing nice with ReSharper. They asked me to disable the Productivity Power Tools and see if

VS2010 Express missing devenv.exe so I can't fix “project out of date” issue

允我心安 提交于 2019-11-30 18:41:33
I'm actually trying to fix this issue where my projects are always out of date by using the steps outlined in this answer to enable system logging. However I can't find devenv.exe.config or the matching .exe file anywhere on my machine let alone in either C:\Program Files or C:\Program Files (x86) . I'm running Windows 7 SP1 (which I presume isn't particularly relevant) and VS2010 Express SP1. I was thinking that maybe devenv isn't available in the Express version but I can't find any info to either confirm or deny my theory. Can anyone suggest why I don't have devenv.exe and whether I should