visual-studio-2008

Reference Component Microsoft.CSharp could not be found

孤人 提交于 2019-12-23 11:55:12
问题 I found this problem on my C# project which I started at Visual Studio 2010, when I go to another PC I use 2008, I open the project.csprog: A get or set accessor expected and warning: The referenced component 'Microsoft.CSharp' could not be found. I think is about .NET Framework or Microsoft.CSharp is not located, because it says that: Could not resolve this reference. Could not locate the assembly "Microsoft.CSharp". Check to make sure the assembly exists on disk. If this reference is

Resharper keeps disabling “Show live semantic errors” in Visual Studio 2010

那年仲夏 提交于 2019-12-23 11:39:07
问题 How do I keep Resharper from disabling the "Show live semantic errors" & "Underline errors" options in Visual Studio? It seems that whenever I go and manually enable them, they somehow revert back to disabled after some time - I suspect Resharper of doing this. Is there any remedy for this? 回答1: You have to turn off ReSharper's own code analysis if you want the VS error detection options to be preserved. To do that, go to ReSharper > Options > Code Inspection > Settings, and deselect "Enable

Clean up file names in Visual Studio's tabbed document interface?

£可爱£侵袭症+ 提交于 2019-12-23 10:59:37
问题 Inside a visual studio project I have the following folders (for example) foo/ bar/ LongFolderName/ When I open up a file in LongFolderName/ the tab gets labeled with LongFolderName/L...me.ascx when I'd prefer LongFileName.ascx (omitting the name of the folder). Any way to set Visual Studio to ignore the folder name when labeling the tab? EDIT: here is what my tab bar looks like: http://img355.imageshack.us/img355/7040/tabsmn7.png Notice how the names of my files are truncated past

How do I resolve ambiguity between my project DLL and a DLL in the GAC?

廉价感情. 提交于 2019-12-23 10:58:23
问题 I am currently working on another issue in my ASP.NET MVC project. In an effort to better understand what is happening in the codebase I decided to reference the ASP.NET MVC Source Code project in my own project by adding the solution file to my references. When I did this, I started getting HTTP 404 errors. It just so happens I had a breakpoint set on the OnException() method of the HandleErrorAttribute , otherwise it might have taken a long time to find the actual problem. When I hover over

Changing Visual Studio 2008 New Tab Position

半腔热情 提交于 2019-12-23 10:15:49
问题 One of my pet peeves ever since Visual Studio 2005 (behavior is unchanged in VS 2008) came out was the placement of the new tabs when opened. These opened on the left of current tabs which was the opposite of where new tabs opened in Visual Studio 2003 and beyond. In my opinion opening new tabs to the left of current tabs is counter-intuitive... Most tabbed applications including Firefox and IE7 open new tabs to the right. My question is, is there a configuration setting or hack to make tab

How to get VS2008 to create a different *.DLL name after you have already created the project?

别说谁变了你拦得住时间么 提交于 2019-12-23 10:10:38
问题 To create a project in VS2008 you have to assign the compiled output a name right when you create the project. If you are creating a class library this output is <output name>.DLL. I can change every other name in the project through the VS2008 interface. If I later regret the output's name I cannot find a way to change the project's output *.exe or *.dll name. How does one change the name of the output of a VS2008 project when the project has been created and that output name has been

VB.NET Lambda Expressions

天大地大妈咪最大 提交于 2019-12-23 10:09:10
问题 If I have Visual Studio 2008 and I target a .NET 2.0 application, can I still use Lambda Expressions? My understanding of Lambda Expressions is that its a feature built into the compiler, not the framework, so my conclusion would be that I could use Lambda in .NET 2.0 application. Can someone please tell me if this is so? 回答1: Yes this is completely supported. As long as you do not build an expression tree or otherwise reference System.Core, System.Xml.Linq, etc ... it is perfectly legal to

C# - Listview colum header height (Windows Form)

一个人想着一个人 提交于 2019-12-23 09:57:32
问题 How can I change the height of the column header in a ListView ? (visual studio-2008,windows forms) 回答1: It is not easy but it can be done. The basic strategy is to get the underlying header control from the ListView (using LVM_GETHEADER message), setup a NativeWindow instance on that control, and then listen for HDM_LAYOUT messages. In that message, you can specify the location and size of the header. As the author of ObjectListView mentioned above, I have to say it's much easier to let

How to edit and continue in Visual Web Developer 2008 Express Edition and ASP.NET MVC?

ⅰ亾dé卋堺 提交于 2019-12-23 09:43:04
问题 I've enabled Enable Edit and Continue on the Web Properties page and it's also enabled in my configuration, yet Visual Web Developer 2008 Express Edition refuses to allow me to edit source files of an ASP.NET MVC project. I can edit the aspx file with no problem though. Any ideas what's wrong or what's missing? 回答1: If you are targeting x64 or Any CPU on a 64 bit machine you cannot use edit and continue. It only works when you are targeting x32. I set my Platform target to x32 for the Debug

Can't Compile SSIS Component; Missing Assembly in Visual Studio 2008

不问归期 提交于 2019-12-23 09:36:55
问题 There is no standard control flow task in SSIS to download a file over HTTP. I have tried some workarounds (Execute Process wget, Script Task HttpClientConnection), but have come to the conclusion that thew most robust and reusable way to perform this task is to create a custom component. I have tried to do this by following Ray Gorski's guide, but have run into problem in my development environment. The problem is that Visual Studio 2008 does not recognise the Microsoft.SqlServer.Dts