Git Product home page Git Product logo

Comments (10)

kudaba avatar kudaba commented on May 18, 2024

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?

from sharpmake.

Nuclearfossil avatar Nuclearfossil commented on May 18, 2024

Hullo Mr. Savoie - long time no see ;)

This is straight off master with zero changes

from sharpmake.

kudaba avatar kudaba commented on May 18, 2024

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?

from sharpmake.

Nuclearfossil avatar Nuclearfossil commented on May 18, 2024

from sharpmake.

fpuma avatar fpuma commented on May 18, 2024

Hello @Nuclearfossil ,
I was having this same issue.
Once you compile the Sharpmake.Application from the solution, make sure that you copy the following files from the "Sharpmake.Application/bin/release" (or debug if you compiled debug) into the sharpmake.cs files of your build:
neededfiles

Then you can use a .bat file like this one to create the debug solution:

@echo off Sharpmake.Application.exe /sources(@"solution.sharpmake.cs") /verbose /generateDebugSolution pause

generatedebugsharpmakesolution.txt
(Change the .txt extension for .bat)

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.
You can also do this from the .sln of the sharpmake source, but you would need to change some debug fields in the Sharpmake.Application properties (I do not know if this is actually what you want, let me know if it is)

Hope this helps,

Cheers.

from sharpmake.

BryanRobertson avatar BryanRobertson commented on May 18, 2024

I only just noticed this issue (also hi everyone! :) )
I had the same problem a few months back, and it turned out that the /generateDebugSolution commandline switch only worked for me if I compiled Sharpmake in Debug.

Not sure if that's still the case

from sharpmake.

kudaba avatar kudaba commented on May 18, 2024

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!)

from sharpmake.

Teknogrebo avatar Teknogrebo commented on May 18, 2024

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?

from sharpmake.

GamingMinds-UlfW avatar GamingMinds-UlfW commented on May 18, 2024

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 DebugProject project used in Debug solution creation. It does so by utilizing StackTrace . The DebugProject however is located in DebugProjectGenerator.cs inside the Sharpmake source.
Without the pdb file, there is no source file info for that file, and the code throws an exception. Unfortunately using "Embedded" Debug symbols does not work, that was my first attempt at fixing it.
So the only solutions I can think of -apart from just shipping the .pdb file- would be either to externalize the parts of DebugProjectGenerator.cs which generate the Debug solution, or to rewrite the code in some way to work without the source file.

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.

from sharpmake.

belkiss avatar belkiss commented on May 18, 2024

Closing this, if you take the .zip files with the prebuilt sharpmake binaries it works :)

from sharpmake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.