How do I create an installer for Visual Studio 2008 addin? - c#

I have done an addin (in C#) for visual studio, (almost) ready to deploy it. But I don't know how to do an installer for that.
I saw the link here but I don't know where to go from there...
This seemed to be useful, but I don't understand where to start, put which code snippet where...
Can someone guide me from the basics? Can't find the resources online I want :(

Hope this helps, led me down the right path.
This is a real in depth from concept to implementation:
http://www.codeproject.com/KB/macros/LineCounterAddin.aspx
Found this also interesting:
http://social.msdn.microsoft.com/Forums/en/vsx/thread/cb5958f4-b503-456b-af24-ebfdde8ec6ad
http://www.mztools.com/articles/2008/MZ2008011.aspx
Wix is a great tool to deploy:
http://wix.sourceforge.net/votive.html
Any questions let me know.

Related

Publishing in Visual Studio 2015 Community

I have spent all day trying to figure out how to publish a project I made in school. My intention is to use it as part of my portfolio for future job prospects. I have one math class left and I get my BS in CS. In school, we only created installers once and it was in Java, and I think the teacher gave us the code, which isn't that helpful for learning how to do this.
I used Visual Studio 2015 Community with Monogame to make a trivia maze game. It runs fine when I have it in VS. I do ClickOnce installer via a tutorial I found online and I cannot get it to successfully install on my machine, or any other machine for that matter. I get a .net framework exception when I try to install the game. I look at the contents of the publish folder and it does create the manifest, the setup.exe, several .dll's and even my content folder that contains my sprite sheets. I do not see any of my .cs files however. I am not sure if this is an issue. Heck, I am not sure what to completely expect from running ClickOnce.
Another thing that might be worth noting; I read something about making sure to have VS set to release instead of debug. My program will not run when I select release. It crashes when it tries to load the content. Throws an unhandledContentload exception. I am not sure if this is a symptom to my problem or anything I should be concerned about.
And maybe this is another issue; For my .cs files, the Copy to Output Directory is set to Do not copy. Could this be an issue when it comes to publishing? The build action is set to compile.
Any help would be greatly appreciated. Thanks in advance for any help.

New / Custom Visual Studio 2013 Language Service -Very Basic

I am not looking to do anything fancy just create a bucket for our internal company Visual Studio projects etc.
I have been through the following resources and it seems the codeplex projects have the same behavior as my tutorial walk throughs which tells me I don't understand / know what to look for / learn exactly.
Said behavior is that when my code or the codeplex code compiles and runs with no issues but I don't see the new language show up??? By show up I am expecting to see it in the New Project dialog under templates.
I started here:
http://msdn.microsoft.com/en-us/library/bb165744.aspx
and though not the best tutorial I feel I got everything correct. It compiles and runs but my new "Language" doesn't show.
So I did some more searching perhaps another tutorial might fill in some gaps I missed and I watched this video for an hour.
http://channel9.msdn.com/Blogs/VSIPMarketing/VSX212-Adding-a-Language-Service-into-Visual-Studio-2010
It's for 2010 but felt 2013 and 2010 close enough that it might help....and while I did learn quite a bit it didn't give me what I was expecting.
Another Google result was this SO post (How to create a new language for use in Visual Studio) from which I downloaded OOK from codeplex. Updated references, upgraded from 2010 to 2013 etc.
It compiles and runs but again my language is not "showing"....which is the behavior I had in my tutorial guided solution.
So what am I doing wrong??
All I really want is a language bucket where we can put our internal snippets, customized project templates etc. The c# editor, intellisense, syntax highlighting, etc. are just fine so don't need to extend those at this point.
If someone could please point me in the right direction I would be grateful.
Thank You

I have a C# WPF application that needs to be packaged. Any suggestions?

so I have an application that I have created in Visual Studio 2010 and I want to know how I can package it so a user can install it on their machine. I'm sure I will have to do some scripting as well as call cmd prompts. Basically I want to get it to the point where there is an installer for the application that my group has built.
Any suggestions or tutorials you recommend?? Its for a school project and it would really be helpful if someone could help me get this off the ground. Its the last thing my group needs to do.
Thanks!
Joe Ristaino
Use ClickOnce
Use the MSI installer setup project in Visual studio. It's very simple.
http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/SetupProjects12022005022406AM/SetupProjects.aspx
I wouldn't use click once...
Ok here's a newer article
http://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/
Visual Studio has it's own installer projects, you could check those out. I personally use them for any projects I make at my company. If you use the wizard, you'll have it done in no time.
In your solution,
right click your solution name in the Solution Explorer.
Add -> New Project.
For the type, goto Other Project Types -> Setup And Deployment -> Visual Studio Installer
Choose the setup wizard, it's pretty easy. Primary output means what's is installed to the program folder. Follow the wizard and most of the work will be done. There will only be optional tweaking left to do.
I recommend WiX. It's got quite a bit of a learning curve, but it's totally powerful.
It's expected to be included in the next version of Visual Studio (it didn't quite make it into VS2010).

Extending visual studio

I want to write an AddIn for visual studio (2010). My goal is to add a menuitem to the context menu of all .cs files in the solution explorer. Or maybe just to context menu of the code window, although I prefer the first thing. I've been browsing around on the Visual Studio Extensibility website but I must admit that I'm having a hard time finding a tutorial on how to achieve what I want to. I guess that I don't really understand the VS extensibility model to be honest.
So I thought that some of the smart people here must have tried it before, and I'm hoping to save some time by asking here instead of fumbling in the dark.
Thanks in advance for any help.
I have a blog post on something pretty similar at http://www.runeibsen.dk/?p=237. Unfortunately, it is for VS2008 and AFAIK VS2010 is all WPF based now, in which case you may not be able to use it.
Checkout the codeproject Article-- LineCounterAddin, its a good one. Explaining the VS IDE internals needed to code Addins.
And quick googling shows this one Add-In That Converts C# Code To Visual Basic

Repository of Code Snippets

I'm just getting started with C# and often find myself going back to other projects and reusing some snippet of code in a new project.
Is there a good tool out there with which on can store all the little pieces of code they reuse again and again AND integrates with Visual Studio Express??
Visual studio has the concept of code snippets, under the tools menu there is a code snippets manager.
Almost forgot, to bring up the code snipped menu in code press CRTL+K+S.
Visual Studio Express is not legally extensible so I doubt there is a tool you can purchase or download that will integrate. However, snippy will help manage and create standard .snippet files for you, without integration.
It sounds like you may want to develop your own little framework that can be referenced by various projects.

Categories