✅ Need assistance compiling an older dotnet app

I'm attempting to compile the latest version of the "Loki" character editor Valheim for my kids and am stuck. SOURCE: https://github.com/Wufflez/Loki
Build FAILED.
Loki.csproj : error NU1100: Unable to resolve 'DotNetProjects.Extended.Wpf.Toolkit (>= 4.6.96)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'GitVersion.MsBuild (>= 5.6.6)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'gong-wpf-dragdrop (>= 2.3.2)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'JetBrains.Annotations (>= 2020.3.0)' for '.NETCoreApp,Version=v3.1'.
0 Warning(s)
4 Error(s)
Build FAILED.
Loki.csproj : error NU1100: Unable to resolve 'DotNetProjects.Extended.Wpf.Toolkit (>= 4.6.96)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'GitVersion.MsBuild (>= 5.6.6)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'gong-wpf-dragdrop (>= 2.3.2)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'JetBrains.Annotations (>= 2020.3.0)' for '.NETCoreApp,Version=v3.1'.
0 Warning(s)
4 Error(s)
Any help would be greatly appreciated.
GitHub
GitHub - Wufflez/Loki: A character editor for Valheim
A character editor for Valheim. Contribute to Wufflez/Loki development by creating an account on GitHub.
31 Replies
333fred
333fred2y ago
Do you have the .NET 3.1 SDK installed?
riverside_wos
riverside_wosOP2y ago
Yes
riverside_wos
riverside_wosOP2y ago
Microsoft
Download .NET Core 3.1 Runtime
The .NET Core 3.1 Runtime includes everything you need to run existing .NET Core and ASP.NET Core applications.
333fred
333fred2y ago
That's the runtime Not the SDK
riverside_wos
riverside_wosOP2y ago
Then maybe not. Let me look
riverside_wos
riverside_wosOP2y ago
Have that installed, no love still
333fred
333fred2y ago
fwiw, testing in a sandbox with just the 3.1 sdk and git installed (this repo needs to be cloned to be git, because it uses gitversion) it builds for me Have you restarted your terminal?
riverside_wos
riverside_wosOP2y ago
Yes, I closed the command prompt and re-opened it after the install
333fred
333fred2y ago
Are you still getting the same errors?
333fred
333fred2y ago
What I'm seeing in my sandbox
riverside_wos
riverside_wosOP2y ago
Loki.csproj : error NU1100: Unable to resolve 'DotNetProjects.Extended.Wpf.Toolkit (>= 4.6.96)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'GitVersion.MsBuild (>= 5.6.6)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'gong-wpf-dragdrop (>= 2.3.2)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'JetBrains.Annotations (>= 2020.3.0)' for '.NETCoreApp,Version=v3.1'.
0 Warning(s)
4 Error(s)
Loki.csproj : error NU1100: Unable to resolve 'DotNetProjects.Extended.Wpf.Toolkit (>= 4.6.96)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'GitVersion.MsBuild (>= 5.6.6)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'gong-wpf-dragdrop (>= 2.3.2)' for '.NETCoreApp,Version=v3.1'.
Loki.csproj : error NU1100: Unable to resolve 'JetBrains.Annotations (>= 2020.3.0)' for '.NETCoreApp,Version=v3.1'.
0 Warning(s)
4 Error(s)
That's what I was hoping for
333fred
333fred2y ago
How are you building this?
riverside_wos
riverside_wosOP2y ago
It should look like that
dotnet build
dotnet build
333fred
333fred2y ago
Is it in some folder with a NuGet.config?
riverside_wos
riverside_wosOP2y ago
from the directory at the command prompt I don't see that file?
333fred
333fred2y ago
Common NuGet configurations
NuGet.Config files control NuGet's behavior both globally and on a per-project basis, and are modified with nuget config command.
riverside_wos
riverside_wosOP2y ago
I did:
git clone https://github.com/Wufflez/Loki.git
git clone https://github.com/Wufflez/Loki.git
then went into that directory and did
dotnet build
dotnet build
333fred
333fred2y ago
.
riverside_wos
riverside_wosOP2y ago
Not familiar with that file. Should it be in the repo, or do I have to make one?
333fred
333fred2y ago
No, go to the path that I linked you to and tell me what's there
riverside_wos
riverside_wosOP2y ago
Neither folder comes up
Visual Studio 2017 or NuGet 4.x+: %ProgramFiles(x86)%\NuGet
Visual Studio 2015 and earlier or NuGet 3.x and earlier: %PROGRAMDATA%\NuGet
Visual Studio 2017 or NuGet 4.x+: %ProgramFiles(x86)%\NuGet
Visual Studio 2015 and earlier or NuGet 3.x and earlier: %PROGRAMDATA%\NuGet
On Win10x64
333fred
333fred2y ago
What about %appdata%\NuGet\, is there a NuGet.config file there?
riverside_wos
riverside_wosOP2y ago
Man, I feel so derpy. I once was a solid developer in the Microsoft eco system. It's been years and I don't know much about dotnet.
<?xml version="1.0" encoding="utf-8"?>
<configuration />
<?xml version="1.0" encoding="utf-8"?>
<configuration />
Yes that exists and this is the contents.
333fred
333fred2y ago
Yeah, ok, so you're hitting the bug I suspected. One I have no idea why happens occasionally, but it does
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
Replace the contents with that
riverside_wos
riverside_wosOP2y ago
Done. Should I try to build again?
333fred
333fred2y ago
Yes
riverside_wos
riverside_wosOP2y ago
Build succeeded.
Build succeeded.
It has a lot of other messages, but got there.
333fred
333fred2y ago
Yeah, there were a number of warnings
riverside_wos
riverside_wosOP2y ago
8 warnings but no errors. You're awesome, thank you so much
333fred
333fred2y ago
No problem 🙂
Want results from more Discord servers?
Add your server