473,396 Members | 1,786 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,396 software developers and data experts.

how to compile web service using command line

Hi, there,

I have a small web service project written in C# and compiled using visual
studio.net, but how can I compile it using command line?
Thank you.

-May
Nov 21 '05 #1
2 7335
Compiling code behind is just compiling all the cs files. The tricky part
is to remember to include all the references to other assemblies that are
required to compile your file. For example, to compile web services, you
will need to include the reference to System.Web.Services.dll which is by
default located in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322. You may
need other references too. Just take a look at your VS.NET project
References to see which assemblies your project requires.

Eric
"mei xiao" <mx***@peerdirect.com> wrote in message
news:uZ*************@TK2MSFTNGP09.phx.gbl...
Hi, there,

I have a small web service project written in C# and compiled using visual
studio.net, but how can I compile it using command line?
Thank you.

-May

Nov 21 '05 #2
It's the same process as when You compile any type of c# project. You can find more info on this at:

http://msdn.microsoft.com/library/de...ommandline.asp

If You also plan to deploy Your web service manually (without relying on VS), You should:
a) Create an asp.net virtual directory
b) Create a bin-directory for your web service dll
c) Create an asmx-file that references your dll

The asmx-file only have to contain this:
<%@ WebService class="MyWebServiceClassName" %>

Of course You can decide to write the whole web service in the asmx-file. But then You don't need to
do any compilation.

Regards, Björn
mei xiao wrote:
Hi, there,

I have a small web service project written in C# and compiled using visual
studio.net, but how can I compile it using command line?
Thank you.

-May


Nov 21 '05 #3

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

Similar topics

1
by: mei xiao | last post by:
Hi, there, I have a small web service project written in c sharp, I would like to know how to compile it in command line instead of using visual studio.net environment. Thank you very much. ...
4
by: cyshao | last post by:
Why Windows doesn't allow to launch daemon/service in command line ?? Unix/Linux can simply do that....
2
by: accessjunior | last post by:
I was wondering if there is any way to close Access using command line swithes? Currently I have a batch file that calls the .mdb runs a macro and compacts, then I would like to close it. Any...
5
abdoelmasry
by: abdoelmasry | last post by:
Hey could any one tell me is there away to end any proccess using command line ?? i can get all running proccesses using command (tasklist) ThX
0
by: Siebbel | last post by:
Hello, I would like to install DB2 on a remote linux computer using command line. Does anybody know if that is possible? Or if not, are there possibilities to have the graphical interface on my...
2
by: ruk | last post by:
Hi all, I have craeated a windows service in C# which monitors the user's request to the server. It should display the username and the Loggeddatetime of the user who all are loggedin to the server...
2
by: BDthatsme | last post by:
I can't get any of the various examples of keyboard input to work using command line PHP. I have Windows XP Pro SP 2 and PHP 5.1.6 (cli) (built: Aug 23 2006 16:35:53). I can't find any info...
1
by: 85ssp | last post by:
I am working on debugging a multithreaded network application. I have two forms. One of which is my testing form, the other is the actual user form. I need to be able to load only my testing form...
0
by: Garima12 | last post by:
Can I downgrade dbase 7 to dbase 4 file using command line?
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...

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.