C# - Refactoring Tool That Works Across Solutions Files?

Feb 11, 2010

All the refactoring tools for C# and VB.Net that I have seen only consider the source code in a single visual studio solution.For better or worse, our large (many related programs) system is spread over many solution files, however:All the code is below a single windows folder. Our nAnt based build system, builds all files in a windows folder to produce a single dll (bit more complex then this but not important for this question).Therefore ALL ".cs" and ".vb" files below the single root folder are part of the system.

So I am looking for refactoring and reverse engineering tools that take a single folder as input and act on all files below that folder.(The tools may need some help to decide what "public" and "internal" means, however most of the time "internal" means "in the same code tree" when a "code tree" is a folder that contains code and any child folders.)Now I am being greedy, I would like the tools to create a lot of all the refactorings that have been done and to be able to replay the refactorings. Then I could try out ideal and if they work, throw away my code, get the latest code, you do the refactorings and checkin the code before anyone else changes the files. (Likewise for when branches need merging)

View 1 Replies


ADVERTISEMENT

Saving Backup Solutions Files

Mar 25, 2009

what is the correct way to archive my work? That sound pretty dumb. Let me try again. I begin a new project and design a form and then start adding code then save my work.Tomorrow I want to make changes to the project an design - how do I save and keep track of my form and code versions?

View 2 Replies

Merge Multiple Excel Files Into One Excel File And It Works For 3 Source Files But Its Not Working If Workbook With Worksheet Count Is > 3?

Aug 18, 2011

I'm trying to copy multiple excel source files into one excel file. My current code is working only for 3 source files..If more than 3 files are there, it doesn't copy the data but creates blank work sheet in the output excel file. Lets say I have a source folder with 5 excel files. Each workbook contains one worksheet with data. It copies upto 3 worksheets along with data into output excel file.

Lets say excel1 contains A as work sheet, excel2 contains B as work sheet ,excel3 contains C as work sheet ,excel4 contains D as work sheet ,excel5 contains E as work sheet .Now my output excel file should look like..OutputExcel with A, B, C, D, E along with respective data.But my current code is giving output as A,B,C worksheets along with respective data but its creating blank sheet1,sheet2 in place of D & E.

SSIS Script Task Vb.Net Code:

Public
Sub Main()
Dim filePath
As
String =

[code].....

View 1 Replies

Any Tool Which Checks Files On Location?

Mar 24, 2012

I 'm searching for a tool which checks for files which is newly created or updated or deleted in specified location.

View 1 Replies

Prep Tool - Editing PDF Files In Library?

Jan 11, 2012

I am writing an application for editing pdf files with this library: [URL]. The problem is that I had to format pc because a trojan and since that moment every time I try to continue my project I can't use the library. The code its the same as it was before formatting, but when I compile the code and the application runs I get an exception every time I try to use a library function.

Some info:
I'm using visual studio 2008 .net FW 3.5
vb -net language
I'm using a W7 64bit environment (before formating was W7 32bits, but I tried to use a 32bits OS and the problem remains). I've already registered the 2 COM components (Img2PdfAPI.dll and pdprep32.dll)
regsvr32 "C:Program Files (x86)prepToolspdprep32.dll"
regsvr32 "C:Program Files (x86)prepToolsImg2PdfAPI.dll"

Solved: Was because of the license.

View 1 Replies

Copying File Tool Strip Menu Item To Show Certain Files From A Folder?

Jan 21, 2010

In word/excel/office programs when you press the file menu item at the bottom a list of files recently used are shown, i would like to do a similar thing but i would like to put files from a certain folder with a certain extension (.xml) into my file menu item so the user can select to view the files.

I think i need something like:
For each file (extension .xml) in myFolder
If menuItem = Nothing

[code].....

View 4 Replies

Make A Tool Bar In Task Bar Such As Windows Media Player Tool Ba

Jan 5, 2010

I want to make a Tool Bar in my task bar such as windows media player tool bar.

I'm using VS2005.net Windows xp Professional Edition.

View 5 Replies

Visual Studio 2010 - .net Application Works With Files Dragged Onto The Exe But Crashes If There's A Space In The File's Path?

Jun 15, 2011

