Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-02-2004, 01:15 PM
dmytchak dmytchak is online now
Registered User
 
Join Date: 12-31-1969
Posts: 2
Unhappy CS0246 Error – Assembly Reference Issue

Good day. I searched the forum without finding anything that pertains to my issue. The problem that I have is with my references with VS.NET 2003. We have a standard build tree but the very prefix changes on whether the build is a developer’s build, hourly, weekly, production. For example:

D:\Hourly.product.2.7.23.09\project A\component A
D:\Hourly.product.2.7.23.09\project A\component B
D:\Hourly.product.2.7.23.09\project A\component C
D:\Hourly.product.2.7.23.09\project A\component D

D:\Hourly.product.2.7.23.09\project B\component E
D:\Hourly.product.2.7.23.09\project B\component F
D:\Hourly.product.2.7.23.09\project B\component G

D:\Hourly.AddIn.2.7.23.09\project C\component E
D:\Hourly.AddIn.2.7.23.09\project C\component F


All works well if the references are located in the same parent project (i.e. Product). However, when I add a reference to an external project (i.e. AddIn) the IDE adds a hard-code reference to the project’s HintPath.


D:\Hourly.product.2.7.23.09\project A\component A
D:\Hourly.product.2.7.23.09\project A\component B
D:\Hourly.product.2.7.23.09\project A\component C
D:\Hourly.product.2.7.23.09\project A\component D

D:\Hourly.product.2.7.23.09\project B\component E
D:\Hourly.product.2.7.23.09\project B\component F
D:\Hourly.product.2.7.23.09\project B\component G [References Component E from AddIn.<version>Project C and fails]

D:\Hourly.AddIn.2.7.23.09\project C\component E
D:\Hourly.AddIn.2.7.23.09\project C\component F


[component G csproj snipit]
<Reference
Name = "AddIn.Component E"
AssemblyName = " AddIn.Component E"
HintPath = "dmytchak.2.7\ AddIn.Component E\bin\Release\ AddIn.component E.dll" <- problem – dmytchak2.7 is my build tree. Build box is Hourly, Weekly, Prod/Label
/>
<Reference
Name = "Project A.Component A"
AssemblyName = " Project A.Component A
HintPath = "..\ Project A.Component A \bin\Release\Component A.dll"
/>


Since it looks like VS.NET does not support variables in the csproj files, Does Kinook offer a solution?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 03:07 PM.


Copyright © 1999-2023 Kinook Software, Inc.