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

Can ASP.NET be compiled without Visual Studio?

I would like to take my ASP.NET project to another computer, which doesn't
have Visual Studio.

If I modify the code there, is there a way to recompile it without Visual
Studio?

Thanks!
Nov 19 '05 #1
10 3654
Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located in the .NET
Framework install directory. v1.1 is here on my machine:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

-Brock
DevelopMentor
http://staff.develop.com/ballen
I would like to take my ASP.NET project to another computer, which
doesn't have Visual Studio.

If I modify the code there, is there a way to recompile it without
Visual Studio?

Thanks!


Nov 19 '05 #2
And, jsc.exe is also in the same directory,
should you wish to write/compile your ASP.NET apps in J#.net.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located in the .NET Framework
install directory. v1.1 is here on my machine:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

-Brock
DevelopMentor
http://staff.develop.com/ballen
I would like to take my ASP.NET project to another computer, which
doesn't have Visual Studio.

If I modify the code there, is there a way to recompile it without
Visual Studio?

Thanks!


Nov 19 '05 #3
As a side note to Brocks advice - if you only have the runtime installed on
the remote machine, and not the SDK then you may have to invoke a cmd window
that sets the environment variables required to do a manual compile. There
is a batch file (setenv.bat I think) that you need to run.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located in the
.NET Framework install directory. v1.1 is here on my machine:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

-Brock
DevelopMentor
http://staff.develop.com/ballen
I would like to take my ASP.NET project to another computer, which
doesn't have Visual Studio.

If I modify the code there, is there a way to recompile it without
Visual Studio?

Thanks!


Nov 19 '05 #4
Hi Brock,

Thanks for the quick reply. My project is in C#. I have been looking at
the parameters for the "csc" executable.

I hate to ask, but would you know of way to compile a whole project using
"csc"?

Visual Studio seems to create a nice ".csproj" file that has everything in
it.

Thanks, again!
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located in the
.NET Framework install directory. v1.1 is here on my machine:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

-Brock
DevelopMentor
http://staff.develop.com/ballen
I would like to take my ASP.NET project to another computer, which
doesn't have Visual Studio.

If I modify the code there, is there a way to recompile it without
Visual Studio?

Thanks!


Nov 19 '05 #5
Right, but your requirement was that you didn't have VS.NET, right?

The basics of running it are:

csc.exe /t:library /r:bin\SomeDependantAssembly.dll /r:bin\SomeOtherAssembly.dll
/out:bin\MyAssembly.dll file1.cs file2.cs file3.cs

So, /t: says to build a DLL assembly
/r: is a reference to the path of any dependant assembly
/out: says where to put the generated assembly
and then all the files that should be compiled into that assembly

If you're interested in a debug build, add /debug in there too.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi Brock,

Thanks for the quick reply. My project is in C#. I have been looking
at the parameters for the "csc" executable.

I hate to ask, but would you know of way to compile a whole project
using "csc"?

Visual Studio seems to create a nice ".csproj" file that has
everything in it.

Thanks, again!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located in
the .NET Framework install directory. v1.1 is here on my machine:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

-Brock
DevelopMentor
http://staff.develop.com/ballen
I would like to take my ASP.NET project to another computer, which
doesn't have Visual Studio.

If I modify the code there, is there a way to recompile it without
Visual Studio?

Thanks!


Nov 19 '05 #6
Sorry for the confusion. I have a C#, ASP.NET project that I built using
VS.

Now, I need to take the project to another computer that doesn't have VS,
modify, and rebuild the code. So, I will still have the ".csproj" file, but
I need a way to compile it.

I have tried to view the compile process from Visual Studio, but the steps
are not displayed.

Would you know how to compile the ".csproj" or view the compile steps in VS?

Thanks!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
Right, but your requirement was that you didn't have VS.NET, right?

The basics of running it are:

csc.exe /t:library /r:bin\SomeDependantAssembly.dll
/r:bin\SomeOtherAssembly.dll /out:bin\MyAssembly.dll file1.cs file2.cs
file3.cs

So, /t: says to build a DLL assembly
/r: is a reference to the path of any dependant assembly
/out: says where to put the generated assembly
and then all the files that should be compiled into that assembly

If you're interested in a debug build, add /debug in there too.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi Brock,

Thanks for the quick reply. My project is in C#. I have been looking
at the parameters for the "csc" executable.

I hate to ask, but would you know of way to compile a whole project
using "csc"?

Visual Studio seems to create a nice ".csproj" file that has
everything in it.

