targets

Team Build, copy file target issue

Hi I have this team build target setup to after compile <Target Name="AfterCompile"> <Copy SourceFiles="$(SolutionRoot)\Development_VS2008\MyCompanyName.SharePoint.12" DestinationFolder="c:\testing"></Copy> </Target> I want the folder structure copied from source to destination... Amazingly I am getting this error Could not...

How do I manage building a Lite vs Paid version of an iPhone app?

Hi there; I'm starting to get to the point where I want to consider building a lite version of my iPhone app. I've found a few things on the web that talk about the process a bit, namely: http://developer.apple.com/tools/XCode/XCodeprojects.html http://www.pacificspirit.com/blog/2009/01/27/building_for_multiple_iphone_targets_in_xcode...

Where should I store common targets for team builds?

I am trying to set up a common.targets file with some common msbuild targets I want to use in my team builds and therefore import into my TFSBuild.proj files. I am wondering what is the best way to achieve this? Do I need to store common.targets right next to each TFSBuild.proj file and therefore having duplicates of the targets file for...

Targetting silverlight v2

Hi, Now that I have installed Silverlight 3, I seem unable to build a Silverlight application for Silverlight 2. I have set my objects minRuntimeVersion to 2.0.31005.0, however users who do not have silverlight 3 are still prompted to update. I'd prefer not to force this update on my users just yet, so is there a way to build Silverli...

How to invoke the same msbuild target twice?

Dear ladies ... and sirs. I have the following msbuild script: <?xml version="1.0" encoding="utf-8"?> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="All"> <PropertyGroup> ... </PropertyGroup> <UsingTask AssemblyFile="$(GallioTaskPath)" TaskName="Gallio.MSBuildTasks.Gallio" /> <...

finding objects within radius.

looking for a light weight way to find objects within a radius. so far the answer that is obvious to me is go through each object, comparing its x and y position, with the center of the radius. example: Turret - looking for targets in radius. TargetArray - array of possible targets. WithinRangeArray - array we push applicable targets...

ant common targets are not recognized by eclipse

Hi All, I have added all common targets like (init,clean,getivy etc) in ./common/common.xml and added import file="${basedir}/common/common.xml" in build.xml. When i build the project, its working fine.But, When i open build.xml in eclipse IDE , i see some "Red" marks underneath "targets" which has a dependency targets that are defined...

Targeting a static library to Mac and iPhone

I have a few static library projects which are used in a Mac application, I'm working on porting these libs to the iPhone and I would like to use the project to build both the Mac and iPhone versions. For that purpose I setup an additional target for the iPhone. This looks like it should work but I see that if I try, for example, to add...

target-action cocoa touch

Hi there, I want to add at-runtime some behaviour to some controls: Suppose we have a UISwitch. The next thing I want to do, is reading an UIML file and add some action to the UISwitch. This action is described in the UIML document. UIML is an XML document. Suppose we have an interface with 1 switch and 1 textfield. When changing the ...

target-action uicontrolevents

I must be missing something obvious here but ... UIControl has a method - (void)addTarget:(id)target action:(SEL)action forControlEvents: (UIControlEvents)controlEvents which lets you add an action to be called when any of the given controlEvents occur. ControlEvents are a bitmask of events which tell you if a touch went down, or up...

Reusing MSBuild targets for different build types

I have got a problem with reusing the same MSBuild targets for different build types on TFS. Let me describe the situation. I have got two build types (CI - for continuous integration and RC - for release candidate). So I have got two build types defined in the TFS. Their *.proj files are under: - $/Repository/TeamBuildTypes/CI - $/Re...

I have an Xcode static library project, how do I add a test target to it so I can run it there? (Instead of in a project that links to it.)

I want to be able to test library code in the library target so I don't have to switch over to a separate project to run it. I see how to add a target, but I'm not sure how to set it up to run like the "Command Line Tool" project template does. I tried adding a new "Shell Tool" target, but I don't know how to make it run like one. What ...

Xcode -- groups and targets

I have an Xcode project. The project currently has four targets, and I am about to add more. Within the project are about 150 png files. I have all of these in a tree of groups in the Xcode "groups and files" panel. I want to include these png files in some of my targets, but not in others. The thing is, I will always want either ...

WPF VS2010 Upgrade - Now WPF designer throws exception when projects targets .NET framework 3.5

I recently upgraded a number of projects from VS2008 to VS2010. Now I'm having an issue at design time w/ the WPF designer in Visual Studio. It throws an exception for every XAML page I open in design mode. Exceptions also throw for new brand new XAML pages. Projects currently target .NET 3.5. If I switch to target .NET 4.0, designe...

MsBuild ZIP Folder named by date and time actual

I'm pretty new to MSBuild so please be gentle with me, I need sample for do this: I have a msbuild file, mydeploy.targets, to deploy WebSite in remote machine. I want to do backup (of files of remote machine) for each deployment. I need ZIP a folder in remote machine, for generate ZIP file of all folder (all contents files, folders), ...

Xcode multiple targets -- #ifdef's running over

I have an Xcode project with seven targets, corresponding to seven iPhone apps. That number may increase. A lot of the targets use a lot of the same classes. I have reproduced portions of the app delegate below. For purposes of this post, I have renamed the targets target1 through target7. I have setup corresponding macroes mTarge...

Why does 'clean' magically fix mysterious bugs in my app?

If I ever have a problem that is not showing up as a warning, but makes my app crash on runtime, sometimes I'll build->clean and often it this unkown bug disappears. This happens mostly when I import new images into the project(replacing old ones) or when I make major syntax changes with my code. F'in 'Clean all Targets', how does it wo...

Stop Xcode from Running Run Script for All Targets

I have two targets in my iPhone application: one for my actual app, and another for my unit testing. I added a run script to my main application's target so that when I compile, the script will generate Doxygen documentation. The problem is that the script runs when I am compiling and running my unit testing target. Is there a way to mak...

xib file shows in wrong target

Hello all, I am new to using multiple targets in a xcode project and have hit a snag that I can't find an answer for. I have a project with two targets. One target does not have a user interface and the second target contains a user interface for administration. The problem that I am having is when I build and run the first target witho...

MsBuild: Get current directory of targets

I have a msbuild target and it has a Import tag like this: <Import Project="$(MSBuildExtensionsPath)\Company\Company.LifeCycle.targets" /> In contents of Company.LifeCycle.targets file, how can I get programatically the current directory (in this case is: C:\Program Files\MsBuild\Company) ?? I use VS 2008, .NET 3.5 Edit: I have seen...