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
Similar Messages:
Sep 1, 2010
I am using VS2005 and I have a solution file (.SLN) which has 8 projects. I moved the solution file to a different path on a shared folder to have better organization of my projects and to allow access to the solution/projects from any computer on the network. After that, I edited the .SLN file so that the path of the projects in the solution file are correct (all on shared folders).
After that, I opened the .SLN and everything seemd to be working fine. However, I notcied that the "Start Options" of the website part of the solution file is missing the "Start Options", ie, the Start Options are reset to default values. I think also, but not sure, some other settings of the Solution/Projects have been reset.
Questions:
1. Where the Web Site "Start Options" are stored ?
2. How I can maintain the Start Options and similar settings if the .SLN file is moved or opened from different computers on the network ?
3. I am not using an team development tools, only plain (vanilla) VS 2005 Prof. Edition. Is it possible to have 2 or more developers work on the same solution/projects (shared on the network), if both developers will coordinate manually simultanous access to the porject files/resources/source code ?
View 6 Replies
Jan 18, 2010
This is getting me a little frustrated, and I looked around the net for the solution and was not able to find any as of yet.I'm trying to have Web Deployment projects in VS 2010. I have it installed for VS2008, but I was not able to find anything to install for VS 2010.I basically want to merge all outputs to a single assembly in 2010. How do I do that??
View 5 Replies
Jun 28, 2010
how to create an empty Solution in Visual Web Developer 2010 Express Edition.
File > New Project, and then -- where?
Maybe it's now allowed? I can't work with solutions at all then?
View 2 Replies
Nov 30, 2010
I'm trying to migrate an old asp.net 1.1 application to target the new .net 4.0 framework. There are good guides available on this [URL]. However, all approaches start with the assumption that the 1.1 project contains a solution file which one has to open using VS 2010 and go through the conversion wizard.
In my case, the project does not have any solution file, giving me a sort of chicken and egg issue.
Is there a way to add a 1.1 .net soution file with or without VS 2010? Using command line tools? What is so special about a solution file anyway?
View 3 Replies
Jul 12, 2010
Let's say I am working on a multiple page web solution and make a small change to one web page. The small change needs to get published but I want to be able to publish it without having to republish the entire site. How do i do that? How do i publish a single page of a multi-page solution in Visual Studio 2010?
View 1 Replies
Aug 3, 2010
I am using VWD 2010 Express, usually with several site pages open in tabs. For some reason, when I move from one tab to another, the newly active page is not highlighted in the Solution Explorer pane. Is there some setting that is causing this? I often have two similar pages open, referring to the code on one as I work on the other, and not having the Solution Explorere correctly highlighting the active page make it really easy to be working on the wrong page.
View 2 Replies
Aug 7, 2010
Platform : Visual studio2010 , MVc2 and sqlserver 2008
I wrote query in Linq for order by. Following is the code snippet for the same,
[code]....
It works in on my local machine but in live site it doent work correctly. I mean it won't show sorting/oder by. In live
site we used sql server 2005, does this going to make any difference ?
View 1 Replies
Apr 6, 2013
How to make mobile website in visual studio 2010 or above.
whta is differ when we code for it on c#.
View 1 Replies
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
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
Mar 27, 2011
Can I create an incremental deployment package using either Visual Studio 2010 Web Deployment Projects or Web Deploy (Web Deployment Tool) .
I need to automatically select changed files from a source and destination or a change set on TFS and build a deployment package only with the changed files.
View 9 Replies
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
Mar 20, 2010
I'm trying to create a .NET solution and add class libraries to it. First - in VS2008 I go to File > New > Project > Other Project Types > Visual Studio Solutions > Blank Solution. Then - after VS2008 creates the blank solution I right click on the solution and select Add > New Project > Visual C# > Class Library. However, when I add the Class Library to the solution, the solution icon disappears from Solution Explorer (although the solution name is still in the VS2008 title bar). Why does the solution icon disappear
from the Solution Explorer when I attempt to do this?
View 2 Replies
Sep 10, 2010
I am stumped by a serious issue in Vs 2008.
I created a Blank solution called HelloWorld.Then I added a new Class Library project by the name of HelloWorldService.After creation of the
Class Library project the Solution name disappeared from Solution Explorer.
As a result of which I can now only add new items into the Class Library project but cannot add new item to the solution.
This appears to be a pretty old problem as I found it in another link on the internet.
[URL]
It seems to be a bug.Has MS released a patch or a fix for this.
View 6 Replies
Jul 6, 2010
I tried to install Visual Studio Prof 2010 trail version in my system, but i got an error saying 'Please remove/uninstall Visual Studio 2010 load test controller' to proceed installation. i uninstalled my previous VS2008 software from system and i could not find anything like 'Remove/Uninstall Visual Studio 2010 load test controller' software in my Add/Remove Programs.
View 1 Replies
Jul 22, 2010
I don't understand how to use this feature called "Build deployment package" in VS 2010. I go to my properties and go to package/publish web and setup it up. I click "Create deployment package as zip"
I then build the deployment package and get a zip file.
When I look into and start drilling down in the folders I find I get a path like this
[Code]....
I don't understand why it makes all these folders and on top of it why is it my path to where my soultion sits. I don't like the fact that now everyone can look in the zip and see my accoutn name, where the file was sitting, that I am using subversion.
Then it makes it so confusing to when a error happens. I deployed it on my IIS windows 2008 server and ran it and I had a error show up. It pointed to the file where the error occured and the path was point to my desktop.For the longest time I could not understand why it was pointing to my windows 7 machine desktop when it was running on a windows 2008 server located in a different country.
It was not until I found out with the zip path it made sense. But that is confusing when it is pointing to paths that don't exist on that computer.
How can I change this?
View 4 Replies
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
Jul 15, 2010
I'm thinking about installing vwd 2010 or vs 2010 express but want to know if either offer integrated jquery support.
View 4 Replies
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
Aug 14, 2010
is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project
my current project references
i have a very annoying iis problem
iis server stops working until app pool is recycled
i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem
View 2 Replies
Feb 14, 2010
Even though I when I create a linqtosql class I mark C# as the language it was always shows up as a Visual Basic file in the App Code file. I can't get it to stop doing that. ????? What is going on?
View 5 Replies
May 21, 2010
Anyone know if I can maintain a VS 2008 (.net 3.5) project by using the VS 2010 IDE ?
View 1 Replies
Jun 23, 2010
I constant get the following error when I try to load existing web project in Visual studio
"The Web Application Project is configured to use IIS. To access Web sites on the local IIS Web server, you must run Visual Studio under an Administrator account."
It started happening after I had to re-install IIS because of metabase corruption. I have already tried following
1. create and re-create application in IIS
2. register aspnet using aspnet_regiis
3. I am already member of adminstrators group I also added aspnet to administrator group, no luck
4. I have tried repairing Visual studio 2008 and still same issue appears
I am using XP SP3, Visual Studio 2008 Team System and IIS 5.1. I have Visual Studio 2005, Visual Studio 2008 and Visual Studio 2010 installed on my machine.
View 6 Replies
Nov 16, 2010
I know that I can add more than one project to a solution, but I have a load of pre-developed projects that I want to add and rather than going
Add > Existing Project > Navigate to folder > click on project file
I wondered if there was an easier way to add lots of projects at once.
View 1 Replies