-
Notifications
You must be signed in to change notification settings - Fork 0
Description
"/home/runner/work/D2WeaponReport/D2WeaponReport/src/DestinySandbox.sln" (rebuild target) (1) ->
"/home/runner/work/D2WeaponReport/D2WeaponReport/src/SandboxWeb/SandboxWeb.csproj" (Rebuild target) (5) ->
/usr/share/dotnet/sdk/3.1.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(234,5): error NETSDK1005: Assets file '/home/runner/work/D2WeaponReport/D2WeaponReport/src/SandboxWeb/obj/project.assets.json' doesn't have a target for '.NETFramework,Version=v6.0'. Ensure that restore has run and that you have included 'net60' in the TargetFrameworks for your project. [/home/runner/work/D2WeaponReport/D2WeaponReport/src/SandboxWeb/SandboxWeb.csproj]0 Warning(s) 4 Error(s)Time Elapsed 00:00:01.64
Exit code 1
Attempting to locate build script
Error: Could not auto-detect a suitable build method
Error: We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. Failure invoking /opt/hostedtoolcache/CodeQL/0.0.0-20211122/x64/codeql/csharp/tools/autobuild.sh with arguments .Exit code 1 and error was: Error: Could not auto-detect a suitable build method
Comment
I had this same issue locally when I upgraded to net6. I had to clear all temp files to fix it.