Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5978349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:30:11+00:00 2026-05-22T21:30:11+00:00

I need help about how to automated a task with MSBUILD. I wrote a

  • 0

I need help about how to automated a task with MSBUILD.

I wrote a small command line program that process files and I want integrate it at the moment of BUILD the solution.

The program itself is used like this:

Processor.exe inputFile.txt outputFile.txt –p

-p of course represents some parameters.

Is there a simple way to make visual studio to run this exe AFTER each Buildup??

To be honest I research a lot about the MSBUILD, but there is so much information out there, that it overwhelmed me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:30:11+00:00Added an answer on May 22, 2026 at 9:30 pm

    There are different solutions but in your case the best is probably with custom AfterBuild target and Exec task. You should add it to your cproj file after Microsoft.CSharp.targets get imported.

    <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    <Target Name ="AfterBuild">
      <Exec Command="Processor.exe inputFile.txt outputFile.txt –p"  />
    </Target>
    

    You can read more about Exec Task here:

    Exec Task

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Need some help about with Memcache. I have created a class and want to
I need a help about creating custom wpf controls.I want to create a template
I need a little help about a PHP FB app. Matter is that I
I need some help about WCF and authorization. Currently I have a client which
I need some help about RegExp in AS3. I have a simple pattern :
Not exactly about programming, but I need help with this. I'm running a development
Well, I know absolutely nothing about the subject, so I really need help. I
need ask you about some help. I have web app running in Net 2.0.
we have about 200 employees i need to help HR to automate stuff one
I need help about how to numeration text in file. I have also linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.