{{ message }}
feat(bau): add msbuild support - #68
Draft
PowerUser64 wants to merge 18 commits into
Draft
Conversation
Author
|
@PowerUser64 I've pinned your repo in my config to test this out, but I'm not having much luck. I have a solution with upwards of 70 .csproj projects in it. When I open Compiler and choose to build, it reports I was hoping it would build the project in which the current file resides. Is this what should be happening? Or do I need to specify the project somehow? I've tried running the build command with a .csproj as the active buffer as well to no avail. Any help would be appreciated. Thanks for all your work on this! |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

I've written this integration with compiler.nvim for MSBuild to ease the pain of having to use MSBuild on windows. I've based this work on @Gaweringo's work that adds windows support in #58, because MSBuild only runs on windows. I can change this and/or rebase pretty easily if needed, since I just have one commit here.
This integration provides the following functionality
.sln) in the same directory (this jkhappens sometimes).slnfileAlso of note is that msbuild provides LOTS of default targets for each project (there are 438 in one project I have), so I'm only scratching the surface by including the build, run, and clean targets. There are others (like Rebuild), that could potentially be useful too, but so far I've only added these ones so far to bring parity with the default C/C++ configuration. I could add others if it'd be welcome.
The only thing this requires is that
msbuild.exebe accessible through the user's PATH, which it isn't the case by default on windows. It'd be possible (and likely not very hard) to make some basic logic to find the executable on the filesystem with globing (more about this on SO), but it somewhat feels like stepping outside the scope of this plugin since it adds some potential for variability. I can write some documentation on the wiki to explain this PATH stuff if needed.I'm marking this as a draft for now since #58 is unmerged and I have code from it. Also, I'd like to use this for a bit longer before it gets merged (maybe two weeks from now at most). There could be a bit more tweaking to do with the default list of targets.
Thank you to @Gaweringo for all your work on adding windows support to begin with! I might not have attempted this if it weren't for that.