Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to specify a custom build step in xproj for ASP.NET Core?

$
0
0

I have an ASP.NET Core server providing server-side ReSTful API methods to an Ember JS client. I keep and build the client separately, and target the results into the wwwroot of the server project. When I build for debug, I always have "ember serve" running on the side, with the ES6 bits being auto-built into the server's wwwroot as I change them in MS Code. When I want to test the client/server interactions, the built client bits are already there and ready to use. This works great.

However, when I build my server for release (in VS2015), I would like to perform an external command that builds the client project for production. I know several approaches for this with a .csproj, but xproj doesn't support those tags. After a few hours of searching for a way to do this, I still couldn't find any. How do I fire off an external command from the build in an xproj project? 


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>