Team Build Of Web Projects Generates App_web_xxxx.dll Files And TFSBuild.Proj Script

Jun 11, 2010

I have a web application that has some non-web projects as well. When using Web Deployment, a single assembly is generated for all the aspx.vb files. When using Team Build (TS 2008), a lot number App_Web_xxx.dll file(s) are generated instead of a single assembly. How can i solve this problem and change the TFSBuild.proj file so that it can generate a single Web Assembly instead of a lot number of assemblies.

I guess thats because the MERGE operation is not occurring like it used to happen for Web Deployment Project in my solution. How can i enable MERGE of App_web_*.dll files into a single Web.dll assembly file and delete the satellite assemblies? Here is my code from TFSBuild.proj file: (MY web project is in Release|.NET Config and all other projects within the solution are in Release|Any CPU)

<Target Name="AfterBuild">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|.NET' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>.Debug</OutputPath>
<EnableUpdateable>true</EnableUpdateable>
<UseMerge>true</UseMerge>
<SingleAssemblyName>Web</SingleAssemblyName>
<DeleteAppCodeCompiledFiles>true</DeleteAppCodeCompiledFiles>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|.NET' ">
<DebugSymbols>false</DebugSymbols>
<OutputPath>.Release</OutputPath>
<EnableUpdateable>true</EnableUpdateable>
<UseMerge>true</UseMerge>
<SingleAssemblyName>Web</SingleAssemblyName>
<DeleteAppCodeCompiledFiles>true</DeleteAppCodeCompiledFiles>
</PropertyGroup>
</Target>

View 1 Replies


Similar Messages:

Start Breaking Into Multiple Projects From The Beginning And Others Build Behemoth Single Projects?

Jul 29, 2010

I've seen some teams that start breaking into multiple projects from the beginning and others build behemoth single projects. The large project teams say that one massive project is easier to maintain than multiple smaller projects.

View 4 Replies

Team Build 2010 And Web.config Transformation?

Nov 25, 2010

I'm struggling to get web.config transformations working with automated builds. We have a reasonably large solution, containing one ASP.NET web application and eight class libraries. We have three developers working on the project and, up to now, each has "published" the solution to a local folder then used file copy to deploy to a test server. I'm trying to put an automated build/deploy solution in place using TFS 2010. I created a build definition and added a call to msdeploy.exe in the build process template, to get the application deployed to the test server. So far, so good!

I then tried to implement web.config transforms and I just can't get them to work. If I build and publish locally on my PC, the "publish" folder has the correct, transformed web.config file. Using team build, the transformation just does not happen, and I just have the base web.config file. I tried adding a post-build step in the web application's project file, as others have suggested, similar to:

<target name="AfterBuild">
<TransformXml Source="Web.generic.config"
Transform="$(ProjectConfigTransformFileName)"
Destination="Web.Config" />
</target>

but this fails beacuse the source web.config file has an "applicationSettings" section. I get the error Could not find schema information for the element 'applicationSettings'.I've seen suggstions around adding arguments to the MSBuild task in the build definition like

/t:TransformWebConfig /p:Configuration=Debug

But this falls over when the class library projects are built, presumably because they don't have a web.config file.

View 3 Replies

MVC :: Build Html.LabelFor That Generates Label And Tooltip Icon?

Feb 9, 2011

I need to build a custom html helper that generates Label and a tooltip Icon(based on the Display(Name = 'MyProperty', Description = 'ToMyToolTip') attribute). This is how my helper looks like so far:

[Code]....

The problem is that the label have a attribute called "for", I need to set this also but do not find the value in the metadata object? Do I have to manually create the value to the "for" attribute? And if so, how is the best way to do that?

View 2 Replies

Visual Studio :: Why Microsoft Ajax Minifier Dosen't Minifi The File When Used With Team Build 2010

Oct 9, 2010

