---
title: "Publicera webbsite med Microsoft Visual Web Developer 2008 Express Edition"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/166864-publicera-webbsite-med-microsoft-visual-web-developer-2008-express-edition"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "saw"
published: "2007-12-02T11:22:47.000Z"
updated: "2007-12-02T18:55:54.000Z"
replies: 4
views: 598
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/166864-publicera-webbsite-med-microsoft-visual-web-developer-2008-express-edition"
---

# Publicera webbsite med Microsoft Visual Web Developer 2008 Express Edition

## #1 — saw, 2007-12-02T11:22Z

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

Permalänk: https://www.webforum.nu/p/166864

## #2 — CatZ, 2007-12-02T12:34Z

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"

Permalänk: https://www.webforum.nu/p/2055420

## #3 — saw, 2007-12-02T13:35Z

Ja men då är ju inte Websiten compilerat???

Permalänk: https://www.webforum.nu/p/2055436

## #4 — saw, 2007-12-02T18:30Z

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&#8594;
 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???

Permalänk: https://www.webforum.nu/p/2055477

## #5 — saw, 2007-12-02T18:55Z

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.

Permalänk: https://www.webforum.nu/p/2055484

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/166864-publicera-webbsite-med-microsoft-visual-web-developer-2008-express-edition
