CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_web_deployment_projects Tags:
Item Type: NewsGroup Date Entered: 3/7/2006 3:38:09 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 11 Views: 124 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
12 Items, 1 Pages 1 |< << Go >> >|
fcsobel
Asp.Net User
Web Deployment Project copies .csproj and .sln files3/7/2006 3:38:09 PM

0/0

How do I keep  project (.csproj) and solution (.sln) files from being copied to the release folder? 

trms
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files4/7/2006 6:53:00 PM

0/0

I'm having this same problem. 

When using a Deployment Project with a Web Site Project, things work out just fine.  However, when using a Deployment Project with a Web Application Project, things like the .csproj file and the obj, Properties, etc folders get copied to the release folder.

I suppose there's no good way for the deployment project to know which files in the directory are used by the site or not...  Anyone have any solutions?

-John Reilly
Tightrope Media Systems
http://www.trms.com/
mbund
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files4/13/2006 7:32:16 PM

0/0

That is a nice suggestion -- I've gone ahead and entered a Design Change Request (DCR) 590603 to consider it for a future release.

Thanks!


-Mike-

thisisafish
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files4/24/2006 3:21:34 PM

0/0

Open the project file and add in /Project/ItemGroup:
~A~
thisisafish
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files4/24/2006 3:23:56 PM

0/0

Oki, forum dont like "<".. test "heello".. Anyway - add: [ExcludeFromBuild Include="$(SourceWebPhysicalPath)\*.csproj"/]
~A~
Yury Kravtsov
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files4/25/2006 2:45:06 PM

0/0

Hi!

It seems that WDP copies vssver2.scc file also. This is the mark file for VSS 2005 and it is present in probably every folder of a project.
So
thisisafish:
[ExcludeFromBuild Include="$(SourceWebPhysicalPath)\*.scc"/]

might not be correct solution for it.

Any idea?



mbund
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files4/25/2006 5:40:25 PM

0/0

According to http://filext.com/detaillist.php?extdetail=SCC

Program and/or Extension Function:

A special file called MSSCCPRJ.SCC is created in your working folder when Visual SourceSafe works with Visual Studio projects and solutions. The default MSSCCPRJ.SCC settings *.VBP, *.MAK, and *.DSP ensure that whenever you get or add a file with these extensions, SourceSafe creates the MSSCCPRJ.SCC file so that SourceSafe integration in Visual Studio works correctly for these files.

Also, when any Visual SourceSafe operation puts a copy of a file on your local drive, it creates or updates a file called VSSVER.SCC in the working folder. That file lets VSS determine which files in that folder have and haven't changed.


Since *.scc files are not used by ASP.NET, I would recommend not deploying them.
The following will exclude all *.scc files in the root folder and subfolder, and (as a bonus) exclude DummyFile.mak from the root folder only. Add this under the Project element in the deployment project file. Remember to replace the square brackets with angle brackets. You can find info like this in the WDP white paper found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/web_deployment_projects.asp

