Kevin-Robertson / Inveigh

.NET IPv4/IPv6 machine-in-the-middle tool for penetration testers
BSD 3-Clause "New" or "Revised" License
2.52k stars 440 forks source link

error building Inveigh 2.0 #30

Open k4nfr3 opened 3 years ago

k4nfr3 commented 3 years ago

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]

Kevin-Robertson commented 3 years ago

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>

Kevin-Robertson commented 3 years ago

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.

k4nfr3 commented 3 years ago

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]

Kevin-Robertson commented 3 years ago

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]

kiwids0220 commented 2 years ago

This worked for me. Thanks! Setup : win10 Vs2019