winstxnhdw / lc-hax

A powerful, feature-rich and highly performant internal cheat for the co-op indie horror video game, Lethal Company.
87 stars 26 forks source link

[Bug]: Cannot run requirements.bat #11

Closed louieeAd closed 9 months ago

louieeAd commented 9 months ago

What happened?

Running requirements.bat throws this error at me. I have no av installed or enabled.

MSBuild version 17.7.3+8ec440e68 for .NET MSBUILD : error MSB1001: Unknown switch. Full command line: 'C:\Program Files\dotnet\sdk\7.0.401\MSBuild.dll -maxcpucount -verbosity:m -restore -consoleloggerparameters:Summary lc-hax -C Release -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Program Files\dotnet\sdk\7.0.401\dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,C:\Program Files\dotnet\sdk\7.0.401\dotnet.dll' Switches appended by response files: Switch: -C

For switch syntax, type "MSBuild -help" MSBuild version 17.7.3+8ec440e68 for .NET MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file. Press any key to continue . . .

Current Commit Hash

.

Injector

If you selected "Others" above, please specify the injector you are using.

No response

Log output

No response

Acknowledgement

winstxnhdw commented 9 months ago

Okay, this was my mistake. I used -C instead of -c. I have pushed the fix. You can pull latest and the error should be no more.

louieeAd commented 9 months ago

When launching i now get this error image image

winstxnhdw commented 9 months ago

Full command line: 'C:\Program Files\dotnet\sdk\7.0.401\MSBuild.dll -maxcpucount -verbosity:m -restore -consoleloggerparameters:Summary

Seems like you are on .NET 7.0 not 8.0..

winstxnhdw commented 9 months ago

Search for Virus & threat protection in your Windows settings and see if defender is removing the injector every time you build it.

louieeAd commented 9 months ago

Full command line: 'C:\Program Files\dotnet\sdk\7.0.401\MSBuild.dll -maxcpucount -verbosity:m -restore -consoleloggerparameters:Summary

Seems like you are on .NET 7.0 not 8.0..

yeah i fixed this issue after i posted the comment

louieeAd commented 9 months ago

Search for Virus & threat protection and see if defender is removing the injector every time you build it.

it isnt as i have the injector on my pc anyways and my ac is disabled

winstxnhdw commented 9 months ago

Okay, run requirements.bat and screenshot the full log.

louieeAd commented 9 months ago

image

winstxnhdw commented 9 months ago

Ahh.. You didn't recursively clone didn't you..

louieeAd commented 9 months ago

...My bad.

winstxnhdw commented 9 months ago

Not a problem. Glad you got it working now!

MythicalTrashcan commented 9 months ago

What about those warnings. I know they are warnings and programmers just skip them a lot if they don't break anything. But why are they even there and could they be fixed?

winstxnhdw commented 9 months ago

They are lint warnings because @LTYGUY doesn’t wanna write clean code and I have to clean up his mess. As you can tell from the commits, I care heavily about code quality and I’ll eventually fix all the warnings but it’ll take some time.