Tag: visual studio 2010

如何找出此语句生成的实际SQL?

我使用的是VS2010,.NET4和EF4。 我想看看运行它时生成的实际SQL。 另外,这是写这个陈述的最佳方式是什么? 这是我的代码: var cklContactItems = from a in dbTestCenterViews.appvuChecklistExports where a.MarketChecklistID == MCLID && a.checklistSectionID == SID && a.fieldGroupOrder != null orderby a.fieldGroupOrder ascending select new { a.Column1, a.Column2, a.Column3, a.Column4, a.Column5,a.Column1FieldID,a.Column2FieldID,a.Column3FieldID,a.Column4FieldID,a.Column5FieldID,a.fieldGroupOrderLabel };

在c#项目中使用XSD Build任务

如何在ac #project中使用c ++ XSD Task ? 我已经在csproj文件中创建了这样的任务: 但是构建输出说,尽管intellisense在编辑项目文件时为我提供了XSD任务: Error 1 The “XSD” task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is “public” and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly […]

无法执行CVTRES.exe

无法写入输出文件’xxx’ – ‘无法执行CVTRES.EXE。’ 。 我有这个问题。 我重新安装了VS2010,但问题仍然存在。 我也应用了devnev -resetsettings但是徒劳无功。 如何解决这个问题。 提前致谢

C#中的并行处理/并行编程

我需要处理多个函数,并执行返回相同类型记录的结果。 考虑到我的function,我在visual studio 2010下使用c#: class Search{ public list GetrecordsofAAA(string term); public list GetrecordsofBBB(string term); public list GetrecordsofCCC(string term); } 我用这种方式调用函数 list records1 = Search.GetrecordsofAAA(heart); list records2 = Search.GetrecordsofBBB(heart); list records3 = Search.GetrecordsofCCC(heart); 这是系列处理。 如果可能的话,我需要同时填写记录1,记录2和记录3。

如何获得MSI版本?

我试图使用教程中的代码从MSI获取版本而不安装它 ,但是当我尝试将“msi.dll”添加到Visual Studio 2010作为参考时,我收到此错误。 无法加载文件或程序集“msi.dll”或其依赖项之一。 该模块应该包含一个程序集清单。 此文件可能不是托管程序集

更新多个项目中使用的类?

我有一些抽象的类,我可以在多个项目中使用它们。 我一直在研究这些类,优化,添加等等。所以当我在其中一个类中优化某些东西时,我需要将这个新版本复制到我记得使用它的每个项目中。 这不是一个很好的方法,但有更好的方法吗? 谢谢

Crystal报表查看器不会出现在工具箱中 – Visual Studio 2010

我有一个ac #windows窗体应用程序,在安装了适用于Visual Studio 2010的SAP Crystal Report之后(http://www.businessobjects.com/jump/xi/crvs2010/default.asp),我无法在工具箱中看到Crystal Report Viewer。 我究竟做错了什么?

如何遍历某些Outlook子文件夹的所有MailItems

我正在使用Outlook 2007加载项。 我发现一些代码循环遍历所有文件夹,但我无法弄清楚如何在任何给定文件夹内循环以检查MailItem对象(最终,我想将电子邮件保存在别处并修改.Subject属性)。 这是我到目前为止: private void btnFolderWalk_Click(object sender, EventArgs e) { // Retrieve the name of the top-level folder (Inbox) , for // the purposes of this demonstration. Outlook.Folder inbox = Application.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox) as Outlook.Folder; // Cast the MAPI folder returned as an Outlook folder // Retrieve a reference to the top-level folder. if (inbox != […]

无法以inheritance的forms直观地更改DataGridView

我有一个带有DataGridView的WinForms表单。 DataGridView设置为protected 。 当我inheritance该表单时,无法在Visual Studio设计器中更改DataGridView 。 如果我使用Button执行整个操作,它会按预期工作。 有没有办法来解决这个问题? 一些(剪切的)代码(来自DatagridForm.Designer.cs): partial class DatagridForm { protected DataGridView dgData; protected Button button; } 从Inherited.cs: partial class Inherited : DatagridForm { }

错误:无法在服务器上启动调试

我使用visual studio 2010 mvc3设计和开发了我的网站。 我已从我的服务器复制了我的项目,在编辑数据库服务器名称后,我正在尝试运行我的项目。 但它显示错误: 无法在服务器上启动调试。 调试器无法连接到远程计算机。 这可能是因为远程计算机没有退出或防火墙可能阻止与远程计算机的通信。 请参阅帮助或协助“。 请帮我。 提前完成