Thanks, again!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located in
the .NET Framework install directory. v1.1 is here on my machine:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

-Brock
DevelopMentor
http://staff.develop.com/ballen
I would like to take my ASP.NET project to another computer, which
doesn't have Visual Studio.

If I modify the code there, is there a way to recompile it without
Visual Studio?

Thanks!


Nov 19 '05 #7
That's the problem -- .csproj is a VS.NET file. It's where VS.NET keeps all
of its info necessary to compile the assembly. You'd have to pick apart the
..vsproj and infer the proper command line arguments I showed earlier. There's
no parser (other than VS.NET) that I'm aware of that will do that. You could
build your own.

Also, I am assuming you're speaking of VS,NET 2002/2003, yes? If you're running
VS.NET 2005, then it uses MSBuild config files, so with that version you
could use MSBuild.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Sorry for the confusion. I have a C#, ASP.NET project that I built
using VS.

Now, I need to take the project to another computer that doesn't have
VS, modify, and rebuild the code. So, I will still have the ".csproj"
file, but I need a way to compile it.

I have tried to view the compile process from Visual Studio, but the
steps are not displayed.

Would you know how to compile the ".csproj" or view the compile steps
in VS?

Thanks!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
Right, but your requirement was that you didn't have VS.NET, right?

The basics of running it are:

csc.exe /t:library /r:bin\SomeDependantAssembly.dll
/r:bin\SomeOtherAssembly.dll /out:bin\MyAssembly.dll file1.cs
file2.cs file3.cs

So, /t: says to build a DLL assembly
/r: is a reference to the path of any dependant assembly
/out: says where to put the generated assembly
and then all the files that should be compiled into that assembly
If you're interested in a debug build, add /debug in there too.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi Brock,

Thanks for the quick reply. My project is in C#. I have been
looking at the parameters for the "csc" executable.

I hate to ask, but would you know of way to compile a whole project
using "csc"?

Visual Studio seems to create a nice ".csproj" file that has
everything in it.

Thanks, again!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...

Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located in
the .NET Framework install directory. v1.1 is here on my machine:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

-Brock
DevelopMentor
http://staff.develop.com/ballen
> I would like to take my ASP.NET project to another computer, which
> doesn't have Visual Studio.
>
> If I modify the code there, is there a way to recompile it without
> Visual Studio?
>
> Thanks!
>



Nov 19 '05 #8
I found a description of a tool called NAnt on the web. Have you heard of
this?

Thanks, again.

http://www.theserverside.net/article...le.tss?id=NAnt

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
That's the problem -- .csproj is a VS.NET file. It's where VS.NET keeps
all of its info necessary to compile the assembly. You'd have to pick
apart the .vsproj and infer the proper command line arguments I showed
earlier. There's no parser (other than VS.NET) that I'm aware of that will
do that. You could build your own.

Also, I am assuming you're speaking of VS,NET 2002/2003, yes? If you're
running VS.NET 2005, then it uses MSBuild config files, so with that
version you could use MSBuild.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Sorry for the confusion. I have a C#, ASP.NET project that I built
using VS.

Now, I need to take the project to another computer that doesn't have
VS, modify, and rebuild the code. So, I will still have the ".csproj"
file, but I need a way to compile it.

I have tried to view the compile process from Visual Studio, but the
steps are not displayed.

Would you know how to compile the ".csproj" or view the compile steps
in VS?

Thanks!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
Right, but your requirement was that you didn't have VS.NET, right?

The basics of running it are:

csc.exe /t:library /r:bin\SomeDependantAssembly.dll
/r:bin\SomeOtherAssembly.dll /out:bin\MyAssembly.dll file1.cs
file2.cs file3.cs

So, /t: says to build a DLL assembly
/r: is a reference to the path of any dependant assembly
/out: says where to put the generated assembly
and then all the files that should be compiled into that assembly
If you're interested in a debug build, add /debug in there too.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi Brock,

Thanks for the quick reply. My project is in C#. I have been
looking at the parameters for the "csc" executable.

I hate to ask, but would you know of way to compile a whole project
using "csc"?

Visual Studio seems to create a nice ".csproj" file that has
everything in it.

Thanks, again!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...

> Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located in
> the .NET Framework install directory. v1.1 is here on my machine:
>
> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>> I would like to take my ASP.NET project to another computer, which
>> doesn't have Visual Studio.
>>
>> If I modify the code there, is there a way to recompile it without
>> Visual Studio?
>>
>> Thanks!
>>


