C
C#13mo 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
Mango13mo ago
Did you install the .NET Core SDK from Microsoft
ashl
ashl13mo ago
yeah
mtreit
mtreit13mo ago
That looks like your nuget.config is not normal
ashl
ashl13mo 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
Mango13mo ago
Also what Visual Studio version (year) are you using. 2022?
ashl
ashl13mo ago
i will check 2022
mtreit
mtreit13mo ago
Does "nuget restore" work?
Mango
Mango13mo ago
Do the keys need to be unique? @mtreit Duplicate key in the last 2 entries
ashl
ashl13mo 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
mtreit13mo ago
Not sure but that definitely looks broken Not sure what that hello kitty thing is anyway
ashl
ashl13mo ago
thats the github profile that posted the repo
mtreit
mtreit13mo ago
Try a standard nuget.config with just nuget.org
ashl
ashl13mo ago
how do i do/get that
mtreit
mtreit13mo ago
dotnet new nugetconfig
ashl
ashl13mo 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
mtreit13mo 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
ashl13mo ago
heres more of the output, including some warnings
ashl
ashl13mo ago
will open vs
mtreit
mtreit13mo ago
Try upgrading that package reference to the latest version
ashl
ashl13mo ago
how do i do that
mtreit
mtreit13mo 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
ashl13mo ago
which package is it complaining about
mtreit
mtreit13mo ago
Read the error you posted
mtreit
mtreit13mo ago
mtreit
mtreit13mo ago
FreecraftCore.Serilizer.Compiler
ashl
ashl13mo ago
Latest version: 4.1.62
mtreit
mtreit13mo ago
Try that
ashl
ashl13mo 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
ashl13mo ago
ashl
ashl13mo ago
heres an image, if its easier to read
mtreit
mtreit13mo ago
I could probably fix this in a few minutes if I wasn't on my phone and not near a computer
ashl
ashl13mo ago
right now does it seem like its just a matter of getting the exact version of this thng right?
mtreit
mtreit13mo 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
ashl13mo ago
here are some errors i found in downloading the package from before
mtreit
mtreit13mo ago
Yeah that AppHost package sounds like some super old thing Get rid of that reference
ashl
ashl13mo ago
it says cycle detected^ heres more errors from trying to download the 4.1.6
ashl
ashl13mo ago
so go back to the original package?
mtreit
mtreit13mo 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
Mango13mo ago
4 months ago
mtreit
mtreit13mo ago
Hmm
Mango
Mango13mo ago
Its a protobuf serializer / deserializer for a WoW emulator
mtreit
mtreit13mo 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
Mango13mo 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
ashl13mo ago
i got rid of 1 error by trying the nuget.config from the repo again. not sure which error
ashl
ashl13mo ago
tried downloading last commit for 4.1.61 errors, but no warnings or anything about versions:
ashl
ashl13mo 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
mtreit13mo ago
<:PES_SadGe:814280618959568896>
Accord
Accord13mo 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.