Asp.net - MSBuild _CopyWebApplication Not Copying <link> From Vbproj

May 11, 2011

We have a CMD file which loads an MSBuild XML file and builds and publishes our VB .NET Web App. I noticed today that one of the user controls we're using is not being copied to the UserControls folder in the output directory. However when I build and publish the project from within Visual Studio 2008 that file is there.

I believe the reason this is happening is because the file that is in the UserControls folder in the project is a shortcut to a file in a different solution within the same project. The ItemGroup XML in the MyProject.vbproj file looks like this:

<Content Include="..OtherSolutionUserControlFile.ascx">
<Link>UserControlsUserControlFile.ascx</Link>
</Content>

In the MSBuild.xml file we have, the following is being run after the solution has been built:

<MSBuild Projects="$(ProjectRootPath)MyProject.vbproj"
Targets="_CopyWebApplication;_BuiltWebOutputGroupOutput"
Properties="OutDir=$(BuildFilesPath)" />

why the shortcut is not being copied to the OutDir?

View 1 Replies


ADVERTISEMENT

.net - MSBuild Fails On Lambda Expressions?

Jul 25, 2011

I have an issue with building a project using the MSBuild (ver 4) from the command line when declaring lambda expression like this:

Private Sub Foo(ByVal s As String)
Dim WL = Sub(str As String)
If Not String.IsNullOrEmpty(str) Then[code]......

View 1 Replies

Force MSBuild To Compile For 32-bit Mode?

Jul 2, 2009

I'm using MSBuild (via NAnt) to compile a bunch of VB.NET assemblies. Because these assemblies depend on COM Interop, I need to guarantee that they run in 32-bit mode on 64 bit OS's. I can get the executable assemblies to compile to 32-bit by changing the project in Visual Studio, but I'd really like to be able to force all of the executables to be compiled to 32 bit mode on the build server.I've tried a number of command-line parameters to MSBuild with no luck:

/p:Platform=win32
/p:Platform=x86
/p:ProcessorArchitecture=x86

View 5 Replies

IDE :: Visual Studio / MsBuild Freezes While Building?

Dec 5, 2009

I have recently stumbled across a problem in the last week where Visual Studio (both 2005 and 2008) will lock up while building my solution. The status in Visual Studio will show "started building" or however the first message reads and then just sit there. At this point, the IDE will lock up (focus is lost and I can not regain it) and my machine's CPU usage will go to 100%. The only way to stop it is to force quit the application or process (either Visual Studio or my Command prompt if I am using MSBuild directly). Of course, the system still seems to be trying to process something because my machine still sits at around 100% basically forcing me to restart my machine to try again.

View 2 Replies

List Obsolete Classes / Methods In Msbuild

Jun 28, 2010

I have upgraded a visual basic 2005 project to visual basic 2010 (.net framework 4.0). I want to list all obsolete functions used in this project in order to change it with newer ones. How can I treat obsolete functions warnings as errors in visual basic 2010 ms-build?

View 1 Replies

MSbuild Getting The Current Configuration From The Solution File?

Jul 31, 2009

In my VB.NET project I have three configurations DEBUG|TEST|RELEASE.

Currently when I am building using MSbuild and TeamCity I hard code the configuration, which smells badly!, to TEST

<Configuration Condition=" '$(Configuration)' == '' ">Test</Configuration>

Now before everyone screams at me not to hardcode this, the reason this was done was becuase we could NEVER seem to get $(Configuration) populated.

So my question is within MSBuild how can I read the currently selected configuration from the solution file commited to SVN?

View 1 Replies

Add HostMessage.dll To Project AAA.vbproj Which Is In C:PSEAAA

Dec 9, 2009

There is a reference HostMessage.dll which is stored both in C:Frameworkin and C:PSEBinRelease.Now I want to add HostMessage.dll to the project AAA.vbproj which is in C:PSEAAA.I added it from the project property panel and I selected C:PSEBinReleaseHostMessage.dll.However after I added it I found that the reference path became C:Frameworkin automatally.

View 6 Replies

VS 2005 - Copying The Internet Cache Folder But Getting Copying Error?

Apr 22, 2009

I have a copying error with my program. I am trying to copy the internet cache folder, and the error states that some files cannont be copied (read only maybe?) How can i make it copy, or just skip the uncopyable files?

My.Computer.FileSystem.CopyDirectory(Environment.GetFolderPath(Environment.SpecialFolder.Internet Cache), "d:My Documents")

View 12 Replies

.net - Logging From Msbuild Custom Task Using Console Class?

Feb 28, 2011

