I would like to make an analog of Visual Studio Solution for my application.
I mean to make a file similar to Microsoft Visual Studio Solution file (.sln), which includes links to all the other solution files.
Can anyone link to an article on this topic? I could not find anything about it.
If you need to build a series of Visual Studio solutions, then you need a build tool.
The two most commonly used in the .NET world are
MSBuild (reference: http://msdn.microsoft.com/en-us/library/dd393574.aspx)
Nant (reference: http://nant.sourceforge.net/)
(It's not clear what you're asking, you may wish to clarify or give an example.)
I didn't really understand what you mean, but it seems that you need a building system, like CMake (www.cmake.org).
Related
I have a c# WPF application which is able to switch in deferent language as per customer wants. I also created a setup project for the same. I need to make the setup project also be able to switch language.
The problem is, the 'Visual studio installer project' doesn't have an option to do that. There is an option to set language for MSI. However dynamically changing the language is not supported
I have already googled it and no solution found.
some of the similar posts links are below. which also have no correct answer
c# Setup Project Localization
How to create preview choosing setup language in Visual Studio Project Installer?
Any idea how to do that. Thanks in advance
I don't have much experience regarding this, but:
The Wix installer seems to have support for localization:
https://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/
VDProject seems to be the right way to move forward aswell:
https://devblogs.microsoft.com/buckh/visual-studio-setup-projects-vdproj-will-not-ship-with-future-versions-of-vs/
I've been having this problem with visual studio that I cannot seem to find a simple answer to. I would like to be able to save out versions of my visual studio project so that I can test a concept I have in mind that may dramatically change my code and if I do not like the outcome, I would like to be able to load up a older (previous) version of my project. Every googled answer I have found for this problem has been some kind of big professional development version control software. Its crazy to me that there is not a simpler way. I suppose I could copy and paste my project dir each time I want to save a "version" and just rename it, but this seems rather archaic. I use many graphic applications that simply have a "save as with new version" feature and I can easelly load and version I have saved.
any advice would be amazingly helpful.
thank you!!!
Just use git!
https://git-for-windows.github.io/
It is a very simple light weight version control system, that will do everything you are asking for. It is free, and should only take a few minutes to set up.
I need to achieve some kind of extensibility for a custom project template.
Having a C# code file opened, if...:
...current project has some specific type id.
...code file is a class and inherits some concrete base class.
...user pressed F5.
...I'd like to...:
...start an arbitrary program (a console application).
...attach Visual Studio to the process of the arbitrary program.
...debug.
Actually I'm absolutely lost and I don't know how to do so. I know I need Visual Studio 2010 SDK, but I don't know how to create an extension doing what I need to achieve.
Thank you in advance.
UPDATE
I'm doing some research in Stackoverflow Q&A and I'll be adding questions related to my own one:
Visual Studio 2010 Extensibility - Override Build Action without effecting cproj file
"Attach to Process" as a post-build event (This seems fine, but I don't like the approach. I prefer a full Visual Studio integration. Anyway, it gives a hint).
I guess the best way to try is VS addin that will catch the Run (F5) command and handle it as you wish. See this article as a starting point for catching command from VS addin: How to: Add and Handle Commands. And these for attaching to process from VS addin Attach to process for lazies and Visual Studio Add-In To Automatically Attach to Development Server
Hope that helps to find a solution for your needs.
Do you consider the use of third-party extensions, for example, the free DXCore Visual Studio Extensibility Framework? It can do what you need.
First of all, thank you everyone for the info, it has been useful.
Basically I got the way to do what I'm looking to achieve.
Because I want to assist others in a similar situation, I'd like to share what I'm using to solve everything:
NRefactory as C# code parser. It works like a charm! You can get a lot of info from a code file.
VSPackage Visual Studio 2010 SDK project template.
In order to attach to a process I'm going to look forward for Dmitry Pavlov's suggestions.
Interesting links:
VSPackage how-to: http://msdn.microsoft.com/en-us/library/bb164715.aspx
As soon as I got everything working, I'm going to edit this answer and give more detailed info.
I created an installer for my Windows Forms application and I added the project output to programs menu. But now what I want is 'I should have a folder in programs menu in that it should contain both install and uninstall options'.
Please help me. Thanks in advance.
The easiest way is to create a Setup and Deployment project in Visual Studio.
I have to agree with Sir Richard's answer, but I wanted to add the instructions on how add an uninstaller using the Setup and Deployment project found in Visual Studio.
Here's a useful link you can work on: How to add a Uninstall option in Visual Studio Setup project without writing code
If you have advanced scenarios that the Setup and Deployment project can't handle, I'd advise looking into WiX.
WiX is an extremely mature Microsoft opensource project, having first launched in 2004 and is still active today. It even provides a VS extension to assist you with getting started and intellisense for the configuration.
Be warned though: WiX primarily uses XML files that use MSI's domain language. It's certainly not a tool you use if "create an installer" wasn't allocated specifically in your project plan.
You can try with NSIS, is open source and very easy...
"NSIS (Nullsoft Scriptable Install System) is a professional open source system to create Windows installers. It is designed to be as small and flexible as possible and is therefore very suitable for internet distribution."
in his website you can find tutorials and examples, the link is: http://nsis.sourceforge.net/Main_Page
I hope this help you!
Is there any way to write a Visual Studio Project file easy or do i have to look at the xml format and write it by hand?
Is there any lib for this in .net framework(3.5)?
Im using vb.net but c# would also work..
Visual Studio since version 2005 uses the MSBuild format to store C# and VB project files.
You could read this primer http://www.informit.com/guides/content.aspx?g=dotnet&seqNum=472 or search the Web for further examples.
For programmatic access you could use the classes in the Microsoft.Build.BuildEngine namespace. Probably the Project class is of most interest to you.
I haven't tried this myself but you might want to look at http://msdn.microsoft.com/en-us/library/microsoft.build.buildengine.project.aspx
We do it from a couple of in-house tools. The project files for Visual Studio are stored as XML, so you can just use whatever XML classes you prefer. Make sure you pay attention to GUIDs as they are used to tie everything together between the various files in Visual Studio.
There is no support for this in the framework. The Visual Studio project file format is specific to Visual Studio. There may be support in the MSBuild libraries but you would need to include them as a reference and interact with it that way. What are you trying to do that requires you to create a VS project file?
The link provided here should give you what you need.