Answer Questions
Kirill Tropin CA1502 : Microsoft.Maintainability : Function has a cyclomatic complexity of 27. Rewrite or refactor
I have this warning with fxcop... and don't really know how i can fix it. CA1502 : Microsoft.Maintainability : Function has a cyclomatic complexity of 27. Rewrite or refactor the method to reduce complexity to 25. It's a methods that has like alot of if/if else How can i refactor something like that .... Basically this rule is stating that you should try to break this method up into a number of smaller discrete methods as it appears that it is very complex and could be trying to do too much. Complex methods are not only harder to maintain but are also more likely to contain bugs. I've check the strategy pattern ... and it seems that i can't avoid the if/else if .. Cuz i still need to che ...Show All
Ranal Where can I find some custom rules for FxCop?
Hi, I would like to find out, where can I find a place where developers share their own custom rules for FxCop. Wojtek See the FAQ for locations of custom rules. ...Show All
4B7 TF30059 TF53010 TF53002 TF30040 -- Previously working Dual Tier installation no longer working
We are have severe fatal errors with TFS when I got to work this morning, starting sometime last night. I am having no luck searching for answers to these error codes and am having a bummer of a time trying to troubleshoot. Any ideas These messages were occurring repeatedly all night long so much that it filled up more than 16 mb of event log and unfortunately, that’s a rolling 16mb, so I lost scope on when the first one occurred and if there were any other errors at the beginning of this trouble. Also below is the output from our two tiers where I ran msiinv.exe (in case that is useful). Any ideas --- Event Type: Error Event Source: TFS Services Event Category: None Event ID: 3014 ...Show All
sham_huss More on Random Numbers
Here's a good one for you. I have 5 variables, let's call them 'a', 'b', 'c', 'd', and 'e' Each will be assigned a number RANDOMLY from 0 through 4. However, each will hold a unique value. Only one variable can be 0, only one can be 1, etc. and so-on. How do I do this Thanks Ted I think and would prefer ahmedilyas' answer over any shuffle sorting any day. Speed is pretty much irelavant, and it gives an immidiate random result: i.e. you pick one and already you know it's random. With a shuffle sort, you have to complete the shuffle before you know you have a random sort (and when is enough enough ) Just to reiterate, you have a collection of items that you access by index. ...Show All
alka_mehta Using TabPages as MDI - need some help please
I am working on an application where I want to use a TabControl with multiple TabPages to display multiple documents. My application starts up with TabPage1 having a certain set of controls (a few textboxes, a datagridview & a button). I want to be able to have an event (a button click perhaps) cause a new TabPage to be added to the TabControl & be populated with the same controls, in the same locations, that are on TabPage1 (which were created at design time). I have pretty much figured out how to add the new TabPages, but here's where I get stuck: 1) How do I duplicate the controls that are on TabPage1 to the new TabPages 2) How do I address the controls that will be added to the new TabPages ie. the DGV that is TabPage1 is call ...Show All
pcompassion Re-assigning bugs and team projects
We are currently using TFS for the first time, and considering using it for bug tracking. However, I have a question about the bugs. We are currently developing a new web site using a SOA architecture and have a Team Project for the services and a team project for the web site GUI projects. Our QA team isn’t currently set up to test just the services and as such they will be testing the deployments using the GUI, which will result in all the bugs being submitted under the GUI project and may in fact be a server issue. How can I move the entered bug from one team project to another so that when a build is done the bug is tracked appropriately Wayne Yes - I believe you can link a source ...Show All
Sekar00 Unable to add folders
I'm baffled - I have created a new team project. I am now in the process of adding files/folders to that project. I am clicking on the Add Files icon which gives me the option to add files or folders. I select add folders and chose the folders I wish to add (which are staged in my local workspace). Some folders are added successfully while others are not. When I go back and attempt to add the specific folders that were overlooked, they do not appear in the dialog box as having been selected. I have totally cleared by exclude items line with the same results. Can someone tell me what I'm doing wrong here Thanks for your help, kgkgidd I agree the Add dialog is pretty crappy. For v1 we basically ha ...Show All
mckraut CTP5 - Names names names
Hi What about this scenario: CREATE TABLE [Schema1].[TheTable] ... CREATE TABLE [Schema2].[TheTable] ... Perfectly legal and probably quite common. But the naming scheme for the files added to a DB-project wont permit this am i right Right now I'm looking at an error in my DB-project that I assume is triggered by this. And what about this: CREATE SCHEMA Person CREATE TABLE [Person].[Person] ... This fails too on import. Brumlemann Solution Architect Yep, CTP6. Sorry, I should have included that before :) Thanks Tom. Looking forward to getting this confirmed, invalidated or implemented ;-) CTP6 Brumlemann Solution Architect ...Show All
kiran1234 XML Schema definition
I have tried to access the XML schema definiton so I can make changes to my template and I am getting a "not found" error for http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef What's up Yes that link is not working but if you want to view elements in general workitem definition schema it is available at http://msdn2.microsoft.com/en-us/library/aa337661(VS.80).aspx . Thanks, but that is not the information I am looking for. My team uses SCRUM templates. Not all of the fields that we want our PMs to use are included in the "control" portion of the default template. I exported the default template so I could modify the XML and add more data fields to th ...Show All
jss3426 Is a CAL needed for the machine that runs TFSBuild.exe?
If machine A has a scheduled task that runs TFSBuild.exe to start a build type on machine B that has Team Foundation Build installed does machine A needs to have a CAL for Team Foundation Server I assume that we do because it will connect to the Team Foundation Server. If so, isn't it a little awkward that we need a CAL just to start builds How do you guys schedule builds Do you schedule these on the Application Tier of TFS If you do we would still need a CAL, don't we Or do you schedule these on the build machines If so, this would mean that if you have several build machines that the tasks are spread over these machines. What is the recommended practice I would say on the Application Tier of TFS so we have a ce ...Show All
Spigot bug when stopping running build?
Hi I cannot start a new build if I stopped the previous one during compiling with the command " tfsbuild stop ...." the error is: Target CoreClean: Removing directory "c:\testbuild\captia41\test\BuildType\..\Sources". C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(230,5): error MSB3231: Unable to remove directory "c:\testbuild\captia41\test\BuildType\..\Sources". The directory is not empty. C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(230,5): error MSB3231: Done building target "CoreClean" in project "TFSBuild.proj" -- FAILED. If I try to delete folder ...Show All
Gabriel Méndez app control
After I have found the handle of a button i want to control from my aplication with spy++then what do i do with that number or i will have to just fake a mouse click at x position like this person did... I have found the eqivelent to what i am trying to do accept it is in visual basic 6.0 code so i dont know how to do a conversion. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=144808&SiteID=1 tell me if you have any ideas... Average Joe Spotty, You are quoting the wrong poster. That is old VB6 code. Newer code: Option Strict Off Public Class Form1 Private Declare Function GetMessageExtraInfo Lib "user32" () As Integer Private ...Show All
Spyder_Snyper Transparent BMP
I would like the user to be able to click on one (or more) colors in a .bmp image, which would cause that color (or those colors) to become transparent in the image. The only transparent .bmp color code I have seen is where the programmer specifies that a certain color in a .bmp image will be transparent, which doesn't help to solve my problem. I am very new at this, and any help will be greatly appreciated. The board add line feeds when it wraps introducing syntax errors until you remove the linefeeds. Andreas Johansen and I looked at this problem in depth tonight. It looks very simple until you consider the many, many internal formats of images and then the problem becomes quite complex ...Show All
ejamashu TFS Trial CALs
How many users can access the TFS using the TFS trial version Thanks Adam. I think we currently have the Workgroup version opf TFS installed (it is what we had access to through our MDSN subscriptions). If we want the full blown version, can we upgrade the workgroup version to the trial version so we can take advantage of the additional users, then upgrade the trial version to our purchased version when it comes in Or do we need to uninstall the workgroup version, install the trial version, then upgrade the trial to the purchased version Also, once we are using the trial version or the purchased version, how do we add users to the TFS Do we need to enter information about who has valid CA ...Show All
shanejh Installing on SP1
Hello, Is there any way to install Visual C++ Express Edition on SP1 Thanks in advance, Yorick Bouma Sorry to be the one to tell you this but all the express editions need XP SP2 to install. If you are using Win 2000 youve got to have SP 4. For full compatibility details go to http://msdn.microsoft.com/vstudio/express/support/readme/ Matt ...Show All
