Inveigh
Inveigh copied to clipboard
error building Inveigh 2.0
Hi, I've tried on my VM and on Appveyor and I get the same issue :
Any ideas ?
Many thanks, and looking fwd to test it.
C:\Program Files\dotnet\sdk\5.0.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1004: Assets file 'C:\projects\inveigh\Inveigh\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [C:\projects\inveigh\Inveigh\Inveigh.csproj] C:\Program Files\dotnet\sdk\5.0.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1004: Assets file 'C:\projects\inveigh\Inveigh\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [C:\projects\inveigh\Inveigh\Inveigh.csproj] C:\Program Files\dotnet\sdk\5.0.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(241,5): error NETSDK1004: Assets file 'C:\projects\inveigh\Inveigh\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [C:\projects\inveigh\Inveigh\Inveigh.csproj]
I'm guessing maybe you don't have .NET 5 installed? You can try removing 5 from the list of frameworks in the project file.
This line:
<TargetFrameworks>net35;net45;net5.0</TargetFrameworks>
Looking at the appveyor pre-install defaults, .NET 5 is included with the Windows Server 2019/VS2019 builds.
I haven't had a chance to try to break the compiles. I mainly had issues with 3.5 when working out how to get everything supported in a single project file.
Mhmm unfortunatly it didn't much success yet. I'll try again in a few days. Checked installed .net SDK and
dotnet --list-sdks 1.1.14 [C:\Program Files\dotnet\sdk] 2.1.202 [C:\Program Files\dotnet\sdk] 2.1.806 [C:\Program Files\dotnet\sdk] 2.2.402 [C:\Program Files\dotnet\sdk] 3.0.103 [C:\Program Files\dotnet\sdk] 3.1.202 [C:\Program Files\dotnet\sdk] 3.1.410 [C:\Program Files\dotnet\sdk] 5.0.301 [C:\Program Files\dotnet\sdk]
I'm not sure if this will help at all but I took a new Win10 VM and just installed VS 2019 community. I built through the GUI with the version on github. The build throws an error for .net 3.5. The other 2, 4.5 and 5.0 build ok.
dotnet --list-sdks 5.0.301 [C:\Program Files\dotnet\sdk]
This worked for me. Thanks! Setup : win10 Vs2019