C
C#2y ago
ashl

❔ can't get cloned repo to build

hello. i usually use python, but i need to use this thing written in c sharp, and i'm having trouble getting it to build. does anyone know how to troubleshoot this issue? here is the build script:
dotnet restore FreecraftCore.Serializer.sln
dotnet build FreecraftCore.Serializer.sln -c Release
dotnet restore FreecraftCore.Serializer.sln
dotnet build FreecraftCore.Serializer.sln -c Release
here is the error:
C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\tests\FreecraftCore.Serializer.Compiler.ManualTest\Freecr
aftCore.Serializer.Compiler.ManualTest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.win-x64
. No packages exist with this id in source(s): C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\Freecr
aftCore.Serializer.Compiler\bin\Release, C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftCor
e.Serializer.Metadata\bin\Release, C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftCore.Seri
alizer\bin\Release [C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\FreecraftCore.Serializer.sln]
C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\tests\FreecraftCore.Serializer.Performance.Tests\Freecraf
tCore.Serializer.Performance.Tests.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.win-x64. No
packages exist with this id in source(s): C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftC
ore.Serializer.Compiler\bin\Release, C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftCore.Se
rializer.Metadata\bin\Release, C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftCore.Serializ
er\bin\Release [C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\FreecraftCore.Serializer.sln]
C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\tests\FreecraftCore.Serializer.Compiler.ManualTest\Freecr
aftCore.Serializer.Compiler.ManualTest.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.win-x64
. No packages exist with this id in source(s): C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\Freecr
aftCore.Serializer.Compiler\bin\Release, C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftCor
e.Serializer.Metadata\bin\Release, C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftCore.Seri
alizer\bin\Release [C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\FreecraftCore.Serializer.sln]
C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\tests\FreecraftCore.Serializer.Performance.Tests\Freecraf
tCore.Serializer.Performance.Tests.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.win-x64. No
packages exist with this id in source(s): C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftC
ore.Serializer.Compiler\bin\Release, C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftCore.Se
rializer.Metadata\bin\Release, C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\FreecraftCore.Serializ
er\bin\Release [C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\FreecraftCore.Serializer.sln]
48 Replies
Mango
Mango2y ago
Did you install the .NET Core SDK from Microsoft
ashl
ashlOP2y ago
yeah
mtreit
mtreit2y ago
That looks like your nuget.config is not normal
ashl
ashlOP2y ago
i can post that
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="HelloKitty Github" value="https://www.myget.org/F/hellokitty/api/v2" />
<add key="HelloKitty Github" value="https://www.myget.org/F/freecraftcore/api/v2" />
</packageSources>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="HelloKitty Github" value="https://www.myget.org/F/hellokitty/api/v2" />
<add key="HelloKitty Github" value="https://www.myget.org/F/freecraftcore/api/v2" />
</packageSources>
</configuration>
Mango
Mango2y ago
Also what Visual Studio version (year) are you using. 2022?
ashl
ashlOP2y ago
i will check 2022
mtreit
mtreit2y ago
Does "nuget restore" work?
Mango
Mango2y ago
Do the keys need to be unique? @mtreit Duplicate key in the last 2 entries
ashl
ashlOP2y ago
dotnet nuget restore
Specify --help for a list of available options and commands.
error: Unrecognized command or argument 'restore'
NuGet Command Line 6.6.0.66

Usage: dotnet nuget [options] [command]
dotnet nuget restore
Specify --help for a list of available options and commands.
error: Unrecognized command or argument 'restore'
NuGet Command Line 6.6.0.66

Usage: dotnet nuget [options] [command]
mtreit
mtreit2y ago
Not sure but that definitely looks broken Not sure what that hello kitty thing is anyway
ashl
ashlOP2y ago
thats the github profile that posted the repo
mtreit
mtreit2y ago
Try a standard nuget.config with just nuget.org
ashl
ashlOP2y ago
how do i do/get that
mtreit
mtreit2y ago
dotnet new nugetconfig
ashl
ashlOP2y ago

C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer> dotnet new nugetconfig --force
The template "NuGet Config" was created successfully.

