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 873541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:57:14+00:00 2026-05-15T10:57:14+00:00

I have an ant build target using csc: <target name=compile> <echo>Starting compiling ServiceLauncher</echo> <csc

  • 0

I have an ant build target using csc:

<target name="compile">
    <echo>Starting compiling ServiceLauncher</echo>
    <csc optimize="true" debug="true" warnLevel="1"
             unsafe="false" targetType="exe" failonerror="true"
             incremental="false" mainClass = "ServiceLauncher.Launcher"
             srcdir="ServiceLauncher/Launcher/"
             outputfile="ServiceLauncher.exe" >

        <reference file="libs/log4net.dll"/>
        <define name="RELEASE"/>
    </csc>
</target>

When I run it, the following exception comes up:

csc failed: java.io.IOException: Cannot run program “csc”: CreateProcess error=2, The system cannot find the file specified

However, it runs without the exception but never correctly builds the .exe file, when I manually add in an empty ServiceLauncher.exe.

How can I correctly build this .Net project “ServiceLauncher”?

  • 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-15T10:57:15+00:00Added an answer on May 15, 2026 at 10:57 am

    My guess is that csc.exe is not on the execute path.

    From the documentation for the csc task:

    csc.exe on Windows or mcs on any other platform must be on the execute path, unless another executable or the full path to that executable is specified in the executable parameter

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

Sidebar

Related Questions

I'm running JUnit via Ant using a target something like this: <target name=junit depends=compile>
I have the following in my pom: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ant-plugin</artifactId> <version>2.3</version> <configuration> <target> <echo
The problem we have are as follows: We are using ANT to build our
We have inherited an ant build file but now need to deploy to both
I have an Ant script that performs a copy operation using the 'copy' task
I am using apache ant to generate javadoc for my project. I have a
I'm building a Java application (using Ant with build.xml and build.property files). Now I'd
When you define an extension-point in an Ant build file you can have it
I'm using ant to build a mixture of Java and C++ (JNI) code that
I have an existing Ant project and would like to speed up the build

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.