I'm developing an application in vb.net. You drag any type of file onto the exe, and a window pops up with some options for the file, then it saves the file to a different location, works some SQL magic, etc. It works great for the most part. The only issue I've found is that if the path of the file contains any spaces, the application will crash immediately with the error window:[URl]..I'm using: Private filename as String = Command$ This is located right inside my form's class declaration, not within a sub/function.Without this line, my program runs fine (although useless, without accessing the file).I've also tried (I think this was it, I don't have the code with me at the moment): Private filename as String = Environment.CommandLine So, in vb.net, is there a way to drag a file onto an exe and use that path name, even if there are spaces in the path name?

View 2 Replies

Put Tool Tip Text In Tool Strip Status Label?

Oct 17, 2010

how to put the tool tip text in status bar label this in form load event

View 14 Replies

Convert A .NET 4.0 Webforms Solutions To C# 4.0?

Jun 18, 2011

I have a VB.NET 4.0 based solution (just one project) in Web Forms and needs quick conversion of the whole solution to C#.

View 1 Replies

Licensing For VB 2008 Solutions?

Oct 5, 2009

How we create a licensing system for a vb 2008 solution to protect it from unauthorized access? Is there any code to generate a unique system id to identify a machine like CPU ID etc.?

View 1 Replies

IDE :: Refactoring Does Not Work (enough) In VB

Sep 28, 2009

I use VS 2005 and VB.NET. I have a class A. This class A is an empty class(no functions, no members). I wrote the following code: Dim _a as new A(); Dim code as String = _a.GetCode() In the same situation, the C# refactoring tool in VS 2005 IDE propose me to create a method in the A class internal string GetCode(){ }

The VB.NET compiles does not propose anything. There is a way to implement the functions when I need it in code, or I need to planify all my methods before using the class?

View 4 Replies

.net - Optimistic Concurrency And Improving Solutions?

Mar 19, 2011

In our database we have gigantic tables (it was initially built 20 years ago). We are on the process of developing it.

Some tables contain rowversion and optimistic concurrency. We were wondering if there is a way to just correspond rowversion to the modification of some specific columns, but not all of them. In Normal Case, T-SQL which is generated then would be huge.

View 1 Replies

Application Licensing / Protection Solutions

Nov 4, 2009

I have up until recently developed only in-house custom applications and I have never had a need to protect this software with any type of licensing/ protection mechanisms.I'm now working on a new project for a software app that I plan on distributing to a relatively small number of clients (1000 or so) and I need to consider some type of licensing/software protection solution that I can easily integrate into my application.I'm also looking for specific product recommendations (if possible) based on users experiences. With vast assortment of product offerings out there, I'm having a very hard time wading through them all.

I would like to stick with a software option over a hardware dongle type solutions so that I can make distribution and activation as painless as possible for my customers¦but would consider hardware options if need be.I have tried the KeyLOK hardware evaluation kit but it seems to be a little difficult to implement and it would force my customers to wait days before they could initially activate and use my application. [code] License registration and tracking via Internet..Software distribution is very controlled and it's not a techie type user audience, so hacking is not a major concern but I would like to protect the application as much as possible.

View 1 Replies

VS 2008 Global Solutions Settings

Sep 1, 2010

I have an issue with globalising my application settings.I have 5 Projects in one solution and I all 5 of my projects use the same connection string to connect to the DB.before I had added any additional projects, I could control this quite easily from the settings designer (Project > Project Properties > Settings) this will work well for one project.How can I share my settings across to all projects, and if the connection string is modified, save it back to the settings file.does VB support settings at the Solution Level?

View 2 Replies

.net - Refactoring A Field Into A Property?

Jun 7, 2012

I am currently learning vb.net for my new job and I have mixed feelings over public fields. I see many arguments about them hurting the encapsulation. In python, the common practice is to keep things simple and use fields when they are enough. If we want to add logic later, we just refactor them into a property without breaking anything for the client code.In the codebase I am working with I see huge classes containing dozen of properties like:

[Code]...

View 2 Replies

How To Approach Refactoring A Class

Jul 24, 2009

I recently started a project and needed to do some integration with LDAP via DirectoryServices. I've done this in other apps so I went into one of them to see how I did it -- why reinvent the wheel right? Well, while this wheel works, it was developed years ago and kinda smells (it's wooden, firmly attached to the previous vehicle, hard to repair and produces a potentially bumpy ride).So I thought to myself, this is the perfect time to refactor this puppy and make it more portable, reusable, reliable, easier to configure etc. Now that's fine and dandy, but then I started feeling a tad overwhelmed regarding to where to start. Should it be a separate library? How should it be configured? Should it use IoC? DI?

