❔ I need help troubleshooting errors

I keep getting error MSB3823 and MSB3822 Status: Unfixed
44 Replies
Angius
Angius2y ago
Sorry, can't remember what those are Could you post the actual error messages?
"oghatmak3r"
"oghatmak3r"OP2y ago
C:\Program Files\dotnet\sdk\8.0.100-rc.2.23502.2\Microsoft.Common.CurrentVersion.targets(3343,5): error MSB3822: Non-string res ources require the System.Resources.Extensions assembly at runtime, but it was not found in this project's references. they have the same description
Angius
Angius2y ago
Try installing this nuget: https://www.nuget.org/packages/System.Resources.Extensions/ Seems like it's required to use non-string resources
"oghatmak3r"
"oghatmak3r"OP2y ago
C:\Program Files\dotnet\sdk\8.0.100-rc.2.23502.2\Microsoft.Common.CurrentVersion.targets(3343,5): error MSB3823: Non-string res ources require the property GenerateResourceUsePreserializedResources to be set to true should i manually set it?
Angius
Angius2y ago
Probably, yes
"oghatmak3r"
"oghatmak3r"OP2y ago
C:\Program Files\dotnet\sdk\8.0.100-rc.2.23502.2\Microsoft.Common.CurrentVersion.targets(3343,5): error MSB3823: Non-string res ources require the property GenerateResourceUsePreserializedResources to be set to true same error after setting it
Angius
Angius2y ago
GitHub
"MSB3823: Non-string resources require the property GenerateResourc...
We have a few projects that muti target .net core and the old fashioned .net framework. Some of these include binary resources (mostly images). With .net core 2.1 / 2.2 they build successfully but ...
Angius
Angius2y ago
Is this how you did it?
"oghatmak3r"
"oghatmak3r"OP2y ago
C:\Program Files\dotnet\sdk\8.0.100-rc.2.23502.2\Microsoft.Common.CurrentVersion.targets(3376,5): error MSB4067: The element <# text> beneath element <GenerateResource> is unrecognized im gettin all of the errors just so you know im building @ZZZZZZZZZZZZZZZZZZZZZZZZZ
Angius
Angius2y ago
Sorry, I'm out of ideas
"oghatmak3r"
"oghatmak3r"OP2y ago
its 4.6.1 just so you know
Angius
Angius2y ago
Ah, oof, tmat means I'll ne even less helpful lol
"oghatmak3r"
"oghatmak3r"OP2y ago
you want the csproj
Angius
Angius2y ago
Won't hurt
"oghatmak3r"
"oghatmak3r"OP2y ago
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<AssemblyName>BooruDownloader</AssemblyName>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<OutputType>WinExe</OutputType>
<UseWindowsForms>True</UseWindowsForms>
<TargetFramework>net461</TargetFramework>
<Prefer32Bit>True</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<LangVersion>11.0</LangVersion>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>app.ico</ApplicationIcon>
<RootNamespace />
</PropertyGroup>
<PropertyGroup>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
</PropertyGroup>
<ItemGroup />
<ItemGroup>
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Content Include="BooruDownloader\Form1.cs" />
<Content Include="BooruDownloader\Program.cs" />
<Content Include="BooruDownloader\gelEngine.cs" />
<Content Include="BooruDownloader\engineBase.cs" />
<Content Include="BooruDownloader\Detector.cs" />
<Content Include="BooruDownloader\DanEngine.cs" />
<Content Include="BooruDownloader.Properties\Settings.cs" />
<Content Include="BooruDownloader.Properties\Resources.cs" />
<PackageReference Include=".vscode\launch.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Resources.Extensions" Version="7.0.0" />
</ItemGroup>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<AssemblyName>BooruDownloader</AssemblyName>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<OutputType>WinExe</OutputType>
<UseWindowsForms>True</UseWindowsForms>
<TargetFramework>net461</TargetFramework>
<Prefer32Bit>True</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<LangVersion>11.0</LangVersion>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>app.ico</ApplicationIcon>
<RootNamespace />
</PropertyGroup>
<PropertyGroup>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
</PropertyGroup>
<ItemGroup />
<ItemGroup>
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Content Include="BooruDownloader\Form1.cs" />
<Content Include="BooruDownloader\Program.cs" />
<Content Include="BooruDownloader\gelEngine.cs" />
<Content Include="BooruDownloader\engineBase.cs" />
<Content Include="BooruDownloader\Detector.cs" />
<Content Include="BooruDownloader\DanEngine.cs" />
<Content Include="BooruDownloader.Properties\Settings.cs" />
<Content Include="BooruDownloader.Properties\Resources.cs" />
<PackageReference Include=".vscode\launch.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Resources.Extensions" Version="7.0.0" />
</ItemGroup>
</Project>
i know its xml based
Angius
Angius2y ago
So, uh, at a glance... you're using an ancient version of .NET Framework with the most recent version of C#, and you're loading System.Resources.Extensions version for .NET 7 Either of those things could've caused your build to blow up
"oghatmak3r"
"oghatmak3r"OP2y ago
after changing it the same error do you what the logs
Angius
Angius2y ago
After changing what, exactly?
"oghatmak3r"
"oghatmak3r"OP2y ago
Version="7.0.0" to Version="4.6.1"
Angius
Angius2y ago
There's no such version of this package https://www.nuget.org/packages/System.Resources.Extensions/#versions-body-tab As a side note... why are you making, what I assume is a greenfield project, with such an old version of — already old — .NET Framework?
"oghatmak3r"
"oghatmak3r"OP2y ago
decompiling with owners permission
Angius
Angius2y ago
Ah, well, decompiled code does have the right to break in unprecedented ways lmao
"oghatmak3r"
"oghatmak3r"OP2y ago
i doubt that there a small creator
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
"oghatmak3r"
"oghatmak3r"OP2y ago
It's far from resolved
JakenVeina
JakenVeina2y ago
What is the status of this issue?
"oghatmak3r"
"oghatmak3r"OP2y ago
Unsolved
JakenVeina
JakenVeina2y ago
what is unsolved?
"oghatmak3r"
"oghatmak3r"OP2y ago
Tbh what do you think
JakenVeina
JakenVeina2y ago
no idea, that's why I'm asking what is the issue that you're trying to solve?
"oghatmak3r"
"oghatmak3r"OP2y ago
C:\Program Files\dotnet\sdk\8.0.100-rc.2.23502.2\Microsoft.Common.CurrentVersion.targets(3343,5): error MSB3822: Non-string res ources require the System.Resources.Extensions assembly at runtime, but it was not found in this project's references.
JakenVeina
JakenVeina2y ago
seems kinda solved to me the answer given earlier was, essentially, "don't do that"
"oghatmak3r"
"oghatmak3r"OP2y ago
I just need to build something
JakenVeina
JakenVeina2y ago
whatever you're doing that you're trying to pull in a package that was never built for 4.6.1, you probably simply can't do it
"oghatmak3r"
"oghatmak3r"OP2y ago
I have version 8
JakenVeina
JakenVeina2y ago
but the project you're trying to build is 4.6.1
"oghatmak3r"
"oghatmak3r"OP2y ago
Could I just change it from net461 to net700
JakenVeina
JakenVeina2y ago
you could try it's almost certainly not going to involve "just" doing that it's probably going to introduce other errors that you'll have to resolve by re-writing bits of code that no longer exist in .NET 7
"oghatmak3r"
"oghatmak3r"OP2y ago
Isn't there alternatives for those lines
JakenVeina
JakenVeina2y ago
yes, that's what you'll need to figure out and re-write
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
"oghatmak3r"
"oghatmak3r"OP2y ago
My computer slow af
JakenVeina
JakenVeina2y ago
sweet
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?