targets

How to invoke the same msbuild target twice?

一世执手 提交于 2019-12-19 05:24:29
问题 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" /> <Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" /> <ItemGroup> ... </ItemGroup> <Target Name="CheckServerHostsItemGroup" Condition="'$(NoServerHosts)' != True"> ... </Target>

msbuild not working properly with tfs 2010 and importet Microsoft.TeamFoundation.Build.targets

烈酒焚心 提交于 2019-12-13 01:18:16
问题 i'm stuck with extending my msbuild project file and tfs 2010. What i want to achieve is to automatically generate the documentation for my source code after the build. I searched the web and found out, that the file Microsoft.TeamFoundation.Build.targets defines a lot of customizable targets for either desktop- or team-build. One of them is the GenerateDocumentation -Target which i want to use. The Problem i have is, that despite i imported this file, the overloaded targets are not invoked

MSBuild multiple outputpath

心已入冬 提交于 2019-12-12 14:23:02
问题 I saw this S.O question and have a similar requirement. This is what I have in a .targets file - <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Condition="$(TeamBuildOutDir) != '' "> <OutputPath>$(TeamBuildOutDir)\Assemblies</OutputPath> </PropertyGroup> How can I output to multiple folders? e.g.- $(TeamBuildOutDir)\Assemblies2 TIA Thanks Nick, The copy/paste mucked it up. This is what I tried - <Project xmlns="http://schemas.microsoft.com/developer

Microsoft.WebApplication.targets was not found, on the build server. What's your solution?

大憨熊 提交于 2019-12-12 04:05:11
问题 Trying to build my project on the build server gives me the following error: Microsoft (R) Build Engine Version 4.0.30319.1 error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications

MSBuild Condition IsDebug

China☆狼群 提交于 2019-12-11 08:58:37
问题 How can I determine if a project is build in Debug (or Release) mode within an MSBuild .targets file and use this information as a condition for another property? Something like: <OutDir Condition="IsDebug">bin\Debug\$(SomeOtherProperty)\</OutDir> <OutDir Condition="!IsDebug">bin\Release\$(SomeOtherProperty)\</OutDir> Is there such thing as Debug/Release mode, or are they just conventional names for different sets of configuration properties' values? 回答1: Debug/Release or whatever are just

Xcode — groups and targets

怎甘沉沦 提交于 2019-12-11 08:21:39
问题 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 all of them or none of them. I don't want to pick and choose. Is there a way to manage this? Basically, I want some targets to use all of the files in the "png files

The apple watchkit app showing error “The operation couldn't be completed. (LaunchServicesError error 0.)”

百般思念 提交于 2019-12-10 16:36:42
问题 The apple watchkit app is not launching on simulator. After renaming target always getting the message "The operation couldn't be completed. (LaunchServicesError error 0.)". 回答1: Another reason for this, is to have two different targets of WatchKit App in the same project. Attached capture from Console.app: 回答2: Be sure you didn't change anything in WatchApp plist file. You should have same bundle identifier (with .watchkitapp suffix) and WKCompanionAppBundleIdentifier. And same for

Creating an application with multiple targets in Windows Phone 7

末鹿安然 提交于 2019-12-08 09:19:24
Is there any way to create a project/application which will have multiple targets. Its same as how we create multiple targets for an iPhone application in XCode. Basically I have an app which has to be made for different targets, with almost all the similar functionalities but with little change. You can use Configuration Manager to add additional configurations to the list of Debug and Release. Then for each configuration go to Project/Properties/Build/Conditional compilation symbols and add a symbol used with your configuration or target, eg. make it SILVERLIGHT;WINDOWS_PHONE;CUSTOMVERSION1

What are “targets” in Xcode?

ⅰ亾dé卋堺 提交于 2019-12-03 13:00:00
问题 I have seen a lot of things about 'targets' while working with xcode. when i click on the project icon (blue, in xcode 4.2) i see 'Targets' in the middle pane with my file name under it. What does that mean? and can I add more 'targets' to my project? If yes, what would that mean? I have this: http://developer.apple.com/library/ios/#featuredarticles/XcodeConcepts/Concept-Targets.html but i didn't understand a thing 回答1: A target basically defines what it is you are building and how you are

target-action uicontrolevents

大城市里の小女人 提交于 2019-12-03 11:52:44
问题 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 inside, or was dragged etc., there's about 16 of them, you or them together and get called when any of them occur. The selector can have one of the following