Nov 19 '05 #9
Yep. Nant is a XML based configuration build tool. You'd have to maintain
your own XML "scripts" to tell Nant how you'd like it to build your assembly.
I don't know if they have utilities that will read a .csproj and build their
XML files though. Ideally, that's what you'd like, I think. So, in a sense,
Nant is doing what VS.NET is doing for you now (modulo the Editor, Debugger,
etc). MSBuild in 2.0 is MSFT's version of Nant, so to speak.

(Quickly scanned the article posted)

Looks like SLiNgshoT will do this conversion for you! Give it a shot and
let us know how successful it was :)

-Brock
DevelopMentor
http://staff.develop.com/ballen
I found a description of a tool called NAnt on the web. Have you
heard of this?

Thanks, again.

http://www.theserverside.net/article...le.tss?id=NAnt

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
That's the problem -- .csproj is a VS.NET file. It's where VS.NET
keeps all of its info necessary to compile the assembly. You'd have
to pick apart the .vsproj and infer the proper command line arguments
I showed earlier. There's no parser (other than VS.NET) that I'm
aware of that will do that. You could build your own.

Also, I am assuming you're speaking of VS,NET 2002/2003, yes? If
you're running VS.NET 2005, then it uses MSBuild config files, so
with that version you could use MSBuild.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Sorry for the confusion. I have a C#, ASP.NET project that I built
using VS.

Now, I need to take the project to another computer that doesn't
have VS, modify, and rebuild the code. So, I will still have the
".csproj" file, but I need a way to compile it.

I have tried to view the compile process from Visual Studio, but the
steps are not displayed.

Would you know how to compile the ".csproj" or view the compile
steps in VS?

Thanks!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...

Right, but your requirement was that you didn't have VS.NET, right?

The basics of running it are:

csc.exe /t:library /r:bin\SomeDependantAssembly.dll
/r:bin\SomeOtherAssembly.dll /out:bin\MyAssembly.dll file1.cs
file2.cs file3.cs

So, /t: says to build a DLL assembly
/r: is a reference to the path of any dependant assembly
/out: says where to put the generated assembly
and then all the files that should be compiled into that assembly
If you're interested in a debug build, add /debug in there too.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Hi Brock,
>
> Thanks for the quick reply. My project is in C#. I have been
> looking at the parameters for the "csc" executable.
>
> I hate to ask, but would you know of way to compile a whole
> project using "csc"?
>
> Visual Studio seems to create a nice ".csproj" file that has
> everything in it.
>
> Thanks, again!
>
> "Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
> news:92**********************@msnews.microsoft.com ...
>
>> Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located
>> in the .NET Framework install directory. v1.1 is here on my
>> machine:
>>
>> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
>>
>> -Brock
>> DevelopMentor
>> http://staff.develop.com/ballen
>>> I would like to take my ASP.NET project to another computer,
>>> which doesn't have Visual Studio.
>>>
>>> If I modify the code there, is there a way to recompile it
>>> without Visual Studio?
>>>
>>> Thanks!
>>>


Nov 19 '05 #10
Hi Brock,

Fyi, I was able to get the NAnt to work today.

Download from here:
http://sourceforge.net/projects/nant

Description here:
http://www.code-magazine.com/article...uickid=0507081

Installation:
Just unzip, copy where you want, and add the bin folder to your path.

Copy the projects ".sln" file into the project directory.
Tumbleweed.sln

Add a build file to the project directory with the extension of ".build".

Here's mine:
<?xml version="1.0" encoding="utf-8" ?>
<project name="Tumbleweed">

<target name="build">

<solution configuration="debug"
solutionfile="Tumbleweed.sln">

<webmap>
<map url="http://localhost/Tumbleweed/Tumbleweed.csproj"
path="C:\Inetpub\wwwroot\Tumbleweed\Tumbleweed.csp roj" />
</webmap>

</solution>

</target>

</project>
You compile from the comand line like this:
nant build

That's it!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
Yep. Nant is a XML based configuration build tool. You'd have to maintain
your own XML "scripts" to tell Nant how you'd like it to build your
assembly. I don't know if they have utilities that will read a .csproj and
build their XML files though. Ideally, that's what you'd like, I think.
So, in a sense, Nant is doing what VS.NET is doing for you now (modulo the
Editor, Debugger, etc). MSBuild in 2.0 is MSFT's version of Nant, so to
speak.

(Quickly scanned the article posted)

