C
C#8mo ago
"oghatmak3r"

❔ I need help troubleshooting errors

I keep getting error MSB3823 and MSB3822 Status: Unfixed
44 Replies
Angius
Angius8mo ago
Sorry, can't remember what those are Could you post the actual error messages?
"oghatmak3r"
"oghatmak3r"8mo 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
Angius8mo 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"8mo 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
Angius8mo ago
Probably, yes
"oghatmak3r"
"oghatmak3r"8mo 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
Angius8mo 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
Angius8mo ago
Is this how you did it?
"oghatmak3r"
"oghatmak3r"8mo 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
Angius8mo ago
Sorry, I'm out of ideas
"oghatmak3r"
"oghatmak3r"8mo ago
its 4.6.1 just so you know
Angius
Angius8mo ago
Ah, oof, tmat means I'll ne even less helpful lol
"oghatmak3r"
"oghatmak3r"8mo ago
you want the csproj
Angius
Angius8mo ago
Won't hurt
"oghatmak3r"
"oghatmak3r"8mo 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
Angius8mo 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"8mo ago
after changing it the same error do you what the logs
Angius
Angius8mo ago
After changing what, exactly?
"oghatmak3r"
"oghatmak3r"8mo ago
Version="7.0.0" to Version="4.6.1"
Angius
Angius8mo 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"8mo ago
decompiling with owners permission
Angius
Angius8mo ago
Ah, well, decompiled code does have the right to break in unprecedented ways lmao
"oghatmak3r"
"oghatmak3r"8mo ago
i doubt that there a small creator
Accord
Accord8mo 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"7mo ago
It's far from resolved
JakenVeina
JakenVeina7mo ago
What is the status of this issue?
"oghatmak3r"
"oghatmak3r"7mo ago
Unsolved
JakenVeina
JakenVeina7mo ago
what is unsolved?
"oghatmak3r"
"oghatmak3r"7mo ago
Tbh what do you think
JakenVeina
JakenVeina7mo ago
no idea, that's why I'm asking what is the issue that you're trying to solve?
"oghatmak3r"
"oghatmak3r"7mo 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
JakenVeina7mo ago
seems kinda solved to me the answer given earlier was, essentially, "don't do that"
"oghatmak3r"
"oghatmak3r"7mo ago
I just need to build something
JakenVeina
JakenVeina7mo 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"7mo ago
I have version 8
JakenVeina
JakenVeina7mo ago
but the project you're trying to build is 4.6.1
"oghatmak3r"
"oghatmak3r"7mo ago
Could I just change it from net461 to net700
JakenVeina
JakenVeina7mo 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"7mo ago
Isn't there alternatives for those lines
JakenVeina
JakenVeina7mo ago
yes, that's what you'll need to figure out and re-write
Accord
Accord7mo 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"7mo ago
My computer slow af
JakenVeina
JakenVeina7mo ago
sweet
Accord
Accord7mo 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.
Want results from more Discord servers?
Add your server
More Posts