Unable to build
khalednsair opened this issue · 8 comments
Hi , trying to run it in VS 2022 community edition and failing due to below issue,
any recommendation?
thanks
Severity Code Description Project File Line Suppression State
Error CS0006 Metadata file 'C:\Util\SQLCallStackResolver\SQLCallStackResolver-main\Target\Debug\SQLCallStackResolver.Engine.dll' could not be found SQLCalLStackResolver.Tests C:\Util\SQLCallStackResolver\SQLCallStackResolver-main\Tests\CSC 1 Active
Error The command "cd C:\Util\SQLCallStackResolver\SQLCallStackResolver-main\Engine
powershell -File "C:\Util\SQLCallStackResolver\SQLCallStackResolver-main\Engine/getBuildPreReqs.ps1"" exited with code 1. SQLCallstackResolver.Engine
Error Couldn't process file MainForm.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files. SQLCallstackResolver.GUI
I am guessing you probably extracted the project source code from the ZIP file downloaded from GitHub. Instead, you should use Git and clone the repo instead, as per the tips in this Stack Overflow post.
There is also a pre-built package with unsigned binaries here which might suffice if you just want to run the tool.
@khalednsair thank you for cloning the repo and using it to build. If you can share the current full output of the build (the VS2022 Output - Build window) process, it will help identify what is the issue in your scenario. The SQLCallStackResolver.Engine.dll file not being found is a symptom, not the issue. SQLCallStackResolver.Engine.dll is the output of building the Engine project. As a pre-build step for the Engine project, the getBuildPreReqs.ps1
PowerShell script is executed. It could be that in your system, the execution of this script had some issues (or was blocked due to execution policy). Review (and / or share with us) the full output in the Output - Build window as mentioned above, to get to the root cause of the issue.
p.s. I changed the title of this issue to more accurately reflect the conversation.
@khalednsair - were you able to look at the full build output and diagnose what is going on?
@khalednsair - please let me know if you need any help on this?
Closing stale issue.
You are working off an older git commit. Please git pull
to refresh to the current code.
BUT - I still see errors around content / files being blocked on your local system:
Couldn't process file MainForm.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
There's a similar error with the system blocking the execution of the PowerShell script which is used to prepare for the rest of the build:
File C:\Tools\SQLCallStackResolver-main\SQLCallStackResolver-main\Engine\getBuildPreReqs.ps1 cannot be loaded. The file C:\Tools\SQLCallStackResolver-main\SQLCallStackResolver-main\Engine\getBuildPreReqs.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
Sorry - those issues are not specific to this project.