Closed CCIGAMES closed 11 months ago
@CCIGAMES this is defenitely ok cause you're on System32 folder and you need the absolute path to the correct location of the project
@CCIGAMES this is defenitely ok cause you're on System32 folder and you need the absolute path to the correct location of the project
Ok
Problem The main error encountered when running the script is the following:
C:\WINDOWS\system32>dotnet run --project SonicHybridRsdk.Build MSBUILD: error MSB1009: Project file does not exist. Switch: SonicHybridRsdk.Build The build failed. Fix the build errors and run again. This error indicates that the project file SonicHybridRsdk.Build.csproj does not exist or cannot be found.
Cause The cause of the error is that the project file SonicHybridRsdk.Build.csproj is missing from the specified directory.
Solution To fix the error, you need to ensure that the SonicHybridRsdk.Build.csproj file is present in the correct directory.
Based on the provided information, the project file is located in the same directory as the script (Sonic-Hybrid-Ultimate/SonicHybridRsdk.Build/SonicHybridRsdk.Build.csproj).
To resolve the issue, you can try the following steps:
Open a terminal or command prompt. Navigate to the directory where the script and project file are located. In this case, it would be Sonic-Hybrid-Ultimate/SonicHybridRsdk.Build. Run the command dotnet restore to restore the project dependencies. Run the command dotnet build to build the project. If the project builds successfully, you should be able to run the script without encountering the "Project file does not exist" error.
Prevention To prevent this error from occurring in the future, make sure that all the necessary project files are included in the correct directory before running the script. Double-check the file paths and ensure that the project file is present in the specified location.
Additionally, it's a good practice to regularly update and maintain the project files to avoid any missing or outdated files that could cause build errors.