So my [admittedly subjective] question is this -- given a relatively small, but quite useful class like the one below, what is a good approach to refactoring it? What questions do you ask and how do you decide what to implement or not implement? Where do you draw the line regarding configuration flexibility? [Note: Please don't bash this code too much okay? It was written a long time ago and has functioned perfectly well baked into an in house application.]

Public Shared Function AuthenticateUser(ByVal id As String, ByVal password As String) As Boolean
Dim path As String = GetUserPath(id)

[code]......

View 5 Replies

IDE :: Refactoring Data Contracts?

Dec 20, 2010

I want to add DataMember attributes for the properties in a class Is there any way to automatically add the attribute maybe some refactoring tool

View 4 Replies

VS 2010 Class Refactoring?

Feb 21, 2011

This is my scenario. I am writing an app which takes a person object and a features object , when the user selects a person object a features object is created. This works for any amount of features i care to display. So far so good, i am now refactoring to create 2 additional classes, a maths class and a ui class. my issue now is how do i get the maths functions to know the instance of the features object(s) or person object(s)?

Unfactored
Public Sub New(ByVal feature1 As New Feature)
...

[code].....

View 2 Replies

.net - Add Multiple Solutions Referencing The Same Projects To SourceSafe?

Oct 14, 2010

I've got a StartUp project (StartupProjectA) in Visual Studio that references projects A, B and C. I've got all of those in SolutionA.My predecessor has previously added this solution to SourceSafe so that there's a SolutionA folder in SourceSafe, containing a StartupProjectA folder, and A folder, a B folder and a C folder.

It turns out, though, that StartupProjectB and StartupProjectC all live in the same directory as StartupProjectA on the local machine, so on the PC I'm using I have a [GeneralSolution] folder which contains a StartupProjectA folder, a StartupProjectB folder, a StartupProjectC folder, and A folder, a B folder and a C folder.My question is what do I do to get the Solutions for StartupProjectB and StartupProjectC into SourceSafe? I've tried adding them, but they all create their own copies of folders A, B and C. What have I missed?

I'm trying to use the Visual Studio SourceSafe integration to get these solutions into SourceSafe. Doing so creates multiple redundant copies of A, B and C. I would like to have one folder in SourceSafe, containing SPA, SPB, SPC, A, B and C folders. I'm not really sure how to do this, because I can only add entire Solutions to SourceSafe via Visual Studio. There's no option that I can see for "Add this folder to SourceSafe and recognise that these other three folders are already referenced in the repository and so don't need to be added."

View 3 Replies

Email To Send Picture Error On My Solutions?

Apr 26, 2011

Email to send picture error on my solutions?

View 2 Replies

Forms :: Access Another Form In A Different Project In The Same Solutions

Jun 1, 2011

i have tried googling this and cant find a way to do this, i hav 2 projects in the same solutions, i am trying to write a bit for Solution1_Project1_Form1 to open a windowsForm in Solution1_Project2_Form2.

Start main application & View 2nd application FROM within the main application.

Start the 2nd application WITHOUT using the main application.

both applications need to read and write to a database, i dont think this makes a big diferance but thought i would mention it

View 2 Replies

Forms :: Wont Load After Copying Solutions?

Sep 24, 2011

basicly i had to format my computer, so i needed to reinstall Office 2010 and VS2010, but now my solutions wont load, VS isn't giving much information about it apart form its a object refrence equalls null, but i dont have a clue where to start as it happening before the form load. this is all the information i can give.

An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.System.InvalidOperationException{"An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object."}i have tried cleaning, rebuilding, build solutions and none is helping, if any1 can think of anything else to try please say, another option would be Their is a bit of software call teamviewer that i use, if anyone would be willing to download it and instal it, it would give them the ability to controll my computer to have a look and see what has went wrong.

View 3 Replies

IDE :: VB2010 - Creating Solutions After Program Has Been Debugged?

Jan 26, 2010

In VB2010 Beta 2, after program development, how do I deploy (or create a solution to), programs I have written? Also, how can I change the folder where VB 2010 looks for my help documentation Hope someone can help. I've been an on-again off-again programmer for years, but 2010 just makes my head spin a little...

As far as the solution creation, I've already tried clicking on Project-->Publish, which more or less seems like it wants to upload to a website rather than be stuck on my HD... I don't want to upload to the web;the whole reason I want to export is that I want to think I remember at one time having read something about the about box labels only displaying the new information you stick in them once the program has been turned into a .exe file, but I'm not sure; although now that I've run into this problem of creating solutions, even w/ this little bit of a program (nowhere near complete, something like a sure-to-be-crappy-take on Mass Effect 2.. it's primarily text based); heck, for that matter just about all I write programs for is because "hey.. it's enjoyable... umm... kind of" -- I originally started in college as a Computer Science major, switched to Music, transferred schools, the school I transferred to didn't think I had the skills they look for in incoming students, and from there switched to spanish major.

____, just about all I'd be good for is playing music and localization projects (both in and out of the game industry). Not so sure I'll get anywhere, but I said "what the heck, I'll upload my resume to EA".

View 1 Replies

'The File Does Not Support Refactoring Error

Oct 13, 2010

When I try to change the root namespace of my WPF VB.Net application, I get this error:
'The file "" does not support refactoring and will have to be manually changed. Object reference not set to an instance of an object'

[Code]...

View 5 Replies

.net - Refactoring Inheritance To Composition Using Vbex2005?

Jul 7, 2010

I have a class that I wrote fairly early on in my vb.net programming experience which inherited from another class it really should have composed. The base class is a relatively generic nested dictionary-based collection; let's call the descendant class a "Car".Right now there's a lot of code that does things like 'MyCar!Color.st = "Red"' (I use the generic collection rather than real properties to facilitate data interchange with code written in VB6, and also to facilitate comparisons of cars; given three cars X, Y, Z, I can e.g. detect any changes between X and Y and apply those changes to Z).

Is there any nice way to refactor the code to use composition rather than inheritance?Which properties methods should the "Car" object wrap, and which ones should be accessed through a data-object property? Should a widening conversion be defined between a car and the collection object? Are there any gotchas when doing such refactoring?

View 1 Replies

Asp.net - Refactoring: Gridview Export To CSV File

Sep 15, 2009

These routines (vb.net) allow you to dump a gridview to CSV, even if there are templated controls in the cells. It works, but I'm not thrilled with it.

What improvements should I make and why?

Private Shared Function CsvFormatted(ByVal t As String) As String
If t.Contains(",") Then
t = """" + t + """"

[Code].....

View 1 Replies

IDE :: No Free Refactoring Support For .NET In 2010?

May 21, 2010

Have we moved from "Being forced to go install a 3rd party add in to get what C# users have" to "Being forced to go buy a 3rd party add in to get what C# users have"?

Why did MS see fit to get DevExpress to create Refactor! for the previous versions of VS, but not for 2010? Or am I missing something?

View 3 Replies

VS 2008 - Refactoring Presentation Layer

Sep 10, 2010

I've been working to refactor my code and ended up with a quite clean main BLL class that has only a few manager classes that pass information between eachother. They handle separate tasks/areas like socket connection, data, etc. It's only one instance of each of these manager objects, so I believe maybe the base layout is a structural singleton (?) ..but not sure. This seems to give quite good oversight and a clean separation of PL/BLL as the main form only access the BLL through one instance of a single class. But now I'm trying to figure out how to lay out the presentation layer. So with this I would like to understand a few points: Do you have all controls as members of the form class, or can you make sub classes where some controls only exist on lower levels? Like for example if you have a tab where all controls only interact with each other, and not the rest of the form, would it then be possible to make this a separate class that holds both controls and additional logic ? The first problem I get when trying this is with the events, as if I simply move an event handler method to another class than the form class, I get the message: Handles clause requires a WithEvents variable defined in the containing type or one of its base types.What does this mean? and is there an easy way around this? I would like to understand how a slightly more complex PL is designed, so I know what direction to move in for studying/developing this.

View 3 Replies

Cannot Create New Solutions Due To Unsupported Code Parsing / Generation

Oct 27, 2009

Trying to get some VB practice after a long time rest, but I'm having some issues even getting a new solution open. Ok, I have VB '08 Express on Vista (Visual Studio also installed) and whenever I try to create a new solution I get the following error:[code]Now I've checked the forums and seen that this error has come up a fair bit, but I've tried the couple of suggestions I have seen to no avail.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved