I am attempting to create an application that requires a TFS server URL.
The only way I can find is to open a .sln file that is under source control and look at the "SccTeamFoundationServer" attribute. I'm sure there must be a way to get the server from Visual Studio, but I'm not sure how to do that in c#.
Any help would be greatly appreciated, thanks.
Taken from comments in Question.
I think the way to go is VersionControlExplorerItem.SourceServerPath and this 2005 blog post shows how to use it. blogs.msdn.com/b/edhintz/archive/2006/02/03/524312.aspx. theres a few bits on using it with 2010 which looks promising.
If you want to do it in a c# program, I think you are doing the correct way, there is no other.
Related
I am writing a small Visual Studio addin to let the user use more features of the comment tokens (TODO, HACK, etc.). For this I want to extend Visual Studio with new commands (such as TODISCUSS, TODELETE, FIXME, TESTME, etc.). I'd like to do this programmatically when my addin starts.
I already found out how to do this manually: http://msdn.microsoft.com/en-us/library/ekwz6akh%28v=vs.80%29.aspx
Does anyone have an idea how this could be done via the API?
Any ideas or suggestions would be appreciated!
Edit :
See this MSDN Link perhaps digging around in TaskList will get you somewhere.
Original Post :
It's not very clear (to me :) what exactly you want to do. Is it: find, edit, or refactor the tokens and then do something else with the sources? I can suggest this article on Code Project (NRefactory).
Using NRefactory you can do anything and everything with the source files including locating the tokens you want and doing stuff with them. You will also know the files you found them in, line numbers etc.
Perhaps you will be able to use Nrefactory to do all the heavy lifting as far as sources are concerned.
A Google search results in CodeMirrow. I could not find a c# demo and not sure if it support intelligence (or if thats even possible).
Does anyone know any (browser code editor) projects that support Intelligence/auto-completion. Im looking for a project that i can use freely on my own site.
What about ".NET jsFiddle" ???
http://dotnetfiddle.net
I think you should go with CodeMirror, which is the only that I know that has Auto Complete.
You can check a demo here: http://codemirror.net/demo/complete.html.
And it's open source and actively developed, so, you can always contribute with improvements: https://github.com/marijnh/CodeMirror.
try this one (has autocomplete)
http://www.coderun.com/ide/
https://compilr.com (Not sure about autocomplete )
i searched for the topic but didn't find exactly that kind of problem.
I want to create a C# WinForms software which should run only in intranet. If i change the software afterwards i would like to have the application to look automatically in the network for a newer version. Is a newer version available it should replace the old one. Maybe there is some tool or library to achieve that?
Further Information: The software does not use a database and consists only out of one .exe file. No other stuff or files needed.
I don't want to setup a server or something like that for this task. I want it as simple and clean as possible.
Thanks in advance.
Joe
I think clickonce may help you. see http://msdn.microsoft.com/en-us/library/t71a733d(v=vs.80).aspx for more details
I really like the updateSystem.NET-lib, but which is only available in german. If you can understand the easy API, this is exactly what you are searching for.
Here, you can find a little tutorial, also in german.
Do you guys by any chance know of a tool for visual studio that can scan the entire application and find code duplication?
I have to clean up a medium sized asp.net c# application and I am using "Find and Replace" but it is really tedious work. I was wondering if there was a utility or VS plug-in that could automate this process.
Thanks in advance!
you can give Clone detective a try
Perhaps PMD can help.
From the homepage:
Duplicate code can be hard to find, especially in a large project. But PMD's Copy/Paste Detector (CPD) can find it for you!
They have a list of similar projects.
Simian is a good tool to use. You can define code block size, and create an external command to run it inside of the VS IDE.
http://www.redhillconsulting.com.au/products/simian/
It's not for VS, but Simian works pretty well.
http://www.redhillconsulting.com.au/products/simian/
I am trying to get the OpenNetCF.Net FTP Components working with my PDA application. I am struggling to get it doing any more than connecting to the server and wondered if anyone knew of any sample code I could use to learn how to use it with?
I need to be able to download and upload files, as well as determining the download size of any files that I wish to download.
Thanks in advance.
I don't like the classes in the OpenNETCF.Net.FTP namespace (the ones in the Smart Device Framework). They're based on streams just like the full framework version (which is why we did them that way) but I find usage to be confusing (though any desktop FTP sample should work as a basis). I wrote a complete FTP set of classes from the RFC but with an object model that I find far more intuitive that is in the OpenNETCF Community Forums. Comes with full source.
This looks like the answer:
http://community.opennetcf.com/competition/folders/opennetcfnetftp/entry64583.aspx