I'm trying to convert an existing command line tool into msbuild custom task.This tool logs messages and errors using the System.Console class.I've added to the tool's assembly a class that inherits from Microsoft.Build.Utilities.Task and calls the tool main function, and the custom tool works fine - but no messages/errors are displayed (on the Visual Studio output window).I would like to avoid changing the original tool's code (otherwise I could change every "Console.Error.WriteLine" to "Log.LogError").I thought of changing the stdout and stderr streams of console by calling Console.SetOut and SetError before calling the tool's main function. For that, I would need to implement a class that inherits from TextWriter.

[Code]...

View 2 Replies

Msbuild - Modify The AssemblyInfo.vb File Of The Main Executable?

Jan 6, 2011

I currently have a nightly build system running as a windows scheduled task, calling at batch file, that works sort of like this: Check out the latest revision from subversion Modify the AssemblyInfo.vb file of the main executable and the librarys to set the version number to 0.0.0.revision Invoke MSBuild to build everything (including the installer) Upload the installer and a log of the build to an FTP server This works ok, but step 2 is dirty and fragile, and I can't imagine that this the only way to do what I want. Any ideas?

View 1 Replies

IDE :: .vbproj Is Not Supported By This Version Of Visual Studio

Apr 15, 2008

I have Visual Studio 2008.

When i try to create a new VB project (.exe or .dll - doesn't matter) or try to open an existing one, I receive the following error:

"C:Documents and Settings.....WindowsApplication1.vbproj" cannot be opened because its project type (.vbproj) is not supported by this version of Visual Studio.

To open it, please use a version that supports this type of project.

I tried un-installing Visual Studio and then re-installing again - same result.

It was working fine in the beginning. Between the last time it worked and the first time it didn't - I installed some Oracle tools, not sure if that affected anything. What's interesting - the problem is only with VB projects, C# projects can be created and opened.

View 21 Replies

IDE - Unable To Read The Project File 'MyProject.vbproj' ?

Jun 14, 2012

I'm gearing up to work on a project which is migrating from VB6 to .NET 4.0. I have Visual Studio 2010 but wanted to try and open the original source code using the VB6 IDE. Can one still acquire this anywhere?I checked here:http:[url].... I have tried opening the original vb project file by changing the suffix from vbp to vbproj (let's call it MyProject.vbproj) but it just says it cannot interpret the file:

Unable to read the project file 'MyProject.vbproj'.

View 2 Replies

Svn - TortoiseSVN Hangs With .vbproj File On Initial Import To Repository?

Aug 25, 2011

we have a CollabNet Subversion Edge server running on a Windows server. Subversion Server is configured to serve via https. When trying to import a Visual Studio project folder with TortoiseSVN it hangs when adding the project file (.vbproj). Test 1: It happens exactly the same when the server is configured to serve via http.Test 2: Importing any project folder using the console utility (svn) works fine.

Both these tests lead to the conclusion that there is neither a network nor authorization problem.

View 1 Replies

Visual Studio 2008 - .Net - Version Numbering In VBPROJ File?

Jun 25, 2010

Following on from my last question, are the AssemblyMajorVersion, AssemblyMinorVersion,AssemblyRevisionNumber and GenerateRevisionNumber properties required in .vbproj files?

All of our components have these entries in the .vbproj files but they are completely out of sync with the AssemblyVersion and AssemblyFileVersion entries in the AssemblyInfo.vb files.

Are they a legacy from the upgrade from previous VS versions?

View 1 Replies

Finding Project - Create A Windows Application - Have Lost The .vbproj File

Jul 6, 2009

I am running vb.net in visual studio 2005 and i am fairly new to it all, whilst trying to create a windows application i have lost the .vbproj file and am only left with the .vb code that has been created whilst i have been using the toolbox to create the application graphically. Is there anyway for me to recover the .vbproj file without having to redo the whole thing?

View 3 Replies

VS 2010 Make The Download Manager Know It Is Link To Downloadable File As Opposed To Something Like Link To Another Webpage?

Dec 4, 2010

I'm using visual basic 2010 express..I'm building my own web browser and want to add a download manager.I have been able to build one that will download a file if I type the file location into a text box.What I'm trying to figure out is how to have the download manager open when I click on a download link on a web page.How to make the download manager know it is a link to a downloadable file as opposed to something like a link to another webpage?

View 3 Replies

Call An ASP Link From VB Code-behind Instead Of User Clicking Link?

Feb 8, 2012

I have a link here that works perfect for calling the postback close that I need to happen:

<a href="javascript:parent.__doPostBack('Close','')"><asp:Label ID="Label5" runat="server" Text="Close Me"></asp:Label></a>

However, I would like to be able to call the *javascript:parent.__doPostBack('Close','')* method from the code-behind file rather than the user clicking the link. I.e., when I have completed my tasks in the application code, call parent.doPostBack as my last function call, which closes the window in question.

View 1 Replies

Clicking A Link In 1 WebBrowser Causes WebBrowser2 To Navigate To The Link?

Jun 12, 2009

When a button is clicked i am creating HTML that will be displayed in the WebBrowser1 control. With this HTML are several links to other pages. Is it possible that when one of these links is clicked, that WebBrowser2 navigates to the page instead of WebBrowser1?

View 5 Replies

HTML In Windows Application - Add A URL Link And An Email Link

Jan 30, 2009

I have a project that I would like to add a URL link and an email link to in the Help/About dialog. How can I do this? Is it possible to add HTML code to a VB project? This is not a Web application.

View 6 Replies

VS 2008 Find Clicked Url Link/ Open Link In New Tab?

Sep 4, 2009

Im trying to create a webbrowser in VB 08;

I was wondering how i would create new tab with the Link the clicked.

*EG* They Right-Click Link > Open In New Window/Tab > Makes New Tab In My Program > Navigates To The Linked Clicked.

View 26 Replies

Which Is Better To Open .sln File Or .vbproj File

Mar 16, 2012

i was just curious to know which is better to open, the .sln file or the .vbproj file?

View 2 Replies

C# - Move ReferencePath Information From A .vbproj.user (or .csproj.user) File Into The Corresponding Project File?

Nov 28, 2011

Can I safely move ReferencePath information from a .vbproj.user (or .csproj.user) file into the corresponding project file? Note: All developers will be using developing from the same location on their machines.We'd like to allow users to maintain their own settings for other things, but have this basic info be setup once and checked into source control to be shared to all.

View 1 Replies

Swf Link - Automatically Add The 1 To The End Of The .swf Link?

Dec 13, 2010

so I'm using Visual Studio 2010 and I'm trying to make a program where I would have a textbox where the user would type,then a "Go" button. In the textbox, the user would type a number, lets go with 1 for an example. A user would type 1 in the textbox, then it would automatically add the 1 to the end of this .swf link: "http:[url]... after they enter the 1 in the textbox and press the "Go" button, it would add the 1 to the end of that link, then that link would open a new shockwaveflash form with the link being the Movie. Is this possible?

View 5 Replies

Asp.net - Back Reference Link (link Of Back Page)

Dec 18, 2009

i am using this function to get link of page which refered current page (in Back Button)

[Code]...

View 2 Replies

Copying A Form From Vb6

Jun 12, 2012

copying a form design (and possibly the code) from vb6 to .NET? I think I understand how to do the code with copy and paste but how about the form design itself?

View 3 Replies

App For Copying Elements From One List To Another?

Mar 11, 2012

I want to copy the elements from one list to another.

View 4 Replies

Batch Copying Of Files?

May 17, 2012

I am busy writing a application that i can set up a list of files to copy from one location to a remote network drive.

THe program has a list of "jobs" in a datagrid that it loops through and executes in sequence. What i have now is a background worker that reports the status of which job it is on (File 1 of 5) but i would like something that shows the status of the current copying file as sometimes large files can look like it's stopped on the network

I am using the System.io.file.copy structure, but have also tried the my.computer.filesystem.copyfile (which shows the status in a "windows" copy box)

So, what i would like is some guidance on how to create a function that will copy the file but also report back progress periodicly. I don't want to read and write byte for byte as im worried this will be too slow.

Also, is there a better way/function to use to copy files? Looking for best speed

View 2 Replies

Copying & Over Riding File

Feb 4, 2012

I have code that copies from path folder and then copies it over to the destination folder when button is clicked.problem is it won't overide if there is bin file in that directory allready.[code]

View 10 Replies

Copying A File Or Extracting It?

Nov 8, 2011

i want to store 2 files in the program and the user clicks the button a dialog shows and the user go to the directory he wants to add these 2 files that stored in the program, How to Do This??

View 8 Replies

Copying A File To The Clipboard

Feb 11, 2012

I have a DataGridView which lists the paths of a group of files, pptx, xlxs, etc. From a context menu they can copy the name of the file onto the clipboard, or delete the file or rename the file, but I would like to be able to actually attach the file itself to the clipboard so it could be pasted as an attachment to an email or something like that. How do I get the file itself onto the clipboard when I only have the path to it?

View 5 Replies







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