Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error building Inveigh 2.0 #30

Open
k4nfr3 opened this issue Jun 16, 2021 · 5 comments
Open

error building Inveigh 2.0 #30

k4nfr3 opened this issue Jun 16, 2021 · 5 comments

Comments

@k4nfr3
Copy link

k4nfr3 commented Jun 16, 2021

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
Copy link
Owner

Kevin-Robertson commented Jun 16, 2021

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
Copy link
Owner

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
Copy link
Author

k4nfr3 commented Jun 17, 2021

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
Copy link
Owner

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
Copy link

This worked for me. Thanks!
Setup :
win10
Vs2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants