visual-studio-2010

How to compile C# for multiple processor machines? (With VS 2010 or csc.exe)

独自空忆成欢 提交于 2020-01-01 14:44:28
问题 Greetings! I've searched for compiler (csc.exe) options at MSDN and I found an answer here, at Stackoverflow, about compiling with multiple processors. But my problem is about compiling for multiple processors, as follows. The university where I'm graduating has a 11 machine cluster (which has 6 quad-cores and 5 four-core bi-processed machines). It runs under linux, but I can install MONO there. And instead of compiling with multiple processors or cores, I want to compile for multiple

Windows installer and setup application into one file?

我是研究僧i 提交于 2020-01-01 14:36:10
问题 I have written a application in C# using visual studio, I have made a project set up file which as created to files for me in my debug. The Windows Installer and the setup application are both needed, but i would like to merge them into one, like when you download an app the installer its just one file. Could some one please show me how to do this, or just point me towards a good source. Thanks in advance. 回答1: If you're using Visual Studio's built-in setup project template to generate your

How to loop through all MailItems of certain Outlook subfolders

陌路散爱 提交于 2020-01-01 12:09:09
问题 I'm working on an Outlook 2007 add-in. I found some code to loop through all the folders but I have not been able to figure out how to loop inside any given folder to examine the MailItem objects (ultimately, I want to save the emails elsewhere and modify the .Subject property). Here is what I have so far: 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 =

Passing variable from one form to another in vb.net

試著忘記壹切 提交于 2020-01-01 11:39:10
问题 I've looked this question up 10 times but each answer is too specific to the question. I have two public classes, one per form. The first form has a textbox and two buttons: Public Class frmAdd Public addvar As String Public Sub UltraButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddNote.Click If txtAdd.Text = String.Empty Then MsgBox("Please complete the notes textbox!") Else addvar = txtAdd.Text MsgBox(addvar) Close() End If End Sub Public Sub

Can I combine asp.net 4.0 with classic asp, or can I convert classic asp to asp.net?

半城伤御伤魂 提交于 2020-01-01 10:04:44
问题 I have a website made with Visual Studio 2010 / .net 4 / VB. I really liked the layout of a FAQ system I found because it's simple, but it's in classic asp. So, obviously, I cannot include my master page layouts, but I guess that's okay. But can I convert the FAQ system to asp.net, or is there some tool out there I can utilize? If not, is it okay to have classic asp pages on a asp.net 4.0 website? Any guidance would be truly appreciated! 回答1: I would be better if you convert classic ASP pages

Getting MSBuild and CruiseControl .NET to build and deploy VS2010 database projects

半腔热情 提交于 2020-01-01 09:33:31
问题 I almost have a NAnt script together that will build and deploy VS2010 database projects, but one error stands in my way: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.TSqlTasks.targets(56,5): error MSB4062: The "SqlBuildTask" task could not be loaded from the assembly Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0

Getting MSBuild and CruiseControl .NET to build and deploy VS2010 database projects

二次信任 提交于 2020-01-01 09:33:15
问题 I almost have a NAnt script together that will build and deploy VS2010 database projects, but one error stands in my way: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.TSqlTasks.targets(56,5): error MSB4062: The "SqlBuildTask" task could not be loaded from the assembly Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0

How to resolve Crystal Report version conflict and make them work side-by-side?

左心房为你撑大大i 提交于 2020-01-01 09:31:00
问题 I have VS-2005 and VS-2010 installed. As Crystal Reports is available as a separate download for VS-2010, I downloaded it and installed. My old projects were in VS-2010 which uses Crystal Reports version 10.0. New projects are in VS-2010 whose Crystal Reports version is 13.0. I made a small application in VS-2010 with a single report. When I try to run this project, it displays errors: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL

DownloadFile vs DownloadFileAsync

流过昼夜 提交于 2020-01-01 09:22:24
问题 I'm using WebClient.DownloadFile to download a single file at a time from a web server, however, I want to know if by "The thread is blocked" developers mean that the application won't be responsive? I tried using WebClient.DownloadFileAsync but it doesn't work like DownloadFile works, please clarify, and I can't tell because I'm downloading files off my network, so it pretty much downloads instantly, thanks in advance. PS: Yes I tried googling and reading, couldn't find the answer I need.

Compile check if compiling as static library

落爺英雄遲暮 提交于 2020-01-01 09:21:48
问题 How can i check at compilation if the project is being compiles as a lib ? (static library) Is there some kind of static assert or some other flag i can check? I can't add a preprocessor variable myself, because it's a utility that will be used in other projects across the company. So I'm wondering if there's some preprocessor flag that is is being sent by default or something. I'm using Visual Studio 2010 回答1: There is no such thing in predefined macro list - http://msdn.microsoft.com/en-us