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
Similar Messages:
Feb 14, 2010
I want to be able to automatically publish to a local folder each time a web asp.net mvc 2 project is built.
I use Visual Studio 2008.
View 7 Replies
Mar 11, 2010
I want to write a class using c# and compile it and user this dll in many projects.
I know how to build a website in Visual Studio and publish it but Visual Studio mixes the classes and rename them to a few strang and unfamiliar names which doesn't mean anything.So my purpose is writting a class with some functions, compling them and use them in other projects.
View 5 Replies
Oct 18, 2010
I have a website(not an application) built in VS2008. When I try to publish the site, any of the files that are in the root folder are not published. This has only just started happening and I am unsure what I have changed to cause this. The files are not excluded from the project.
View 1 Replies
Oct 13, 2010
Smooth Streaming requires .ism, .ismc, .dat files to make the Silverlight video player page work. If the "Only files needed to run this application" is selectd in the "Package/Publish Web" tab, these files are not published. Now I have to select "All files in this project" to publish them but this is undesirable because it also pushes all the source code files to the server. Is there any way to specifically tell VS that .ism, ismc and .dat files are required to run the application?
View 4 Replies
Feb 24, 2011
Up until recently this worked without an issue. I am very certain I did not change any settings intentionally in VS2010. So I change a file in my project, something as basic as a web.config file. Clean and build the solution then Publish to a file system. No errors, goes through all the directories, but when I check the production site, the files are not being updated.What could cause this, and how does one fix it?
View 2 Replies
May 31, 2010
I am slowly working out the setup issues with Visual Studio 2010 Ultimate on my newly installed Windows 7 Professional Machine. I was running XP and copied most of my files back over using the 'Windows Easy Transfer' tool I used prior to installing (not an upgrade) Windows 7.
When I try to publish my website to wwwroot in 2 ways. When I select 'Delete all existing files prior to publish' I get the following error:
Error deleting file 'about.aspx'. Unable to delete 'about.aspx'. This function is not supported on this system.
When I use 'Replace matching files with local copies' I get this error:
Unable to add 'about.aspx' to the Web site. Unable to add file 'about.aspx'. Access is denied.
View 2 Replies
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
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
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
Jul 28, 2010
I just recently upgrade my asp.net web project from visual studio 2005 to visual studio 2010. The upgrade was successful with no problems however im missing some features with this project. The One Click Publish feature(which is greyed out) in the header area of Visual Studio 2010 and the Add Config Transforms feature which is no where to be seen when you right click on web.config. When i create a new web project straight from visual studio 2010, these options work fine.
View 1 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
Mar 28, 2011
I'm trying to publish my ASP.NET web application in Visual Studio 2010. I'm then trying to install it as a website on a server using IIS. I've gotten my application to publish (to a .zip file) but it points to the physical directory on my hard drive. This obviously will not work on the server.
View 3 Replies
Jul 1, 2010
In VS2010, in html files, JS IntelliSense works in script tags, but not in inline event handlers (onclick="...") Is that expected behavior?
View 1 Replies
Feb 8, 2010
i create a asp.net web aplication project, and when i debug it i can see the result on localhost that is ok. but how can i publish this site on the web? there is no publish button ont the build menu and solution explorer menu?
View 2 Replies
Apr 22, 2010
I need to know how to add a post build event to a Web Deployment Project.
How can it be done?
View 5 Replies
Feb 24, 2011
is it possible to open aspx files directly by clicking on them like html files without from within visual studio or visual web dev?
View 2 Replies
Feb 14, 2011
Im working on a website project with Visual Studio 2010 from 2 different computers (home & work).
In Dreamweaver Im used to FTP to upload/download files to/from a webserver to syncronice my files on the current computer Im working on.What is best option in Visual Studio 2010 to sync project files between home & work computers? I have seen there is a built in FTP, but seems only it can upload files, limited functionality?
View 1 Replies
Mar 9, 2010
how to include javascript file as project's resource for aspx.cs files under different folders to use?
View 2 Replies
Sep 4, 2010
I've created an asp.net website with VS2008, how can I publish it in VS2008?
P.S: I've used Right Click -> publish but, I've used a Database in my project, but VS2008 doesn't publish it.
P.S: I'm using SQL Express 2008
View 4 Replies
Mar 31, 2011
I'm trying to publish my mvc3 project to a web host server, I right clicked my project and selected publish, there i entered the ftp information, VS2010 uploaded the files to the ftp, but when i try to surf to the remote site i get an error "Directory Listing Denied". all guides I found requierd an installation on the web host side, is there no way to just upload the site like in classic asp?
View 2 Replies
Dec 24, 2010
I would like to publish our MVC project to the server where we want to put our mvc website via ftp.
If we manually do this by an ftp connection, it works fine. But we wanted to do it also by the publsh option in Visual Studio 2010. But when we do this we got the following error.
[Code]....
View 2 Replies
Dec 28, 2010
I have published my website using VS2010 and then selected FTP Site.Problem is that it does not show me update status. and takes too much time as compare to other FTP client. Is there any way or plugin for visual studio 2010 so i can build and directly publish that on FTP server.
View 2 Replies
Apr 25, 2010
How easy is it to publish your project using Visual Web Developer 2010? Right now, the ease of use using Database Publishing Wizard makes my publishing breezely smooth. [:)]
View 2 Replies
Nov 21, 2010
I would like to create a script that does some actions, then publish the site to the production, and then runs another script.Is that possible in VS2010?
View 2 Replies