Saving a project using VS2010 Postbuild Events - c#

I'm collaborating on a project with my buddy, and I'm working on most of the code while he does the front-end interfaces/graphics. I would like for him to have access to the project when he needs it (for instance to check up on progress). I read that you can set up a post-build event with VS to save your project to somewhere else (dropbox in that case, and in mine as well), but there's no documentation anywhere on the web (that I could find) detailing how to do this. If anyone knows and can point me in the right direction, that'd be great.
P.S. Is this the place I should be posting this? Please tell me if this ought to be in a different forum.

Why don't you use a free online source code repository like CodePlex, GitHub or Visual Studio Online instead? Then it's properly stored somewhere and versioned.

Related

How to programmatically create custom comment tokens

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.

How to use PushSharp with simple project

I get the feeling that this question is either too basic or too complex to be covered by any documentation on pushSharp. But how exactly do I incorporate it into my project. I am used to Java/php, etc and have never really looked at C# before. I have been reading whatever I can find but am not really sure what I should be looking at.
I have an ashx file that is handling my ajax calls and is currently using the example code from http://www.codeproject.com/Tips/434338/Android-GCM-Push-Notification to send push notifications. I would really like to incorporate pushSharp so that I can do this for ios and windows as well but am feeling a bit lost as to how to do this.
With Java I would compile the library as a jar and include that in a project. Would I do the same here by compiling the whole pushsharp project as a dll or each folder (android/ios etc) or have I got this completely wrong? Any suggestions, or pointing me to the relevant tutorials/documentation would be greatly appreciated.
Thanks #k3b did some research on this without considering pushsharp as being any different and got it resolved. thanks.

zeromq and c# binding

I am a C# developer and I am learning zeromq api right now. By reading various articles, I found that I have to use C# Bindings.
The main problem for me is where to start. I followed steps on this link and put libzmq.dll under C:\windows\system32\ and I have clrzmq.dll and clrzmq-ext.dll referenced in visual studio project. I tried first two samples from zeromq guide and it works fine.
I got confused when I show these links.
link1
link2 (please scroll down to example.
As shown in link1, I don't see any method like Context.CreateContext() and CreateSocket()
As shown in link2, subscriber does not have event that notifies about the received data.
Can someone point why I am not seeing above things on my machine?
Thanks,
mChicago
In your question you say there is no Context.CreateContext()
If you are using the clrzmq bindings, the call is
using(var context = ZmqContext.Create())
...
Perhaps you misread it?
You second question is actually about some ambiguity on the C# bindings page. The example you point out is actually for the ZeroMQ Interop library, and not clrzmq (which is referenced at the top of the page.) The defining line between those two sections is kind of confusing.
Hope this helps.

Reverse Engineering asp.net web app

I have an asp.net web application. I don't have the source code. The bin contains 10 assemblies and a .compiled file. I used Reflector on the App_Code.dll and it shows me classes and namespaces and stuff, but its such a mess.
Is there any way to reverse engineer this web app that won't take weeks/months to unfold? The application is pretty basic.
Note, the code is written by an engineer that left the company. We own the product.
With reflector you can save the reflected code out to a project which you can load up in Visual Studio. It´s probably your best choice.
What you see is what you get and you just have to wade thru it in order to understand what´s going on in the program. Reading code is no free lunch.
Unfortunately if you don't have the source code, you have one of 3 options:
Reflector
Rewrite
Sue the original dev to give you the source code that you own (IANAL, so YMMV)

Visual Studio 2008 and C#

I'm an IT Professional with a background with developing ASP/VBscript/SQL web applications. I want to take some training and get up to speed with Visual Studio 2008 and C# so that I can take over a project at work and make updates/bug fixes in house rather than calling in a third party.
The web application I'll be working on was developed in Visual Studio 2005 with a mix of C# code and some Ajax.
When I load the source code into Visual Studio 2008 I received a warning that the Source Control Plugin wasn't installed. It's looking for SourceSafe which I don't have. Is this necessary to use?
I'm starting a training course in February called Introduction to Visual Studio C# 2008. Well this be adequate to get me going in the right direction to be able to update, fix, and make minor changes to our web application? This is a big opportunity for me and I don't want to blow it.
Thanks!
SourceSafe is a Software Configuration Management tool from Microsoft, and is not required. I WOULD recommend using some form of SCM, but flavor is a matter of preference.
If the pop-ups are annoying to you and you would like to disable them, then removing the SourceSafe bindings from the project should stop them.
From http://weblogs.asp.net/bkcarroll/archive/2004/03/08/86059.aspx :
Solution:
1 - Go to the folder containing the solution files and delete the following:
mssccprj.scc
MyProject.vssscc
vssver.scc
2 - Open MyProject.sln in your favorite text editor and remove the following section:
GlobalSection(SourceCodeControl) = preSolution
...
EndGlobalSection
3 - Go to the folder containing the project files and delete the following:
MyProject.vbproj.vspscc
mssccprj.scc
vssver.scc
4 - Open MyProject.vbproj in your text editor and remove the following lines:
SccProjectName = "SAK"
SccLocalPath = "SAK"
SccAuxPath = "SAK"
SccProvider = "SAK"
Now you can open the solution/project with no source control errors.
As far as the class goes, if you're already familiar with ASP/VBScript, you can probably pick up a C# class and figure out the rest. If not, I would suggest going for an ASP focused class that utilizes a C# back-end.
I would expect that a course named "Introduction to Visual Studio C# 2008" would probably not cover Ajax technologies, so you might want to look for some additional resources on that topic. (It might not even cover ASP.NET in significant depth, so I'd advise checking the syllabus, and if the ASP.NET coverage is weak then prepare for some additional learning on that topic as well.)
Re the Source Safe plug-in: you will need this if you want to work on the code base (so you can check in and out of the existing VSS repository). You will not need it just to browse the code.
Well James that is up to you. I am not familer with the course but if you apply yourself and pay attention I'm sure you can achive your goal. Do not be afraid to move beyond just course work to learn new things. There is a lot of information about Visual Studio on the internet.
SourceSafe is not required to use Visual Studio.
Learning the basics of VS will definitely allow you to update and fix your web apps. VS allows you to work with all the technologies you mentioned all in one environment. Although ASP/VBScript are "legacy" at this point, there is still support for them in the VS environment.
James I'd suggest that you look at the free resources (video and textual) available to you on ASP.NET. I would presume that once you've read a few tutorials and watched some videos + taken your training course you should be able to maintain the code base. Add in the fact that sites like StackOverflow have a large .NET community and there are always people willing to help.
Good luck

Categories