1

Is it possible to publish a web application without visual studio ?

If i got all my file on a compiling server without visual studio, is it possible to compile my files with command promp or something like that ?

3
  • Compiling and publishing are two separate things. Which are you trying to do? Commented Sep 15, 2010 at 14:31
  • When you say web app, do you mean that the project is defined as a web app as opposed to a web site (in other words, that it uses a project file)? Commented Sep 15, 2010 at 14:44
  • I got a code generator, whoe generate my web site, and i generate a web site (without cs.proj) Commented Sep 15, 2010 at 16:19

2 Answers 2

2

You will need ASP.NET Compilation Tool (Aspnet_compiler.exe)
http://msdn.microsoft.com/en-us/library/ms229863%28VS.80%29.aspx

Sign up to request clarification or add additional context in comments.

4 Comments

This is correct if the goal is to precompile the code-behinds. Whether that's the goal is a bit unclear, though. And, even so, it still uses csc.exe (for C# code).
I thought of Web application as of a project is compiled into a single assembly. I've used this kind in VS 2003 or VS 2005, then you have an assembly with a business logic and all that stuff you usually put in App_Code in web site. Then you just call aspnet_compiler.exe on the directory and get a distributable fully compiled output. But it was a long time ago and I can be wrong.
I don't think you're wrong (so I'm not sure why you were downvoted), but I do think the original question is somewhat ambiguous.
Yep, a bit more of details would definitely helped to answer.
0

Build:

msbuild .\Project.sln

Publish:

msbuild .\Project.Web.csproj /p:AllowUntrustedCertificate=True /t:MsDeployPublish /p:MsDeployServiceUrl=yourdomain.com;DeployIisAppPath="YourIISSiteName";username=YourAdminUser;password=YourAdminPassword

(msbuild.exe is located in your .NET framework location. i.e. C:\Windows\Microsoft.NET\Framework\v4.0.30319)

1 Comment

Will this work equally well for web apps and web sites (the two project types, I mean).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.