CS0006 Can't find metadata dll, but paths are correct
I have a project,
BestChat.Prefs.GUI.Ctrls.csproj
which references the DLL project BestChat.Prefs.Data
. I'm getting the error shown below:
I don't understand why. The line from BestChat.Prefs.GUI.Ctrls.csproj
is <ProjectReference Include="..\BestChat.Prefs.Data\BestChat.Prefs.Data.csproj" />
. BestChat.Prefs.Data
is one directory up. So the relative path should be correct.
What's going on and how do I fix it?90 Replies
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
I haven't been able to check it in. Got some new projects.
I could 7z it and send it to you that way.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Well, the project is Best-Chat, but again, I haven't been able to check it in as it stopped compiling. I've been fighting to get it compiling again.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
And delete it later?
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
GitHub
GitHub - ChatZilla-Replacement-Project/Best-Chat at CS0006Debuggin
This is a mockup done in C# and WPF. Some functionality is present. - GitHub - ChatZilla-Replacement-Project/Best-Chat at CS0006Debuggin
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
I don't see any errors on that assembly.
what if u remove
From IRC.Data csproj
or replace it with a sane directory
or do u have that bin folder set in your system
c:\bin
No.
Not there.
that was the only issue I had to build
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
I took that line out with no changes.
well I cloned the project u provided above removed it and it all build
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Same here.
which project are u building
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
I had the wrong name when I recreated the project. Which one?
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
I know that.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
As I noted.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
No, a DLL.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
I did.
I no longer have occurences of "Best_" in any of my text files.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
No, correct namespace is
BestChat.GUI.Ctrls
.Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Which source was that in?
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Find in Files didn't find it.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Ah.
ConversationViewCtrl.xaml
.Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
No it wasn't.
It's a missing project in the solution.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Take 200 mg of Seroquel and call me in the morning—if you wake up in the morning rather than hours later.
I made changes to the branch, but it still isn't working. Many of which @TeBeCo and @leowest suggested.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
😉 Sorry.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
unhappily I couldn't reproduce the same issue tebeco did on the same branch so I can't provide any insight on the matter.
😦
little side note
Code
folder conventionally is src
also why so many regions :/¯\_(ツ)_/¯
IRC.Global.View.Ctrls
is missing the dependency of project IRC.Data
and apparently IRC.Global.View.Ctrls
is missing dependency of BestChat.GUI.Ctrls
this project is a mess, how did it get in this state
also there's an IRC
namespace collision, so you have to do this (or solve it in another way)
same in PortEditorDlg
THEN i guess stuff has been moved because this should change
and this should change too
ok this thing finally loads (and compiles)
Never mind. I was in the incorrect version of the project.
Hmm. The Resource Editor is using the incorrect namespace.
IRC.Global.View
isn't BestChat.IRC.Global.View
.
And I don't see a way to tell it to use the correct namespace.
Ah.i put it up there
this
or you mean changing it in the other way
Correcting which namespace
Resources
is in.i believe you have to change the assembly name or default namespace
best thing to me would be not using Resources at all
they have always been a hindrance to me
I started using
Rsrcs
instead.
Which window was that?
I just fixed the second in that post. When I recreated the project file, I didn't realize the default namespace and default assembly name were wrong.
ConversationViewCtrl
had that error. I'm assuming it was there.it's mainly two files that had problems
conversation view and NetworkEditorDlg
Well, it isn't compiling yet for me.
Still investigating.
after changing some of this dependencies stuff i would suggest restarting visual studio because it doesn't behave really well
Done.
Didn't help yet.
what do you get, classes not found?
Yes. All from XAML.
then it's either missing a dep to a components project or the BestChat namespace
Well, I don't see that in Nevermind.
NetworkEditorDlg.xaml
. It calls on IrcCtrls:ChanServOptComboBox
. That's in xmlns:IrcCtrls="clr-namespace:BestChat.IRC.Global.View.Ctrls;assembly=BestChat.IRC.Global.View.Ctrls"
. And the declaration for the combobox? namespace BestChat.IRC.Global.View.Ctrls { class ChanServOptComboBox : System.Windows.Controls.ComboBox
Oh.
Ctrls
versus Controls
. Duh.Controls
was in the base class specification.
It's the assembly name.this then (the second diff)
i saw that in the csproj the project should have assembly name BestChat.$(project name)
but assembly is output with just project name
My RESX file isn't being saved to the designer.cs file.
Trying to force it to be recreated.
But it won't recreate
Resources.designer.cs
.
That csproj was missing an <itemgroup>
the other projects had. How does the compiler know when to update the *.designer.cs
file?
That project doesn't have a *.csproj.user
file. Is one needed? What do they do?
Ah, it needed the custom build tool ResXFileCodeGenerator
. Why was that missing even after I removed the RESX from the project and readded it.
I updated the branch in GitHub. If you could try my version again, maybe we'll figure out what's going on. I'm not seeing what's going on with controls from two DLLs: BestChat.Platform.Prefs.Ctrls
and BestChat.IRC.Global.View.Ctrls
. Both look like the namespaces and assembly names are correct and match.i believe that's just settings
doeesn't work yet? 😐
Nope.
😦
eh i should have made a pr
there are a bunch of errors
also formatting really sucks (again)
Formatting?
yeah some lines are just wrapped at a certain length without real indentation
Define "real indendation".
any indendation that is not all the text put in a sequential way until it reaches the end of the view
And in what was is it not that?
an array initialization with long names interrupted in random points
Define random. Got a sample?
it's full of samples
So how is it "random"? Looks consistent to me.
I wrap when things don't fit on screen.
lines are interrupted in random places instead of respecting readability
anyway i think i'm getting to a compilable code
I find them readable.
Though I have a friend who still names everything with names like
P
, Q
, and z
. He makes everything static in as few classes as possible and those are all global. He insists it's readable.everyone's got his schtick, that's why conventions exists
this has literally no structure
and without knowing what it is you have to follow all the ? : to understand how it works
with even a minimal indentation (which you can take advantage of to enrich the experience, let's say) everyone can immediately visually parse that it's a relatively simple nested condition
but again everyone manages his projects to his likings, conventions are not dogmas
im down to 1 error, but essentially i think it works
i touched 16 files to make it work
(well one is .gitignore)
i'll make a pr
nope i can't because github is stupid
retrying
done
With
<ProjectReference Include
paths, what are the paths relative too? I thought it was the location of the csproj file that incldues them. But it insists on adding duplicates only the duplicates are relative to the wrong locations.https://stackoverflow.com/questions/49477149/relative-paths-in-sln-csproj-files-of-c-sharp-netstandard-project shows I was correct.
Stack Overflow
Relative paths in *.sln *.csproj files of c# .NetStandard project
Basically what the titles says. I have a .NetStandard library which I am working on from both windows and linux. My issue is that the reference paths are fully specified.
Let's say in this case, I...
I closed the pull request and made the changes manually as some were junk like indentation "fixes" that broke the indentation. Not indenting inside the
#region
of a cs file is stupid. It makes it harder to follow the code. Also, some of the one-line constructors were remaining that way as more code was anticipated. But there are still issues and I checked those into the branch.i know, it's visual studio applying standard formatting settings
there is an .editorconfig in the project but it's practically empty
I'm going to look at your changes. I'm thinking of moving everything over to Avalonia and rearranging stuff when I do that. So I may have to fix a lot of this again. 😦
Huh? In PluginsExtWhereToLookPage.xaml, you put
</PrefsCtrls:VisualTabCtrl>
immediately after <grid>
. Nothing but whitespace in between.
In PrefsGenericTreeListerPage.xaml, you changed xmlns:local
to xmlns:Things
, but didn't change all the places the local
namespace was used.
What effect would changing that namespace name have? Any?it was just a temp commit to try make it compile first
i put all the stuff back after
no effect, i was testing the xaml