I just used the wonderful tool Microsoft Ajax Minifier and it's working very well when I build my MVC application on my machine but when I check-in in source control and started build by the Team Build 2010 it doesn't create the min files, for sure I can't put the mini files inside the source control as the recommendation from the Microsoft Ajax Minifier because it's like the dll it's generated every time you build your application so no need to put it in source control beside it can't be because you will need always to check-out this file to build and this will prevent other from build using the team build, so what I need to do to make generate the mini file with team build 2010?

View 1 Replies

MSBuild Failing To Build Referenced Projects When Upgrading To VS2010?

Dec 8, 2010

I have recently upgraded my .Net 3.5 solution containing some C# code projects and a ASP.net web site project to VS2010 (from VS2008). It is building and running fine inside VS, but I get some problems when trying to build it on my server with MSBuild 4.0 via TeamCity. It seems like the projects that are referenced from the web site are not built. This was all working fine before I upgraded to VS2010, MSbuild 4.0 and Windows SDK 7.1.

Inside the msbuild script that I use to build from teamcity I have defined project references for the web site like this:

[code]...

When I try to run the build script I get an error message saying that it could not find the dll file when trying to copy it from the bin folder of the referenced project into the bin folder of the web site. This is happening because the referenced projects are in fact never built at all (No bin folder exists in the project dir).

I am not very experienced with MSbuild, so I may have overlooked some important stuff. Is it not so that MSbuild will automatically try to build the referenced projects if no project output is existing?

View 1 Replies

Web Deployment Projects For VS2010 On Build Server Failing With Error MSB4086?

May 25, 2010

When I upgraded my Web Deployment Project from VS2008 to the VS2010 beta version, I was able to execute the build locally on my development box. However, when I tried to execute the build on our TeamCity build server, I began getting the following exception:

[code]....

View 1 Replies

C# - Visual Studio 2010: How To Enforce Build Order Of Projects In A Solution

Sep 6, 2010

I had no problem with this in Visual Studio 2008 but it seems that VS 2010 is having an issue, and I'm betting it's probably me.I have a solution with an ASP.NET Web Site Project and a few C# projects (BLL, DAL, Tests in NUnit). I have configured the build process for the test project to automatically run NUnit to run the tests. I would like to ensure that the BLL and DAL projects build before the test project so that the tests will run against the latest compiled version (yes, I know I could do this all in one project, but I'm choosing not to -- please bear with me :) )

So, I set the dependencies of the Test project to include the BLL, DAL, and Web Application projects, and the build order shows BLL, DAL, Web Application, and then Tests. However, I noticed that the BLL doesn't actually build when I build the Test project.Any idea what this could be or any option I might be missing to force the other projects to build when I build the Test project?

View 3 Replies

Web Forms :: Sharing Class Files Across Projects?

Oct 18, 2010

Using ASP.NET v3.5 / VS2008.

Is there a way to share class files across web site projects without actually making a physical copy of the file to the App_Code folder of each project?

View 9 Replies

Web Forms :: Sharing CSS Files Across Multiple Projects?

May 5, 2010

I am trying to add multiple CSS files across several projects and have added them as a "link" but when I build my solution it does not copy the files. Is there any way to share a bunch of CSS files across several projects?

View 7 Replies

Storing Resource Files In Different Projects In Same Solution?

Jan 14, 2011

I have a project where I need different versions of the same site.

I need to accomplish this by having different versions of the same resource files.

I would like to store the different versions of the same resource files in seperate projects in the same solution. Then choose which project of resource files to use when I publish or compile.

I've been searching the net everywhere and my deadline is coming up.

View 1 Replies

Localization :: Storing Resource Files In Different Projects In Same Solution?

Jan 14, 2011

I have a project at work where I need different versions of the same site.

I need to accomplish this by having different versions of the same resource files.

I would like to store the different versions of the same resource files in seperate projects in the same solution. Then choose which project of resource files to use when I publish or compile.

I've been searching the net everywhere and my deadline is coming up.

View 8 Replies

How To Place Aspx-files In Separate Web Application Projects In One Solution

Oct 21, 2010

We have been building ASP.Net websites for many years. During this time we gathered a lot of knowledge of ASP.Net. We know what to use, a what not. One problem is still, persistently, bugging us. I hope to solve this for once and for all.

