Generate sources as post-build event
See original GitHub issueHello,
Thanks for this project. I recently started to use it, so far works great!
I have a question, is it possible to somehow configure the TS source generation to run after specific project is build?
So essentially what I would want is to have all my ts files generated when my WebAPI (ASP.NET Core 2.1) project is built. Ideally this should work when building the project on local VS as well in CI (dotnet build ...
). I tried the CLI tool, but it said Error Package 'TypeGen.DotNetCli 2.0.0' has a package type 'DotnetTool' that is not supported by project 'xxx.xxx.WebAPI'.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to: Specify build events (C#) - Visual Studio (Windows)
In Solution Explorer, select the project for which you want to specify the build event. On the Project menu, click {ProjectName} Properties ...
Read more >How to run Visual Studio post-build events for debug ...
Pre- and Post-Build Events run as a batch script. You can do a conditional statement on $(ConfigurationName) . For instance
Read more >Post-Build Events and .NET Core
I have used post-build events in Visual Studio for a long time, primarily to copy files from one location to another.
Read more >playing with Power Shell commands and Post Build events.
So I have been working recently on making the Mission Control (MC) repository, a little more developer/user friendly.
Read more >Post-build event command
Hello, I'm trying to implement post-build event command for a PDF target. My goal is simple. I just want to copy the PDF...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi!
TypeGen.DotNetCli
is now a global .NET CLI tool. TypeGen doesn’t have a per-project .NET CLI tool right now, because the current format of per-project tools is planned to be changed by Microsoft in the near future.So right now one solution would be to install
TypeGen.DotNetCli
as a global .NET CLI tool and then adddotnet-typegen generate
as a post-build action (or executedotnet-typegen generate
after runningdotnet build
in the console).I think installing TypeGen as a global .NET CLI tool is currently probably the best way to add it as a post-build action.
Hope this helps!
Glad I could help!
It’s nice to see a working example - thanks for posting