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

how to compile code codebehind files without visual studio

Hi,

I have created a project (abc) in my wwwroot folder on my system. From
visual studio, i am able to run and view this page. Now I have deployed
on wwwroot folder and for this I have edited some code(in .vb pages)
according to the new path.

Since these pages are no longer part of the project file in visual
studio, how do I recompile my page so that it reflect the changes? Can
I compile/recompile and recreate the dll without visual studio? If yes,
how. please suggest.

Thanks,
Sarojanand Jha

Nov 19 '05 #1
2 2337
Using vbc the command line compiler...

That said it looks like you have not a good reason to do so. I'm using this
to compile the web site into multiple DLLs.

In your case it looks rather that you hardcoded something that would be
better dynamically found by the application so that using another location
doesn't require to change this. You may want to detail the original problem
so that someone can suggest perhaps a better solution than recompiling the
application...

Patrice

--

<sa********@gmail.com> a écrit dans le message de
news:11**********************@g49g2000cwa.googlegr oups.com...
Hi,

I have created a project (abc) in my wwwroot folder on my system. From
visual studio, i am able to run and view this page. Now I have deployed
on wwwroot folder and for this I have edited some code(in .vb pages)
according to the new path.

Since these pages are no longer part of the project file in visual
studio, how do I recompile my page so that it reflect the changes? Can
I compile/recompile and recreate the dll without visual studio? If yes,
how. please suggest.

Thanks,
Sarojanand Jha

Nov 19 '05 #2

<sa********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Hi,

I have created a project (abc) in my wwwroot folder on my system. From
visual studio, i am able to run and view this page. Now I have deployed
on wwwroot folder and for this I have edited some code(in .vb pages)
according to the new path.

Since these pages are no longer part of the project file in visual
studio, how do I recompile my page so that it reflect the changes? Can
I compile/recompile and recreate the dll without visual studio? If yes,
how. please suggest.

Thanks,
Sarojanand Jha

you can use vbc with line commands at the dos prompt or you can create a
text file with something like this all on one line.

/t:library /out:c:\physical-path-to-your-bin\name-of-file.dll
c:\physical-path-to-your-vb-file\name-of-file.vb /r:system.dll
/r:system.web.dll /r:system.xml.dll /r:system.data.dll /debug

and then use vbc @textfilename at a dos prompt. vbc is located in a sub
directory of the Microsoft.NET directory under windows.

I recommend the second method as it will save you a lot of time. Note that
you need the names of all the dll files that contain your imported
namespaces (sometimes this can be a bit tricky, ilasm.exe is helpful) and
the /debug will produce symbols so you can debug the code.
Nov 19 '05 #3

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

Similar topics

9
by: Brian | last post by:
Greetings: I am trying to compile the following code via command line. It compiles just fine in visual studio 2002 v7 so i took looked at the properties and i got the following command line...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
3
by: Andrew Luke | last post by:
Hi all you C++ guru's! I'm 'very, very' new to C++ and I'm having a little trouble configuring my VS environment I think - when I try and compile some sample code I'm getting the following...
2
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project...
5
by: Jarod_24 | last post by:
I've been working with a ASP.Net Web application project and it' ASP-NEt pages and the classes that you create seems to work without compiling the project. so my question is: why compile it? The...
4
by: needin4mation | last post by:
I work in Visual Studio, but not everyone where I am at does. Sometimes, however, they may have to make minor adjustments here and there. Since the code is c#, behindform code, if they make an...
6
by: Nathan Sokalski | last post by:
I recently converted some ASP.NET 1.1 projects of mine, created with Visual Studio .NET 2003, to Web Application Projects in Visual Studio .NET 2005 so that I could use ASP.NET 2.0 (All my ASP.NET...
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
1
by: =?Utf-8?B?SG93YXJkIFBpbnNsZXk=?= | last post by:
I'm trying to convert a Web Site to the Web Application project model and I'm running into compile errors that do not seem to be covered by the guidance I found at "Converting a Web Site Project to...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.