How to get solution file in visual studio 2008




















Notify me of new posts via email. You then just follow the confirmation steps to complete the process. Share this: Twitter Facebook. Like this: Like Loading One Comment.

Thank you Reply. Improve this answer. This does find the solution directory alright, but my problem is a little more specific. I need code that finds the original solution directory during this time, and this code doesn't do it. It does work otherwise, though! Is it possible for you to set this solution directory inside of a static variable before you get into the form designer?

Or would this be too much of a hack? Oh I didn't think of this! I'll check it out. Works in VS too, just change the above similar line to. One problem I've found is you can't count on it working with multiple visual studio instances open using different solutions — Isaac Bolinger. Show 1 more comment. The file will be created in your project root. Change your build action to "Embedded Resource" Use the following code to get your solution path. Name — fantastory. Good trick. I actually used it to output a partial class with a constant holding this path.

This was to run IIS express in a test suite, where you need to know the path to the applicationHost. Franci Penov Franci Penov Location Unless there's an assembly method that gets the original dll location? Do you know of one? So VS creates a temporary assembly with your control. Thanks for your help anyhow! I appreciate you spending the time. It sounds like you just need to code a better path to your configuration file.

Combine AppDomain. If your VSPackage is loaded as a result of being referenced in the. When a user opens a solution, the environment cycles through the preSolution , Project , and postSolution information in the. Each project's file contains additional information read by the environment to populate the hierarchy with that project's items.

The hierarchy data persistence is controlled by the project. The data is not normally stored in the. Visual Studio 15 The major version of Visual Studio that most recently saved this solution file.

This information controls the version number in the solution icon. If the solution file is saved by a newer version of Visual Studio that has the same major version, this value is not updated so as to lessen churn in solution files.

Visual Studio Version 16 The major version of Visual Studio that most recently saved this solution file. If the solution file is saved by a newer version of Visual Studio that has the same major version, this value is not updated so as to lessen churn in the file.

The body of an. The environment reads the Global section of the. In this example file, there is one such statement:. And, the same panel only has an Open: and Create: Project AND, in the file structure, under the Visual Studio directory, there is only a Projects directory, no Solutions one! Are Solutions and Projects really different, or synonymous?

I dug into the VS Help more, but the only thing I found was a couple lines suggesting using Windows Explorer to copy the project. I then searched here for "how to copy a project" and variants in this forum, and I see some tips on how to make new GUIDs for a vcproj file, but I'm still not clear on which ones to replace. How might I do this? Thanks for any help or guidance. Tuesday, April 8, AM.



0コメント

  • 1000 / 1000