How can I fix this system.runtime error?
The project is dot net 4,8 but I have no idea how to fix this. Im not sure whats its asking for either since I dont have the system.runtime referenced yet
68 Replies
further more googling for the system.runtime ddl version 4.0.0.0
adds some otehr error that probably isnt relevent
what does the ouput show
Severity Code Description Project File Line Suppression State
Error Unknown build error, 'Could not load type 'System.Security.SecurityRulesAttribute' from assembly 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.' yua
no, i mean, when you go to "Output," the big text box, what is in it
1>------ Build started: Project: yua, Configuration: Debug Any CPU ------
1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets(268,9): error MC1000: Unknown build error, 'Could not load type 'System.Security.SecurityRulesAttribute' from assembly 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 21:33 and took 04.411 seconds ==========
are you using NuGet packages?
no
im not using anything
i mean
i havent added any the system.runtime reference yet
(sorry im kind of dumb)
adding a dll i found on the internet
v4.0.0.0
dosent fix it
no, do not do that
okay
delete that, it will only make things worse
yah its deleted
where did these DrivePool.Comm and Cove.Util and stuff come from
its part of the sln
should i delete those?
you downloaded the code and added those projects to your solution?
i used another program to get the code of a program and convert it to a solution file
it had a bug where it wouldnt detect one of my usb drives
so i was tryna fix it
but
i cant seem to figure out how to compile
should i delete those files ?
to fix
the run time dependency error?
I had a simular error before and i fixed it
by going online
and downloding the dll for it
but this one is different
can you show the csproj file for all of these projects that you added
the part at the top is the part i need
.
i didnt make the csproj file
are there more?
?
more what
project files
no
if you open "Visual Studio Developer Powershell," then move into the
lib
folder with all of those DLLs, and then run
what does it printdlls downloaded off the internet are probably malware
oh bruh
the sln wouldnt open cuz dotnet wont install on my laptop
so i used a vm
but that also means the built exe will have malware right?
well okay, they might not be
but every single "download this dll" site i've seen has been very sketchy-looking
damn
it opens alot of windows
oh
uh
close them
try again with
dotnet frame work
v 4.8
it says that for all of them?
ok how about this one
go to the
bin
folder
oh, uh, i guess that is empty
hmhmmmm
ok, well, stay in the lib folder
uh
its empty
hm
ok
ok, so, what program did you use to export this csproj
dotpeek
GitHub
GitHub - icsharpcode/ILSpy: .NET Decompiler with support for PDB ge...
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform! - icsharpcode/ILSpy
where is the option to export to sln?
Save Code
Severity Code Description Project File Line Suppression State
Error (active) MC1000 Unknown build error, 'Could not find type 'System.Security.SecurityRuleSet' in assembly 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.8\Facades\System.Runtime.dll'.' DrivePool.UI C:\Program Files\dotnet\sdk\8.0.400\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets 211
this is the only error now
can you send what the new csproj looks like
and the rest of it
where does Microsoft.WindowsAPICodePack.dll come from
?
there is a Microsoft.WindowsAPICodePack.dll somewhere... where is it
uh
where should i check
if you do this
does Microsoft.WindowsAPICodePack show up in there
noe
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
the .NET SDK can build .NET Framework projects, even WPF ones
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
yes, the .NET 8 SDK can build .NET 4.8 WPF projects
which library is .NET Core
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
i am guessing the problem is that one of the dependencies is referencing System.Runtime.dll, which needs special care on .NET Framework, but because this is decompiled and not done through NuGet it's not there properly
and so the XAML compiler is failing
i can't figure out which dependency is causing it
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
so am i just cooked?
well still thanks for the help
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View