473,400 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

How to write a batch to compile .net projects?

ccc
Good evening.

I was wonder how to write a batch file making no assumption if visual
studio is installed manually on the target system. I.e. it is likely
to map the visual studio.net file structure on the target system,
hence the question of how to compile it due to environment variables.

Currently, I keep having th error of "missing one or more components,
please reinstall".

Here is partial batch file I have been working on:

PATH=%TOOLS_DIR%\7.0\bin;%TOOLS_DIR%\7.0\common7\i de\dev

Thanks.

Jiac
Jul 21 '05 #1
1 1673
The command line compilers csc.exe and vbc.exe are in the Microsoft.Net
folder in your Windows folder and not in the Program Files folder. So, as
long as the .NET Framework is installed on the machine, you can use that
location.

---
Steven Wood

"ccc" <ch******@yahoo.com> wrote in message
news:ba**************************@posting.google.c om...
Good evening.

I was wonder how to write a batch file making no assumption if visual
studio is installed manually on the target system. I.e. it is likely
to map the visual studio.net file structure on the target system,
hence the question of how to compile it due to environment variables.

Currently, I keep having th error of "missing one or more components,
please reinstall".

Here is partial batch file I have been working on:

PATH=%TOOLS_DIR%\7.0\bin;%TOOLS_DIR%\7.0\common7\i de\dev

Thanks.

Jiac

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: carrot | last post by:
With .Net Studio, I have a solution includes some projects. I want to execute a batch file during build solution time. For example, 1'st project is builded. 2'nd project is builded. " a batch...
4
by: carrot | last post by:
With .Net Studio, I have a solution includes some projects. I want to execute a batch file during build solution time. For example, 1'st project is builded. 2'nd project is builded. " a batch...
1
by: Raterus | last post by:
Hi, Is there a way I can see what commands VS.net is using to compile my asp.net projects? I'm sure its using the vbc/csc programs, but I'd love to see the command-line options it is using. ...
8
by: John | last post by:
This is a simple, newbe question. In Asp/VB there are 2 ways to display message on page load I can double click on aspx page and aspx.vb file is created: Private Sub Page_Load(ByVal sender As...
1
by: ccc | last post by:
Good evening. I was wonder how to write a batch file making no assumption if visual studio is installed manually on the target system. I.e. it is likely to map the visual studio.net file...
3
by: GoogleNewsReaderMan | last post by:
If I rebuild all my projects (for each configuration: debug & release) using batch build, the WRONG referrenced DLLs are copied into the bin folder for the main project. If I do a batch build, I...
4
by: Chuck P | last post by:
I was wondering what practices people have come up with for deployment. I want to precompile the application and encrypt portions of the web.config. In 1.0 I just did a batch file that would...
5
by: benyod79 | last post by:
I'm hoping someone will be able to assist with this one. Using a scheduling program I'd like to run a batch file that runs a macro to creat e a copy of the opened database. Then, using batch again,...
4
by: Ronny | last post by:
I have a mixed solution -most of its projects are in C# and some are in C++?MFC. Problem is that when I compile the solution with batch build the MFC files end up wit compilation errors, but if I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.