We have a fairly large solution with lots of aspx-files. All aspx-files reside in one Web Application Project. This single big WAP needs to be split in multiple smaller projects.

There are a number of ways to accomplish this, but I am still unsure what the best way would be. We use ASP.Net 4.0 and Visual Studio 2010 Premium.

This is our current work-around (which we do not like)

[code]....

View 2 Replies

Localization :: Store The Different Versions Of The Same Resource Files In Seperate Projects In The Same Solution?

Jan 18, 2011

I have a project at work where I need different versions of the same site.

I need to accomplish this by having different versions of the same resource files.

I would like to store the different versions of the same resource files in seperate projects in the same solution. Then choose which project of resource files to use when I publish or compile.

I've been searching the net everywhere and my deadline is coming up.

View 2 Replies

Visual Studio :: Old Projects Not Showing Up In The Start Page Recent Projects List?

Jan 31, 2011

I just moved to a new PC and installed VS 2010. I copied all of my websites over from the old machine and now when I open the old websites on the new machine, they do not show up in my recent projects list on the start page. New websites that I make do show up there but the old ones do not. This is very inconvenient. Is there a way to make old projects that I open show up in the list?

This brings up another question. Is there a way to make a shortcut that will open VS2010 up with a website already loaded so that I don't have to go through the file open dialog every time?

View 3 Replies

Popularity: Web Site Projects Versus Web Application Projects?

Nov 1, 2010

I need to create a sample project (for educational purposes) and I'm faced with the choice between Web Site Projects or Web Application Projects. This feels similar to the choice between C# and VB. My question isn't about the differences between these 2 choices, but rather which is more popular (relevant, recognizable) to the general ASP.NET community.Has anyone seen any statistics in terms of adoption/usage of these 2 different project types? What project type should I use to reach the widest audience?Update: I created a poll on this subject - http://poll.fm/2e6cy

View 4 Replies

Visual Studio :: Can Prevent Projects From Being Referenced By Other Projects

Jun 7, 2010

I have a multi-tiered application. I would like to publish the class libraries to UI developers to let them add to their web or windows projects to add all the functionality.

I would like to restrict access so only a certain project can be referenced. The reason is so that they do not refer to the data access layer directly and start making calls that would bypass the business logic built into the business tier.

UI->>Business Logic->>Data Access

So in other words, BL and DA are deployed as compiled assemblies. BL references DA. UI will reference BL, but I would like to strictly prevent any other project from referencing DA directly.

View 1 Replies

How To Build Zip Files Online For Download

Nov 6, 2010

I want to know that how many sites like jqueryui, etc. build online zip packages for download. And how it can be done in asp.net ?

View 2 Replies

Making A Build That Removes Source CS Files

Nov 22, 2010

How to make a build in VS 2010 within an ASP.NET MVC application that would remove all of the source code (CS and VB) files? When I build a website or web app I usually copy the contents of the entire solution to the hosting server. Mostly clients get the source but sometimes I do not want to expose the source to the hosting server thus only the Public (or Content) folder, views, masters and the built DLL should be copied.

Manual solutions are not applicable. What do you guys use?

View 2 Replies

Visual Studio :: Build And Rebuild Yielding Different Files?

Apr 16, 2010

I've got a solution that contains several projects. There is a main exe project which I'll call MyProj.exe that references several other projects which reference yet other projects in the solution. Additionally a few projects in the solution are not in MyProj's reference chain and aren't regularly built. There is 1 project (a class library project) named Payment which is giving me a particularly hard time. The two of MyProj's references have a project reference to Payment.dll. So the reference heirarchy looks like this:

- MyProj.exe
- Transactions
- Payment
- Accounts
- Payment

When I right click MyProj in the Solution Explorer and choose Build, everything works fine, but when I choose Rebuild, I get the following results:

