Skip to content
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

Figure out Buildalyzer's Overeager Clean #17

Closed
Noggog opened this issue Aug 15, 2020 · 4 comments
Closed

Figure out Buildalyzer's Overeager Clean #17

Noggog opened this issue Aug 15, 2020 · 4 comments

Comments

@Noggog
Copy link
Member

Noggog commented Aug 15, 2020

Right now we're using Buildalyzer to get some metadata about solutions/projects. Comes with the downside of cleaning for no reason. Either need to ditch it, or find the option to turn that off, as it's wasting time redoing work

Related issue: phmonte/Buildalyzer#105

@Noggog
Copy link
Member Author

Noggog commented Oct 7, 2020

@tstavrianos
Copy link

tstavrianos commented Oct 9, 2020

After some time looking into this, I think it might be easier to avoid buildalyzer & roslyn (until microsoft's toolset is more easily usable from inside c#).
If you need to know the projects output directory, you can force it to be whatever you want instead (such as temp?):
dotnet build <project/solution> --output <path>

If you don't need the output, you can use:
dotnet run --project <projectfile>

Both of these will avoid the endless dependencies that roslyn/msbuild have to work correctly.

@Noggog
Copy link
Member Author

Noggog commented Oct 9, 2020

Oh, nice. I didn't even think about dotnet run! That might be the cleanest route by far

@Noggog
Copy link
Member Author

Noggog commented Oct 11, 2020

68208d0

Worked like a charm. Lots of wiring removed related to finding the path to the exe to run. As a side effect, Buildalyzer's functionality that cleans is no longer needed. Synthesis' time-to-run is now near instant after starting up, as before it had to locate all the exes to run, and then rebuild everything because they had been cleaned. Now it just starts up and is ready to go.

Glorious!

@Noggog Noggog closed this as completed Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants