#1
|
|||
|
|||
Building VS.Net Web Projects
What I am trying to do is build a VS.Net Web Project.
1. I Delete the IIS virtual Directory 2. I recreate the Virtual Directory 3. In my case, I cchange the assemblyinfo.cs file modifying references 4. I try to compile the project The website I create via the Action supplied does grant annon access to all , and Ive set it at read and write On the VS.Net action I have the following info Filename : http://localhost/NetworkActivityRepo...Reports.csproj Checked Clear the target executables read only flag for each project Checked parse Build Output for failed prokects Configuration seleceted , Release selected Checked Update the output directory for each project, to a bin folder I stated , C:\Test\bin I am getting the following error when I try to compile a web project. 2/13/2006 1:00:45 PM: Building project step 'Build NetworkActivity Reports Project'... Pre-processing... http://localhost/NetworkActivityRepo...roj...Updating output directory for Release configuration... Error pre-processing project file 'http://localhost/NetworkActivityReports/NetworkActivityReports.csproj': URI formats are not supported. 2/13/2006 1:00:46 PM: Step 'Build NetworkActivity Reports Project' failed 2/13/2006 1:00:46 PM: Build ended. I can take the URL supplied, Open up VS.Net, File >> Open Project paste in http://localhost/NetworkActivityRepo...Reports.csproj an VS.Net will open the project. Change to release and build it there with no warnings. All the options I have selected, I use on other non web csproj files with no issues. Question can web projects only be built via a Solution file in Visual Bild ? Let me know if anymore information needs to be supplied |
#2
|
|||
|
|||
Just a FYI , for some reason its not displaying properly but It is "http://localhost/NetworkActivityReports/NetworkActivityReports.csproj" Everywhere you see a link.
|
#3
|
|||
|
|||
The 'Update the output directory' option can't be used when building web projects via their http path. Either specify the .sln file instead, or create a separate no-build Make VS.NET step to update the output path, specifying either the .sln file or the local filename for the .csproj file.
|
#4
|
|||
|
|||
I found the answer. We dont allow the developers to check in thier .sln files. With that said this also means I dont get the csproj.webinfo file. I got around this error by doing the following
I added a Write file step above the Make VS.Net proj. In this file I write the following <VisualStudioUNCWeb> <Web URLPath = "http://localhost/NetworkActivityReports/NetworkActivityReports.csproj" /> </VisualStudioUNCWeb> I then save the file as NetworkActivityReports.csproj.webinfo I then call the project via its path c:\NetworkActivityReports\NetworkActivityReports.c sproj This allows me to compile and set the output directory. Does anyone see any issues with the way I am compiling this project ? The code works after compiling. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|