PC Review


Reply
Thread Tools Rate Thread

Assembly Reference Problems

 
 
Ryan Gregg
Guest
Posts: n/a
 
      1st Mar 2004
I'm having a major problem with assembly references that I keep running
into, and I'm really hoping that someone can help me out. The problem
occurs when I have three projects in my solution, two of which I have
developed in VB.NET and one in C#. When I use Project A (VB) inside Project
B (C#), and then from Project C (VB) reference methods of Project B that
uses classes from Project A, I get an error that indicates I need to include
a reference to the original project. However, I've already included a
reference, and in fact can use the same exact type that I'm trying to use
that's generating an error on the function call anywhere else in the
function.

I have a more detailed write up of the problem, with some example code that
reproduces the problem in very few lines on my website at
http://ryangregg.com/archive/2004/01/21/188.aspx. If someone out there
could take the time to look at this and see if they can give me a solution,
I would very much appreciate it.

Thanks in advance.

Ryan Gregg


 
Reply With Quote
 
 
 
 
Gagik A
Guest
Posts: n/a
 
      2nd Mar 2004
Ryan,
I posted the following on your web site at
http://ryangregg.com/archive/2004/01/21/188.aspx
-------------------------------------------------
This seems to be a known bug in VS.NET with cross-referencing VB and C#
assemblies, please refer to the following google links for symilar posts.
(the URLs are quite long and may wrap around)

[URL #1]
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=QZdkywmJDHA.2284%40cpmsftngxa06.phx.gbl&rnum=10&prev=/groups%3Fsourceid%3Dnavclient%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dproject-to-project%2Bassembly%2Breference>&lr=&ie=UTF-8&oe=UTF-8&threadm=QZdkywmJDHA.2284%40cpmsftngxa06.phx.gbl&rnum=10&prev=/groups%3Fsourceid%3Dnavclient%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dproject-to-project%2Bassembly%2Breference

[End of URL #1]

[URL #2]
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=eWmg4OEkCHA.2736%40tkmsftngp10&rnum=7&prev=/groups%3Fsourceid%3Dnavclient%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dproject-to-project%2Bassembly%2Breference>&lr=&ie=UTF-8&oe=UTF-8&threadm=eWmg4OEkCHA.2736%40tkmsftngp10&rnum=7&prev=/groups%3Fsourceid%3Dnavclient%26ie%3DUTF-8%26oe%3DUTF-8%26q%3Dproject-to-project%2Bassembly%2Breference

[End of URL #2]

Looks like the only way out of this is either to rewrite the code using the
same language, or to reference the binary assemblies instead of projects.

My company is the author of a build automation and management tool called
VisualMake (http://www.visualmake.com), which, among other things, will
resolve the project references to their respective binaries during build
time. I just built your sample solution using VisualMake - no problem at
all. If you want to try it, a fully functional trial is available from the
web site.

Regards
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assembly Reference Problems Ryan Gregg Microsoft Dot NET 2 8th Oct 2004 03:30 AM
Problems adding a reference with COM --converting to type .NET assembly failed Molly J. Fagan Microsoft Dot NET Framework 4 24th Aug 2004 03:01 AM
The located assembly's manifest definition with name 'xxxxxx' does not match the assembly reference??? Bob Rock Microsoft Dot NET Framework 0 22nd Apr 2004 04:09 PM
The located assembly's manifest definition with name 'xxxxxx' does not match the assembly reference??? Bob Rock Microsoft Dot NET 0 22nd Apr 2004 04:06 PM
The located assembly's manifest definition with name 'xxxxxx' does not match the assembly reference??? Bob Rock Microsoft Dot NET Framework 0 22nd Apr 2004 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.