C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer> dotnet new nugetconfig --force
The template "NuGet Config" was created successfully.
still errors
mtreit
mtreit2y ago
If you do "manage nuget packages" inside visual studio does it show nuget.org in the source dropdown and can you browse for packages?
ashl
ashlOP2y ago
heres more of the output, including some warnings
ashl
ashlOP2y ago
will open vs
mtreit
mtreit2y ago
Try upgrading that package reference to the latest version
ashl
ashlOP2y ago
how do i do that
mtreit
mtreit2y ago
Browse for the package in VS in the Manage Nuget Packages UI Or go to nuget.org and look up the latest version of the package it's complaining about
ashl
ashlOP2y ago
which package is it complaining about
mtreit
mtreit2y ago
Read the error you posted
mtreit
mtreit2y ago
mtreit
mtreit2y ago
FreecraftCore.Serilizer.Compiler
ashl
ashlOP2y ago
Latest version: 4.1.62
mtreit
mtreit2y ago
Try that
ashl
ashlOP2y ago
PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer> dotnet add package FreecraftCore.Serializer.Compiler --version 4.1.62
Could not find any project in `C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\`.
PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer> cd src
PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src> ls


Directory: C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src


Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 14/06/2023 06:42 FreecraftCore.Serializer
d----- 14/06/2023 06:42 FreecraftCore.Serializer.Compiler
d----- 14/06/2023 06:52 FreecraftCore.Serializer.Metadata


PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src> dotnet add package FreecraftCore.Serializer.Compiler --version 4.1.62
Could not find any project in `C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\`.
PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src>
PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer> dotnet add package FreecraftCore.Serializer.Compiler --version 4.1.62
Could not find any project in `C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\`.
PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer> cd src
PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src> ls


Directory: C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src


Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 14/06/2023 06:42 FreecraftCore.Serializer
d----- 14/06/2023 06:42 FreecraftCore.Serializer.Compiler
d----- 14/06/2023 06:52 FreecraftCore.Serializer.Metadata


PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src> dotnet add package FreecraftCore.Serializer.Compiler --version 4.1.62
Could not find any project in `C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src\`.
PS C:\Users\Nick\Desktop\fcc serializer\FreecraftCore.Serializer\src>
sorry i have no idea how to install it nevermind got it running the numbers of errors increased in the new build attempt
ashl
ashlOP2y ago
ashl
ashlOP2y ago
heres an image, if its easier to read
mtreit
mtreit2y ago
I could probably fix this in a few minutes if I wasn't on my phone and not near a computer
ashl
ashlOP2y ago
right now does it seem like its just a matter of getting the exact version of this thng right?
mtreit
mtreit2y ago
You can probably switch to using 4.1.6 to fix at least some of the errors The one about a cycle is interesting Also the package it says it can't find at all, I would just try deleting that PackageReference entirely
ashl
ashlOP2y ago
here are some errors i found in downloading the package from before
mtreit
mtreit2y ago
Yeah that AppHost package sounds like some super old thing Get rid of that reference
ashl
ashlOP2y ago
it says cycle detected^ heres more errors from trying to download the 4.1.6
ashl
ashlOP2y ago
so go back to the original package?
mtreit
mtreit2y ago
No, probably not It seems to not exist At least on the public NuGet repository This feels like some old outdated project you are trying to build, when was it last updated?
Mango
Mango2y ago
4 months ago
mtreit
mtreit2y ago
Hmm
Mango
Mango2y ago
Its a protobuf serializer / deserializer for a WoW emulator
mtreit
mtreit2y ago
I would need to actually clone the repo and debug it probably. Not at a computer though. It's rare for NuGet packages to get deleted. Typically they can be hidden from discovery but are left around to not break existing projects. There are exceptions like if there was a severe security vulnerability.
Mango
Mango2y ago
Owner probably republished it maybe. Looks like this is an old project using the library which is still maintained. I'm also on my phone or else I'd do that for ya According to the Github the library first released 7 years ago That'd dedication for a library with 1 contributor on it sheesh
ashl
ashlOP2y ago
i got rid of 1 error by trying the nuget.config from the repo again. not sure which error
ashl
ashlOP2y ago
tried downloading last commit for 4.1.61 errors, but no warnings or anything about versions:
ashl
ashlOP2y ago
HelloKitty — Today at 14:08
The latest 4.x version of the Serializer has a strange work around that requires a built local release version to compile the test framework if I recall. I encountered some troubles with testing the new C# 9 source generator version of the serialization library without some workarounds. So it's not referenced directly. But there is little reason to build it as afaik the latest version is what's on nuget atm.
HelloKitty — Today at 14:08
The latest 4.x version of the Serializer has a strange work around that requires a built local release version to compile the test framework if I recall. I encountered some troubles with testing the new C# 9 source generator version of the serialization library without some workarounds. So it's not referenced directly. But there is little reason to build it as afaik the latest version is what's on nuget atm.
mtreit
mtreit2y ago
<:PES_SadGe:814280618959568896>
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.
Want results from more Discord servers?
Add your server