473,408 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Solution path in C#

Hi,

I am using C#.NET1.1

My solution is having different projects

How will I know My solution path like(Application.startupPath) this is
for Individual projects this will gives upto their corresponding EXEs.

But I need the path like Only the Main solution.

Thanks for giving the great Inputs

*** Sent via Developersdex http://www.developersdex.com ***
May 24 '06 #1
3 8577
Once compiled, there is no concept of solutions, so you can't get this at
runtime.

At build time in VS, however, you can (in pre-build / post-build events) use
the macros $(SolutionFileName), $(SolutionPath), $(SolutionDir) and
$(SolutionName).

I've never tried them, however; I always think of projects (mapping to
assemblies) as the key item, not solutions.

Perhaps if you could indicate what you are trying to achieve there might be
a better answer?

Marc
May 24 '06 #2
Hi,

I'm not very sure what you are asking, is your problem at runtime or at
compile time?
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Kondapanaidu" <kondapanaidu> wrote in message
news:eC**************@TK2MSFTNGP04.phx.gbl...
Hi,

I am using C#.NET1.1

My solution is having different projects

How will I know My solution path like(Application.startupPath) this is
for Individual projects this will gives upto their corresponding EXEs.

But I need the path like Only the Main solution.

Thanks for giving the great Inputs

*** Sent via Developersdex http://www.developersdex.com ***

May 24 '06 #3
Kondapanaidu,

Solutions exists only at compile time. When you build your application and
deploy it on the target machine there is not a trace of any solutions or
project files. Working folder and target folder (after deploying) as well as
the file structure of your solution and the final product in most of the
cases are different.

Further more it is good practice to limit your application to access only
the files, which are placed below the application's root folder + isolated
storage and the temp folder.
--
HTH
Stoitcho Goutsev (100)

"Kondapanaidu" <kondapanaidu> wrote in message
news:eC**************@TK2MSFTNGP04.phx.gbl...
Hi,

I am using C#.NET1.1

My solution is having different projects

How will I know My solution path like(Application.startupPath) this is
for Individual projects this will gives upto their corresponding EXEs.

But I need the path like Only the Main solution.

Thanks for giving the great Inputs

*** Sent via Developersdex http://www.developersdex.com ***

May 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ramon M. Felciano | last post by:
Helo all -- I'm trying to gain a deeper understand for what type of semi-declarative programming can be done through XML and XPath/XSLT. I'm looking at graph processing problems as a testbed for...
3
by: Sorin Dolha | last post by:
Hello, We intend to create an ASP.NET-based Web application (hosted on Internet Information Services, or IIS) and one feature of the application needs to allow the end user to upload photos to...
5
by: vbdotnetmania | last post by:
Hi, Is there a property to find the path of the solution, I've found a few properties that give you the executable path i.e. Application.StartupPath etc. and I know i could just parse this to...
2
by: enrique | last post by:
Hello everyone, I'm looking for a "directory path" solution that will allows me to test my app locally and then test on remote web server without having to update my web.config file each time I...
5
by: kai | last post by:
Hi, I use XP Pro and VS2005. I find when I create a new Website, I only see the Project node not Solution. After I add sedcond project under the solution tree, then I see the solution node. How...
5
by: Tom | last post by:
Hi: I'm using the Leban's ReportToPDF solution and have encountered a small problem. I'm calling the code using the following: Call ConvertReportToPDF(strReportName, , , True, True) Where...
19
by: Mountain | last post by:
I would like opinions on whether this solution could be important and whether anyone knows if it is already solved. (I would also like to know if anyone thinks it cannot be solved.) First, we...
2
by: John Kotuby | last post by:
Hello all, Note: This is the full version of a Post that I inadvertently sent before it was complete. About a year ago I wrote a VB.NET 2003 solution that consists of a number of assemblies...
2
by: aling | last post by:
I create ASP.Net 2 website project in VS 2005, but the solution file always uses absolute path in PhysicalPath attribute. I want to copy the website project anywhere, so the absoluted path not...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.