Looks like SLiNgshoT will do this conversion for you! Give it a shot and
let us know how successful it was :)

-Brock
DevelopMentor
http://staff.develop.com/ballen
I found a description of a tool called NAnt on the web. Have you
heard of this?

Thanks, again.

http://www.theserverside.net/article...le.tss?id=NAnt

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...
That's the problem -- .csproj is a VS.NET file. It's where VS.NET
keeps all of its info necessary to compile the assembly. You'd have
to pick apart the .vsproj and infer the proper command line arguments
I showed earlier. There's no parser (other than VS.NET) that I'm
aware of that will do that. You could build your own.

Also, I am assuming you're speaking of VS,NET 2002/2003, yes? If
you're running VS.NET 2005, then it uses MSBuild config files, so
with that version you could use MSBuild.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Sorry for the confusion. I have a C#, ASP.NET project that I built
using VS.

Now, I need to take the project to another computer that doesn't
have VS, modify, and rebuild the code. So, I will still have the
".csproj" file, but I need a way to compile it.

I have tried to view the compile process from Visual Studio, but the
steps are not displayed.

Would you know how to compile the ".csproj" or view the compile
steps in VS?

Thanks!

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:92**********************@msnews.microsoft.com ...

> Right, but your requirement was that you didn't have VS.NET, right?
>
> The basics of running it are:
>
> csc.exe /t:library /r:bin\SomeDependantAssembly.dll
> /r:bin\SomeOtherAssembly.dll /out:bin\MyAssembly.dll file1.cs
> file2.cs file3.cs
>
> So, /t: says to build a DLL assembly
> /r: is a reference to the path of any dependant assembly
> /out: says where to put the generated assembly
> and then all the files that should be compiled into that assembly
> If you're interested in a debug build, add /debug in there too.
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>> Hi Brock,
>>
>> Thanks for the quick reply. My project is in C#. I have been
>> looking at the parameters for the "csc" executable.
>>
>> I hate to ask, but would you know of way to compile a whole
>> project using "csc"?
>>
>> Visual Studio seems to create a nice ".csproj" file that has
>> everything in it.
>>
>> Thanks, again!
>>
>> "Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
>> news:92**********************@msnews.microsoft.com ...
>>
>>> Yes. The C# (csc.exe) and VB.NET (vbc.exe) compilers are located
>>> in the .NET Framework install directory. v1.1 is here on my
>>> machine:
>>>
>>> C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
>>>
>>> -Brock
>>> DevelopMentor
>>> http://staff.develop.com/ballen
>>>> I would like to take my ASP.NET project to another computer,
>>>> which doesn't have Visual Studio.
>>>>
>>>> If I modify the code there, is there a way to recompile it
>>>> without Visual Studio?
>>>>
>>>> Thanks!
>>>>


Nov 19 '05 #11

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

Similar topics

0
by: Matthias | last post by:
Hello I am a programming newbie, trying to install the "Twisted" package from source, on a Windows computer with Python 2.3 installed. But when I try to build the sources it gives an error:...
1
by: Dan | last post by:
Hi. I'm not sure whether this is the right group to post this in - if not can you advise me of a better suited newsgroup to post to instead? I'm just starting playing around with C# and windows...
12
by: RobKinney1 | last post by:
Hello, This is a stupid question. I cannot find any information if we can buy Visual C# 2005 without purchasing the whole Visual Studio 2005... can you do this like you can purchas C# 2003 by...
12
by: Wardeaux | last post by:
All, Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one... Here's the deal: I have a web app that takes...
1
by: Larry Brown | last post by:
Hi, I know that I should not, but believe me I really have to do that: I'm developping an ASP.NET application with Visual Studio .NET 2003 installed on my workstation, on a server which is on a...
2
by: Jason Kendall | last post by:
I've got a simple report that I'm building. This is just a single web page. It uses a custom DLL that I've built as an interface to my database. When I use th page within an ASP.Net project, in...
3
by: Benny Raymond | last post by:
Does anyone know off hand if dynamically compiled C# is debuggable in ..net 2.0?
16
by: jblankenburg | last post by:
I am trying to deploy a simple web application to my client's production server, but it's not clear to me how MS planned on having the Security users managed without Studio. Certainly someone...
4
by: =?Utf-8?B?Q1IgU3VwcG9ydA==?= | last post by:
Hi experts, We are trying to migrate from Visual Studio 6 (C++ project) on Windows 2000 to Visual Studio 2005 SP1 on Windows Vista but found that the migrated program runs slower in both OS. A...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.