-
Notifications
You must be signed in to change notification settings - Fork 163
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
/generateDebugSolution does not work #41
Comments
It looks like a problem with sharpmake source itself. I just tested adding /generateDebugSolution to both master and dev branche versions of UpdateSharpmakeProjects.bat after compiling locally, and with no local changes, and it works fine. What commit are you based off of and do you have any local changes to sharpmake itself? |
Hullo Mr. Savoie - long time no see ;) This is straight off master with zero changes |
Hihi, been a while :D How exactly are you building your binary? I tried again with a clean repo and built from Sharpmake.sln (using VS2017). If you do that and add /generateDebugSolution to UpdateSharpmakeProjects.bat(32) does that bat file run without error? |
no, this is just a straight VS 2017 build from the solution - I'm not
building through a bat file. I didn't see that documented anywhere (or, at
least, it wasn't evident)
…On Mon, 24 Sep 2018 at 10:25 Chris Savoie ***@***.***> wrote:
Hihi, been a while :D
How exactly are you building your binary? I tried again with a clean repo
and built from Sharpmake.sln (using VS2017). If you do that and add
/generateDebugSolution to UpdateSharpmakeProjects.bat(32) does that bat
file run without error?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAYWBWUgM0YEbtWH-WWvREhXKSOuoxn1ks5ueRWegaJpZM4W1Ji2>
.
|
Hello @Nuclearfossil , Then you can use a .bat file like this one to create the debug solution:
generatedebugsharpmakesolution.txt The reason why it was failing for me was because I did not copy the .pdb files, I guess to create a debug solution it needs them. Hope this helps, Cheers. |
I only just noticed this issue (also hi everyone! :) ) Not sure if that's still the case |
There's definitely something odd going on, I have a setup closer to fpuma and it's been working flawlessly for the last year using the Release built binaries. My bat file just does the following: call bin\Sharpmake.Application.exe "/sources(@"SharpMake\Main.cs") /verbose /generateDebugSolution" And it's called from the root of my project. Not sure why I have the extra quotes in there, it seems to run fine if I remove them. I also have not problems running from the generated debug solution or running debug or release directly from the Sharpmake solutions either. In addition to the binaries that fpuma lists I'm also copying over Microsoft.Build.Utilities.v4.0.dll and Microsoft.VisualStudio.Setup.Configuration.Interop.dll. (Hi Bryan!) |
I got the same issue. Copying over all dlls and pdbs from my release build fixed it. Can somebody please update the documentation so that it is up to date? |
It seems that even the release version needs Sharpmake.pdb. The reason is that Solution.cs file tries to get a source file for the At the moment I don't have time to try either, so I just wanted to share my findings in case someone else wants to have a go at it. |
Closing this, if you take the .zip files with the prebuilt sharpmake binaries it works :) |
Following along with the example here: https://github.com/ubisoftinc/Sharpmake/blob/master/docs/OVERVIEW.md#create-a-debugging-environment
I've added the
/generateDebugSolution
option to my build:..\bin\Sharpmake.Application.exe /sources(@"main.sharpmake.cs") /verbose /generateDebugSolution
The result is as follows:
my sharpmake source file is as follows:
The text was updated successfully, but these errors were encountered: