How can I build a microsoft web project (not csproj file or sln file).
It's created with "Create Website" from Project New.
How can I build a microsoft web project (not csproj file or sln file).
It's created with "Create Website" from Project New.
Hi Peter,
Technically a ‘Web site’ project doesn’t need to be built as the source code lives in the App_Code folder and is compiled when the application starts, if you wish to pre-compile the web site then you’ll need to use the VS.NET action and select the .sln file that Visual Studio has created (VS doesn’t put it in the website folder, it puts it in the projects folder if you’re using the default ‘Documents\Visual Studio 2008’ path).
Regards,
Paul.
If you use the VS.NET action without checking use msbuild, it doesn't actually compile, it just does verification using the dynamic compiler. If you check the use msbuild option, the default will output a folder called PrecompiledWeb\WebsiteName at the same level as the directory of your website. If you look at the property page for the website project, there as some msbuild settings you can change.
Also be aware if you go with a website project pointing at http://localhost/websitevdir, visual studio will create the vdir the first time you open the project. If you have multiple branches building, this can be problematic because it doesn't change the vdir on subsequent openings. Also if you move the files around it can be a problem.
-Nelson