[ItemGroup]
  [
ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.scc"/]
  [ExcludeFromBuild Include="$(SourceWebPhysicalPath)\DummyFile.mak"/]
[/ItemGroup]


-Mike-

freelancer
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files5/24/2006 8:57:00 PM

0/0

I tried this, but the resulting output is all screwed up.  You get an additional directory as a sibling to the output location named 'Source' and the output location contains everything from the directory that we're building from (including all of the .svn folders).

Instead I tried to delete the files in the After Build target, but the delete task is extremely flaky.  Most of the time the delete won't even delete.
<ItemGroup>
<ProjFiles Include="$(OutputPath)\*.csproj*" />
</ItemGroup>
<Target Name="AfterBuild">
   <!-- Strip out stuff we don't want -->
   <RemoveDir Directories="$(OutputPath)\Properties" />
   <RemoveDir Directories="$(OutputPath)\obj" />
   <Delete Files="@(ProjFiles)" />

   <!-- Move site to deployment destination -->
   <Copy SourceFiles="@(PrecompiledOutput)" DestinationFiles="@(PrecompiledOutput->'$(DeploymentPath)\%(RecursiveDir)%(Filename)%(Extension)')"
          Condition="'$(DeploymentPath)' != ''" />
</Target>
Any ideas why the delete won't work?  Sometimes it will, but then the @(PrecompiledOutput) is out of sync and the copy fails, so I'll need to generate a new file list after the delete.  Now aspnet_compiler includes the ..csproj files too, so the problem lies there I think.  Anybody have a good solution for getting rid of the extra stuff (.csproj, obj, Properties)?

Steele
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files8/16/2006 7:17:54 PM

0/0

The following do NOT work for eliminating .svn folders:

<

ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\.svn\*.*" />

<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.svn\*.*" />

<ExcludeFromBuild Include="$(SourceWebPhysicalPath)\**\*.*svn\*.*" />

What is the correct way to accomplish this?

I would settle for excluding all folders with an attribute of Hidden

Thanks,

Steele Price
MVP - VB
http://steeleprice.net


Microsoft MVP - Visual Developer - Visual Basic
mpowell
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files9/8/2006 3:08:17 PM

0/0

Steele,

Here's what I use to remove .svn folders; a bit klugey but it seems to work fine.  For some reason the ** wildcard doesn't work on the .svn folder at the project root, so I just break that one out separately. 

<ItemGroup>

<RemoveAfterBuild Include="$(OutputPath)\.svn\" />

<RemoveAfterBuild Include="$(OutputPath)\**\.svn\" />

</ItemGroup>

<Target Name="AfterBuild">

<RemoveDir Directories="@(RemoveAfterBuild)" />

</Target>

goodeye
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files11/21/2006 8:22:38 PM

0/0

Hi,

Combining mpowell and steele's, this is working for me:

ExcludeFromBuild Include="$(SourceWebPhysicalPath)\.svn\**\*.*;$(SourceWebPhysicalPath)\**\.svn\**\*.*"

(add the outer brackets - never sure if they work in posts)

- Bob

Broken0007
Asp.Net User
Re: Web Deployment Project copies .csproj and .sln files12/6/2006 10:32:56 PM

0/0

goodeye:

Combining mpowell and steele's, this is working for me:

ExcludeFromBuild Include="$(SourceWebPhysicalPath)\.svn\**\*.*;$(SourceWebPhysicalPath)\**\.svn\**\*.*"


I can also confirm that this is working to remove the .svn folders.

I also found that I could not build a web deployment project if my solution included a C++ project as it was having trouble accessing the .ncb intellisense file.  I found that adding the following will work around this:

 <ExcludeFromBuild Include="$(SourceWebPhysicalPath)\*.ncb" />

 
 
-Chris
12 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional C# Authors: Simon Robinson, Christian Nagel, Karli Watson, Jay Glynn, Morgan Skinner, Bill Evjen, Pages: 1224, Published: 2004

Web:
Web Deployment Project copies .csproj and .sln files - ASP.NET Forums Web Deployment Project copies .csproj and .sln files. Rate It (1). Last post 12- 06-2006 5:32 PM by Broken0007. 11 replies. Sort Posts: ...
Web Deployment Project copies .csproj and .sln files - ASP.NET Forums Re: Web Deployment Project copies .csproj and .sln files ... Re: Web Deployment Project copies .csproj and .sln files ...
MSDN Visual C# IDE Vista doesn't start .sln and .csproj-files Jul 13, 2007 ... The SLN and project files all map to this same command. ... Visual Studio doesn' t care if there are four copies running at the same time. ...
CodeProject: Customizing csproj files to autogenerate AssemblyInfo ... Jul 19, 2008 ... This makes the targets file we created previously a part of this project. Make sure that the file is copied to the directory where the sln ...
Aaron Hallberg : Team Build and Web Deployment Projects Team Build + Web Deployment Project + Web Application Project Combination is Broken .... project generated for your solution to a file called foo.sln.proj. ...
OneChicagoPlace.com: csproj is not installed error when you try to ... Aug 1, 2008 ... csproj is not installed error when you try to open a .sln file ... VS 2008 choosing New Web Site vs New Project ASP.N.. ...
Deploying web sites with Web Deployment Projects - RedCrystal Sep 14, 2007 ... the Build box is unchecked, and on the Web Deployment Project (the one ending with ..... Be sure to run MSBuild on the solution (.sln) file, ...
MSDN Team Foundation Server - Build Automation How to publish a ... Apr 14, 2008 ... How to publish a Web Application Project in msbuild via Team ... with the sln file instead of the csproj file and see what that does? ...
patterns & practices: Team Development with Visual Studio Team ... Contains .sln files that span projects \Source \MyApp 1 ? .... Project files (. csproj or .vbproj). Project files include assembly build settings, ...
Working Copy and Project References - VisualSVN | Google Groups Solution (folder with the SLN-File) \ProjectName.Solution\Web (folder ... CSPROJ -File). Now we want to have a project reference from the ...




Search This Site:










team development in visual studio 2005

how to set 'group name' for radio buttons in child gridview

any idea on a go live date for asp.net 2?

"go to definition" with mixed languages

version numbers

unable to view web controls on vs2005 ide

in vs.net 2005, grid does not come up in designer like in vs.net 2003

how do i increment build number on a class library project?

client-friendly css formatting options, please.

problem with avalon and vs.net 2005

vs 2005 + drag and drop not allowed

missing data-access component from install??

devenv.exe+problem

build solution does not seem to rebuild all dll's, ".. does not contain a definition for .."

how to compile in release ?

how to debug multiple solutions ?

access classes stored in separate directory from aspx.cs page

open a project without opening all the previously opened files.

can't edit fields in vs from objectdatasource binding

visual studion 2005 start page : create web project...

visual studio.net html formatting

build failing because of microsoft.applicationblocks.data

exception while debugging web service in asp.net page

can i install visual studio.net 2005

website project and .sln file location

where's my root namespace? trying to ref page, master, usercontrol true types from other types.

referencing a class within a website from another website all within the same solution

unable to edit html source in asp.net 2.0

using vs2005 and vs2003 at the same time

code management

  Privacy | Contact Us
All Times Are GMT