3 ms·
Almost certain I’m doing it wrong (hobbyist), but most versions of vs studio have some kind of cli interface for installing workloads. I’ll fight with that unti
by willjp 5y ago
Almost certain I’m doing it wrong (hobbyist), but most versions of vs studio have some kind of cli interface for installing workloads. I’ll fight with that until I figure out which includes the cli compiler tools. Write a script to automate install. Afterwards I’ll use a build system that calls vcvarsall.bat and perform the build from the cli.
I agree, it feels clunky and bloated compared to what I’m used to (especially if multiple vs studio versions required) but it gets the job done.
I’m very curious what workflows look like for people that know what they’re doing when building c/cpp on windows.
- vixalien 5y agoI'm also curious for workflows. I saw none that works with Sublime Text. Moreover I couldn't even find a simple build script.
- ectopod 5y agoAfter you create an app in Visual Studio you can build it by running msbuild. You don't need an additional build script.
- willjp 5y agoThank you!
- vixalien 5y agoBut how do I run the built app?? msrun? msbuild run?? dotnet can "dotnet run" but msbuild??
- jmnicolas 5y agoThis is Windows dev: while command line is available, everything has been thought for the GUI. Use Visual Studio, it will provide a much better experience. There's a button for what you want to do on VS (green arrow, at the top, the hint text is "run" I think).
- MarkSweep 5y agoFor a packaged app, this may be relevant: https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-debug https://docs.microsoft.com/en-us/windows/msix/desktop/deskto... There is a way to launch packaged apps from the command line once you have registered them: https://docs.microsoft.com/en-us/windows/uwp/xbox-apps/automate-launching-uwp-apps https://docs.microsoft.com/en-us/windows/uwp/xbox-apps/autom... Everything with packaged apps is harder, so I try to avoid it.