Payment.dll is deleted but never rebuilt. It doesn't exist in the output directory MyProj.manifest in the output directory doesn't have a reference to Payment.dll. (What is this file? I don't remember normally seeing it in other project's the output directories.) 19 of the project .pdb files are deleted and not rebuilt This is a big problem for me because this is a ClickOnce application and when I'm publishing, Payment.dll isn't getting included in my deployment which is a problem I suspect is closely related.

View 1 Replies

Visual Studio :: Error Is Inconsistent,files Break The Build?

Nov 16, 2010

Create a control 'ClassName' in file ClassName.cs. Path is c:ProjectWebuserControlsControlTypeClassName.cs

[code]...

The really bizarre thing is that the error is inconsistent.Sometimes the project builds, sometimes some files break the build, sometimes others do, sometimes all of them do.

View 1 Replies

Visual Studio :: Create Build Configuration Dependent Web.config Files?

Dec 30, 2010

I'd like to add build configuration dependant web config files to my empty ASP.NET 4 Web site project. How can I do that? According to this blog entry, VS 2010 is supposed to provide a context menu entry on the original web.config file, Add Config Transform, allowing to add build configuration dependant web.config files to the project. But this context menu entry doesn't exist. What did I do wrong?

Steps to reproduce:

Create an empty ASP.NET 4 Web site project on localhost (IIS)

View 4 Replies

How To Get Visual Studio 'Publish' Functionality To Include Files From Post Build Event

Jun 29, 2010

I am currently attempting to use Visual Studio 2010 'Publish' and MSDeploy functionality to handle my web deployment needs but have run into a roadblock with regards to customizing the package depending on my build configuration.

I develop in a 32bit environment but need to create a release package for a 64bit environment, so in the 'Release' configuration I have a post build event that copies the 64bit version of a third-party dll into the bin directory overwriting the 32bit version. When I use the 'Publish' functionality, even though the correct 64bit dll is being copied to the bin directory, it doesn't get included in the package.

Is there a way to get the 'Publish' to include files that have been copied into the bin directory during a post build event?

View 2 Replies

How To Build An Online Word Processor Using .net.. Libraries In .net For MS Word Files

Sep 2, 2010

I'm a student doing final year of my Computer Science and Engineering. For my final year project i've choosen to do an online word processor such as google docs,zoho etc.I want to implement this project in .net. This will be a ajax oriented project and i'm well prepared with the web related part of it with ASP.net and C#.net at the server end and HTML,Javascript at the front end. But the point where i'm struck up is:

-> How can i create, edit and add MS Word features to a .doc file using VB.net or C#.net??
-> .net Library classes that will be helpful for me to create word related components as .doc files i.e how to create word using .net?
-> How can i convert a .doc file to HTML file to display it on a web browser?
-> In brief tell me how to create a word processor so that i'll be able to create it online.

View 1 Replies

C# - Prevent GridView Saving Data From Build To Build In Visual Studio?

Apr 1, 2011

I have a question regarding a situation that occurs with GridView, ObjectDataSource in ASP .NET application. The GridView is linked to the ObjectDataSource and both are included within an UpdatePanel letting the GridView to fill in an asynchronous way from a form in the same page so it gets more rows as the user enters the data:

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="ObjectDataSource1">
<Columns>
<asp:BoundField DataField="Name" HeaderText="Name" ReadOnly="True"
SortExpression="Name" />
<asp:BoundField DataField="Periodicty" HeaderText="Periodicty" ReadOnly="True"
SortExpression="Periodicty" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
SelectMethod="GetSessionNames" TypeName="Simulation"></asp:ObjectDataSource>
<asp:Label ID="Label27" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="NewWebSessionButton" EventName="Click" />
</Triggers>
</asp:UpdatePanel>

I start the project with Visual Studio 2008, fill the form and it works correctly. Then I stop the execution: rerun again and the data I entered in the previous run is in the GridView. Is like some sort of cache saved the data from the session before. I checked that EnableCaching property is set to false for the ObjectDataSource. If I Rebuild Web Site in Visual Studio (not just Build) then it works corretly leaving the GridView empty. Is this caused just becuase of Visual Studio? Can it be turned off? And will it happen in the final IIS it will run on?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved