Enligt hjälpen så skall man klicka på Built-menyn och därefter 'PublishProjectName'.
Denna möjligheten kan jag inte hitta, någon som vet???
:q
Publicera webbsite med Microsoft Visual Web Developer 2008 Express Edition
4 svar · 596 visningar · startad av saw
Du kan kopiera din Website till tex en ftp server eller till nätverket.
Om du går in på website och copy website så hamnar du rätt. Längst upp i centrum finns en knapp som heter "Connect"
Ja men då är ju inte Websiten compilerat???
Jag hittade någonting av intresse.
If you don't have the .NET Framework SDK v2.0 installed, you can still run
aspnet_compiler.exe from a regular command line, but you need to change
into the v2.0.50727 directory first. You can do that by running the following
command from a command prompt:
cd \windows\microsoft.net\framework\v2.0.50727→
For information on how to configure a menu item in Visual Web Developer
Express Edition that will precompile your web application, see "Automating
aspnet_compiler.exe in Visual Web Developer Express Edition," later in this
chapter.
Numerous command-line parameters can be used with aspnet_compiler.exe.
Table 3.1 lists a few that you are likely to use often.
Table 3.1. Frequently Used Parameters for aspnet_compiler.exe
Parameter
Description
-?
Prints a description of all parameters.
-v
Specifies the path that follows is a virtual path.
-p
The physical path of the application to compile.
-u
Specifies the compiled application can be updated.
-c
Causes the compiled application to be fully rebuilt, overwriting any existing
files.
-d
Creates debug output, making the application easier to debug if a problem
arises after it's copied.
Even though there are a lot of parameters for aspnet_compiler.exe, the
command to precompile your ASP.NET application is less complex than you
might think. For example, if you have an ASP.NET application located at
c:\myApp and you want to precompile it and save the result to
c:\compiledApp, you would run the following command:
aspnet_compiler.exe -p "c:\myApp" -v / "c:\compiledApp"The -p parameter is
used to point to the location of the application (c:\myApp in this case), and
the -v parameter points to the virtual location of the application. In a file-
based ASP.NET application, the virtual location is always /. That is followed
by the path where the compiled files should be written.
Min mapp ligger i "C:\Inetpub\wwwroot\Mansjouren". I rotten på wwwroot gjorde jag en mapp "compiledApp", och gjorde den som en virtuell mapp.
Då borde mitt kommandon bli:
aspnet_compiler.exe -p "C:\Inetpub\wwwroot\Mansjouren" -v / "www.localhost/compiledApp"
Jag får inga felmedelande, men ingenting händer. Om man skulle utgår ifrån
hårdkodad väg, som exemplet, då får jag fel hela tiden (detta är ingen virituell mapp).
Hur göra???
Det lyckades när jag hadde gjort två mappar i rooten på C:, myApp och compiledApp.
Då blev komandot..
aspnet_compiler.exe -p "c:\myApp" -v / "c:\compiledApp"
Jag hoppas att det kan hjälpa någon.