473,811 Members | 3,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Issue with project reference - csproj.user

Hi,

Here is my issue with VS.NET IDE project reference:

I have a project (myproj.csproj) referencing a non-GACed strongly named
assembly (comp.dll 2.0.1.0) with copy local = true; we also have a comp.dll
2.1.0.0 version GACed. when I close the project and reopen it, the reference
is still ok and point to the right version (2.0.1.0). BUT if I remove the
myproj.csproj.u ser and then re-open the project, the reference will be
changed by VS.NET IDE to 2.1.0.0 - this will cause a problem for our build
process because when the build master checkout this project file w/o the
myproj.csproj.u ser file and the reference to comp.dll will be changed to
newer version that exists in GAC. One way of solving this issue is to check
in the myproj.csproj.u ser (but this sounds wierd), any other good solution
or settings somewhere to force the .csproj to use hard reference such as
C:\VSS\Somewher e and not use the relative path such as "..\..\..\Somew here"?

Thanks a lot!

John
Nov 17 '05 #1
1 9753
Hi John,

Welcome to .NET newsgroup.
As for the assembly reference problem you mentioned, this is an expected
behavior since the VS.NET will lookup assembly through the csproj.user file
first( has higher priority). Though there are also "hint path"s in the
csproj (project file), they'll only be referenced when IDE fail to find
assembly in the csproj.user specified path. And when we deleting the
csproj.user , some default wellknown location will be searched such as GAC.
Currently there seems haven't any better means to let the IDE directly
reference the paths in csproj file or ingore the csproj.user file. Also the
following blog article has also discussed on this problem:

#Assembly Reference Resolving in Visual Studio.
http://objectsharp.com/Blogs/barry/a...10/29/988.aspx

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 17 '05 #2

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

Similar topics

2
1742
by: Stan | last post by:
My project folder path is c:\Projects\FinWeb. I set up FinWeb virtual folder in IIS and pointed it to that path. I can access the web site via http://localhost/FinWeb. However, when I try to add FinWeb web project to a solution by using Add Existing Project from Web, the project isn't there (not under localhost). I can point to c:\projects\FinWeb and add the project this way and everything works fine, but when the solution is opened...
2
1940
by: Matt | last post by:
When I tried to open an existing proj1.csproj in VS.NET 2003. It pops up a dialog saying "The project 'proj1.csproj' must be converted to the current project format. After it has been converted, you will not be able to edit this project in previous versions of Visual Studio. Convert and open this project?" I am not sure what VS.NET version to create proj1.csproj. Is it because proj1.csproj was created by older version of VS.NET? So the...
4
2893
by: Brad | last post by:
I'm not one to rant or flame....so please excuse me while I do so for this once. I've now spent a bit of time working with VS2005 beta 2 to see how it functions for web development, especially how our current extensive number of .Net 1.1 web apps convert to it. After a week's time I dont's mind the converted app code that was broken and had to be changed, due to deprecation, new framework classes (some of which have names identical to...
3
2453
by: John M | last post by:
Hello, I have problem when copying the sln application to other computer. The project is on directory phones. The other computer cannot even open the application : doesn't find the application in the directory : webapplication1.
9
5450
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could be able to generate and compile the project on the enviroments where Visual Studio.Net is not installed. Thanks and Regards, Anubhav Jain MTS Persistent Systems Pvt. Ltd. Ph:+91 712 2226900(Off) Extn: 2431 Mob : 094231 07471
4
1389
by: Anbu | last post by:
Hi All, I'm creating an ASP.NET 2.0 web solution using VS 2005. The solution (.sln) contains 4 projects, one depends on another. I need to compile the project files using automated process, which will call the compilation process project by project. How can i compile a project alone from the solution?? In earlier version of VS, the project information was stored in a
0
1288
by: ping235 | last post by:
Recently, i am busying myself on a project that support both the Full ..NET Framework 2.0 and .NET Compact Framework 2.0, with the same set of c# code, but have different project properties and references. The question is how could I achieve this, should i create separate project for each purpose? The most simple approach is creating two separate projects, but i'll must maintain two sets of codes.
4
4185
by: Max2006 | last post by:
Hi, When I use Web Deployment Project to create a deployment image of my web site, It includes un-necessaty files such as *.csproj files. Can I disable the deployment of *.csproj files?
2
1187
by: nelsonbrodyk | last post by:
Hey All, I am getting an oddity around the csproj files, and am hoping someone has a solution. I will use an example to explain it. I have Project A, and Project B. B depends on A, and A was added to A as a reference. A depends on 2 external dll's. When I build A, these 2 dll's get put into A/bin/debug. However when I build B, these 2 dll's do not get put into B/bin/debug, only A.dll does.?!
0
9604
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,...
0
10644
Oralloy
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...
1
10394
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10127
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 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...
1
7665
isladogs
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...
0
5552
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...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.