I need to reference a file on my published server as
"../mydir/myfile.txt", which is fine and it works.
On my local develop computer the "../mydir" refers to C:\Program
Files\Microsoft Visual Studio 8\Common7
Is there any way I can get the "../" to refer to somewhere more
convenient, ideally as /mydir within my project.
I could not find any settings in Visual Studio, which referred to this
'Common7' Directory.
Thanks 3 2299
You can use a DEBUG switch to set a different path when in debug mode (on
your local box). That would be the easiest. This means you will have to
remember to create RELEASE builds when it goes to production, but you should
already be doing that.
--
Gregory A. Beamer
*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"mosscliffe " <pa***********@ googlemail.com> wrote in message
news:11******** *************@p 79g2000cwp.goog legroups.com... I need to reference a file on my published server as "../mydir/myfile.txt", which is fine and it works.
On my local develop computer the "../mydir" refers to C:\Program Files\Microsoft Visual Studio 8\Common7
Is there any way I can get the "../" to refer to somewhere more convenient, ideally as /mydir within my project.
I could not find any settings in Visual Studio, which referred to this 'Common7' Directory.
Thanks
Many thanks for the swift reply, but your solution is a bit ahead of my
knowledge.
Is there an example anywhere of using RELEASE BUILDS and DEBUG
switches.
Cowboy (Gregory A. Beamer) wrote: You can use a DEBUG switch to set a different path when in debug mode (on your local box). That would be the easiest. This means you will have to remember to create RELEASE builds when it goes to production, but you should already be doing that.
-- Gregory A. Beamer
*************** *************** *************** **** Think Outside the Box! *************** *************** *************** **** "mosscliffe " <pa***********@ googlemail.com> wrote in message news:11******** *************@p 79g2000cwp.goog legroups.com...I need to reference a file on my published server as "../mydir/myfile.txt", which is fine and it works.
On my local develop computer the "../mydir" refers to C:\Program Files\Microsoft Visual Studio 8\Common7
Is there any way I can get the "../" to refer to somewhere more convenient, ideally as /mydir within my project.
I could not find any settings in Visual Studio, which referred to this 'Common7' Directory.
Thanks
C# http://www.csharphelp.com/archives/archive36.html
VB.NET http://www.learnvisualstudio.net/Vid..._Then_Else.htm - video
If these are not good enough, google "conditiona l compilation" and whatever
language you are using.
Hope this helps.
--
Gregory A. Beamer
*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"mosscliffe " <pa***********@ googlemail.com> wrote in message
news:11******** **************@ g10g2000cwb.goo glegroups.com.. . Many thanks for the swift reply, but your solution is a bit ahead of my knowledge.
Is there an example anywhere of using RELEASE BUILDS and DEBUG switches. Cowboy (Gregory A. Beamer) wrote:
You can use a DEBUG switch to set a different path when in debug mode (on your local box). That would be the easiest. This means you will have to remember to create RELEASE builds when it goes to production, but you should already be doing that.
-- Gregory A. Beamer
*************** *************** *************** **** Think Outside the Box! *************** *************** *************** **** "mosscliffe " <pa***********@ googlemail.com> wrote in message news:11******** *************@p 79g2000cwp.goog legroups.com... >I need to reference a file on my published server as > "../mydir/myfile.txt", which is fine and it works. > > On my local develop computer the "../mydir" refers to C:\Program > Files\Microsoft Visual Studio 8\Common7 > > Is there any way I can get the "../" to refer to somewhere more > convenient, ideally as /mydir within my project. > > I could not find any settings in Visual Studio, which referred to this > 'Common7' Directory. > > Thanks > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bill Davy |
last post by:
I am building a C++ program (main.exe) with VC6 which expects to call the
Python DLL. When I start it (under the debugger), I get: "This application
has failed to start because python24_d.dll was not found. Re-installing the
application may fix this problem."
I built Python24_d.dll using VS.NET 2003 (which I bought specifically for
that purpose but cannot use for our project, boo hoo).
I am building a debug version of main.exe which...
|
by: malcolm |
last post by:
Hello,
We have a small team building a project that involves some 30 or so c#
assembly dlls. It is a client server application with 1 exe as the
starting point. The dlls and exe are sharing an assemblyinfo file that
has a strong name and version assiciated with it. We are having
problems in the way we have been developing. We have made two attempts
at this.
Attempt 1) In our first attempt, we basically had 1 folder that
|
by: brazilnut52 |
last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better
I have created a simple COM DLL in .NET by using the COM class template and by setting output to a type library (DLL). All the object does is return a string value. At this point I have not checked the option to register for COM interop in Visual Studio
So I go into Excel (where I want to use the object). Go to VB...
|
by: jemmaq99 |
last post by:
Using Visual Studio .NET 2003 I've tried to add a COM reference
to a Windows Form project via the Add Reference dialog (specifically
the Active DS Type Library) but always get the error message:
"A reference to 'Active DS Type Library' could not be added. The
type library wrapper tool 'tlbimp' cannot be found on this system.
Please re-install Visual Studio."
This occurs regardless of the actual tlb or dll selected and happens
on...
|
by: msnews.microsoft.com |
last post by:
Hi,
How do I add a reference in VC++.NET?
In VB.NET and VC#.NET, there's an option in "Project" menu called "Add
Reference". This will add a .NET DLL reference to the current project. After
I add a reference, I can start using the class in the DLL as follows:
Imports <TheNamespace>
| |
by: Francis Shanahan |
last post by:
Folks,
I have a base page which is the grand-daddy of all my pages. It inherits
from System.UI.Web.Page
From this I inherit a layout page.
From this I inherit the individual pages themselves.
The problem: My pages can no longer be brought up in the designer. I'm using
Visual Studio 2002 and these pages are written in asp.NET with the code
|
by: news.iq.ca |
last post by:
Hello.
I have created a class, "CompiledPage.vb", and I need to compile it. When I
run (using the VSNet Command Prompt):
____________________________________________________________
C:\Documents and Settings\Administrator>vbc /t:library /r:system.dll,
system.web.dll, "C:\Documents and Settings\Administrator\My Documents\My
Projects\ASPNETProjects\VSNet\CompiledForm\CompiledPage.vb"...
|
by: Mike Logan |
last post by:
I used WSDL.exe to generate a client side web proxy for a web service, called
the web service, got the results but an array returned by the web service is
not in the results.
However if I use "Add Web Reference" for the same service the same function
works appropriately.
Here is the client proxy generated from WSDL.exe
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("capeconnect:AppSec:AppSecPortType#getApplicationUsers",
|
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= |
last post by:
I am confused about something: Let's say I have a web application I've
developed and it's sitting in a directory called "Docroot". In that Docroot
folder is a Web.config and a Default.aspx.
Whe I run the application from within Visual Studio (2008), the URL in IE
when it runs is:
http://localhost:2635/Docroot/Default.aspx
with the "Docroot" directory included in the URL.
But, of course, when I run it in IIS (outside of Visual Studio),...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |