473,385 Members | 1,465 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,385 software developers and data experts.

File Referances debug vs. release mode

We are currently setting up our environment to file reference any assemblies
we plan on putting in the GAC. To prevent the developer from having to go
get the newest copy of the file and register it in the GAC we are planning
on having a common share where these files will live. So what we would like
to accomplish is this:

In Debug mode have the file reference there, with copy locally set to true,
but in release mode have the copy local set to false.

Any ideas on how to best accomplish this?
Thanks
Wayne Sepega
Feb 6 '06 #1
2 2038
Read up on "binding policy" in MSDN. A good place to start is
http://msdn.microsoft.com/library/de...assemblies.asp.

Rather than compiler directives,, you control assembly binding through the
application configuration file, publisher policy files, or machine.config.

HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Wayne Sepega" wrote:
We are currently setting up our environment to file reference any assemblies
we plan on putting in the GAC. To prevent the developer from having to go
get the newest copy of the file and register it in the GAC we are planning
on having a common share where these files will live. So what we would like
to accomplish is this:

In Debug mode have the file reference there, with copy locally set to true,
but in release mode have the copy local set to false.

Any ideas on how to best accomplish this?
Thanks
Wayne Sepega

Feb 7 '06 #2
I know how to control the bindings in such ways, but that's not what I was
trying to accomplish. Here's what I am trying to do, bit re-worded and
hopefully a bit more clear.

1) Allow file references for items that will be placed in the GAC in a
release set up
2) Not force the developer to have to add each assembly to their GAC on
their local box every time a change is made to the assembly
3) Have a common place for the assemblies
4) Still be able to debug the assemblies
5) Not have the assemblies deployed with the application in release mode
So say I have the following setup:

All projects are on P:
All GAC assemblies are available to the developers on K:

I want to add a reference to an assembly on K: to my project on P:, this
assembly needs to be copied local for debugging as I do not want to have to
put it in the GAC on my machine.

Now when I do a RELEASE mode build I don't want the Assembly copied locally
as I don't want it included in my deployment package, nor do I want to have
to remember to delete the assemblies each time I do a release build.

What I need to do is figure out how to flip the Copy Local value based on
build selection.

Thanks
Wayne

"Dale" <da******@nospam.nospam> wrote in message
news:4B**********************************@microsof t.com...
Read up on "binding policy" in MSDN. A good place to start is
http://msdn.microsoft.com/library/de...assemblies.asp.

Rather than compiler directives,, you control assembly binding through the
application configuration file, publisher policy files, or machine.config.

HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Wayne Sepega" wrote:
We are currently setting up our environment to file reference any
assemblies
we plan on putting in the GAC. To prevent the developer from having to go
get the newest copy of the file and register it in the GAC we are
planning
on having a common share where these files will live. So what we would
like
to accomplish is this:

In Debug mode have the file reference there, with copy locally set to
true,
but in release mode have the copy local set to false.

Any ideas on how to best accomplish this?
Thanks
Wayne Sepega

Mar 6 '06 #3

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

Similar topics

6
by: paul calvert | last post by:
I hope somewhere here has encountered and solved a similar problem in the past. 1) on a new Win2000 PC: installed Visual C++ 6.0 download & install single file Service Pack 5.0 2) try to...
3
by: Haldun ALIML | last post by:
Suppose that you have below property in some class, #if DEBUG public string DebugInfo { get { return "INDEX : " + _name + "\n" + "Index Owner : " + _owner.Name + "\n" + "Index Column Count:...
9
by: Michael.Suarez | last post by:
Suppose I have a program that prompts you with a dialogbox to enter a password. If you get the password correct, it allows you into the program, else it kills the program. Suppose that when I...
5
by: B. | last post by:
We just recently move to code from VC++6 to VC++.NET 2005 and upgrade the warning level from 3 to 4. In debug mode, we compile the application with no warning no error, but when I build it in...
5
by: JM | last post by:
I have created a Windows Service which uses xml file as a data source. The service is running on .NET 2.0 and uses LocalSystem account. It was running fine but now it has started locking the xml...
3
by: prajakta143 | last post by:
Problem Statement: Is there any way to recognize the binary file is in Release mode or in Debug mode from the core file :: Details :: I have core file with me, & wan't to know the mode of...
2
by: Dave Johansen | last post by:
I just converted a solution from Visual Studio 2003 to Visual Studio 2005 and the Debug mode seems to be running just fine, but the Release mode crashes on the following code: std::ifstream...
0
by: =?Utf-8?B?SmVmLnB0Yw==?= | last post by:
Hi, I am currently facing exactly the same issue with Visual Studio 2005. Did you find a way to solve this problem ? "AntonioSACE" wrote:
3
by: =?Utf-8?B?bG10dGFn?= | last post by:
We have developed a number of different applications (ASP.NET web site, Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed and unit tested all these applications/components...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.