Why do I keep getting a warning that a reference cannot be overwritten when I compile?

N

nfr

I keep getting the following warning in my compile:
Warning: The dependency 'WBWebServices, Version=1.0.1289.13943,
Culture=neutral' in project 'WBWin' cannot be copied to the run directory
because it would overwrite the reference 'WBWebServices,
Version=1.0.1289.15088, Culture=neutral'.

If I delete and readd the reference, it compiles fine but when I come leave
and return to Visual Studio.NET, the error pops up again when I recompile
the project.
 
N

Nicholas Paldino [.NET/C# MVP]

nfr,

You are trying to compile a version of your assembly someplace where a
later version is already in place. Are you using automatic version
numbering on your assembly? In other words, are you explicitly controlling
the version number through the AssemblyVersion attribute?

Hope this helps.
 
N

nfr

Nicholas Paldino said:
nfr,

You are trying to compile a version of your assembly someplace where a
later version is already in place. Are you using automatic version
numbering on your assembly? In other words, are you explicitly controlling
the version number through the AssemblyVersion attribute?

I don't know. Everythihng is defaulted. Could that cause a problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top