✅ Can someone explain CA1416 about a call site only being reachable on ...
I'm getting the following warning that I don't understand.
Both assemblies involved have the same .NET and Windows versions specified. I keep checking that.
46 Replies
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
That doesn't explain things either. Both libraries have the same settings. The image on the left is the DLL using the one on the right (Network).
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Do note that the Network class is inside IRC.Data.
^^^
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Both target the same platform.
BestChat.IRC.Data.Defs.Network
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
No, it stores the definition of an IRC network.
Yes.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Well, Network is declared as:
Here's
Platform.Data.Ob<Network>
:
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Well, that'll be preferred.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Ah. I remembered where
IDataDef
was.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Well, I didn't know of that attribute and I wrote every line.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
As I said, I wrote all of it.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
It won't because I know my code.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
I'm on the wrong computer at the moment.
That returned nothing. Attributes with "supported" are in there, but they're all assemblyinfo.cs.
Ironically, I did find the string "supported" in Network.cs, it's throwing a
NotSupportedException
.Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
But I'm dealing with a compiler error.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
As I said, that's code in the file. Nothing is actually throwing it.
All I said, was I found the string.
That returned nothing.
The code you referred to requires the network manager to be told to add a network with name "X", but it already has a name. The UI code should prevent it.
Nothing to do with platforms.
I should change that to
InvalidProgramException
.Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Yes.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
As I said, I'm in the wrong room.
I'm accessing the files remotely.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
What's that?
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
Well, I've had problems checking code in. VS seems to have decided to store some projects as absolute file names in the solution file. Now it won't send them to GIT because it thinks they're outside the solution folder.
There's a thread in here about that that's been ignored.
https://discord.com/channels/143867839282020352/1160338972233449572
I put it on the Learn.microsoft.com Q&A site too--again with no response.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
And be careful saying "provide repo" as "repo" can be either "repository" or "reproduction".
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
They do hava a common parent.
The solution folder.
Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View
I tried that too.
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
@TeBeClone I just noticed two of the projects targeted an older framework. Instead of
<TargetFramework>net7.0-windows</TargetFramework>
, they had <TargetFramework>net6.0...</TargetFramework>
. I replaced that and the target problem seems to have gone away. As for the relative paths, that seems to have been solved by a combination of your suggestion and completing replacement of the absolute paths.Unknown User•14mo ago
Message Not Public
Sign In & Join Server To View