msbuild-task

WPF app builds in vs2k8, but not on command line w/ msbuild

夙愿已清 提交于 2019-12-12 10:59:49
问题 I have a fairly small solution that includes a WPF windows application. It builds perfectly fine when built from the solution. I recently integrated the projects contained within the solution into an existing, much larger command line build that uses MSBuild. When built from the command line, however, I get the following errors: MainWindow.xaml.cs(12,4): error CS0103: The name 'InitializeComponent' does not exist in the current context View\EngineMonitorView.xaml.cs(12,4): error CS0103: The

How to invoke the same msbuild target twice with different parameters from within msbuild project file itself

泄露秘密 提交于 2019-12-12 07:09:34
问题 I have the following piece of msbuild code: <PropertyGroup> <DirA>C:\DirA\</DirA> <DirB>C:\DirB\</DirB> </PropertyGroup> <Target Name="CopyToDirA" Condition="Exists('$(DirA)') AND '@(FilesToCopy)' != ''" Inputs="@(FilesToCopy)" Outputs="@(FilesToCopy -> '$(DirA)%(Filename)%(Extension)')"> <Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(DirA)" /> </Target> <Target Name="CopyToDirB" Condition="Exists('$(DirB)') AND '@(FilesToCopy)' != ''" Inputs="@(FilesToCopy)" Outputs="@(FilesToCopy -

Override where a label is created by MSBuild in TFS 2008/2010

六眼飞鱼酱① 提交于 2019-12-12 05:46:40
问题 By default, when a queued build is running, MSBuild calls the CoreLabel task to label the source files that were included in the build - how do I control where this label is created? Basically, I would like the label to be created at the root of the Team Project (i.e. folder "Client" below), however it appears that the label is created at the root of the working folder for the workspaces (i.e. Project 1\Development\Sources): $ <-- Project Collection +- Client <-- Team Project +- Project 1 <--

Unable to Invoke Custom task referring WCF Service function through MSBuild

為{幸葍}努か 提交于 2019-12-11 15:32:38
问题 I am facing problem while invoking task from MSBuild - Below are the details what I have done - 1)I have C# WCF project having few services running. I hosted these services on Local Host.Service "http://localhost:59605/HotfixDatabaseAccess.svc" running on local machine. and it have function "IHotfixDatabaseAccess.GetComponentDetailsForHF()" which can be called by client which consume this service. 2)I have created another C# library project and I have added "HotfixDatabaseAccess.svc" service

Build target in the Publish Profile is not executing even if the Publish is successful

跟風遠走 提交于 2019-12-11 15:25:20
问题 I have a publish profile Staging.pubxml created for a console project (.NET Core 2.1), as follows: <?xml version="1.0" encoding="utf-8"?> <!-- https://go.microsoft.com/fwlink/?LinkID=208121. --> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <PublishProtocol>FileSystem</PublishProtocol> <Configuration>Staging</Configuration> <Platform>Any CPU</Platform> <TargetFramework>netcoreapp2.1</TargetFramework> <PublishDir>bin\Release

How to incorporate a third party api call during build time in ASP.Net MVC Application

ぃ、小莉子 提交于 2019-12-11 15:19:39
问题 Ok, here is my story. I have a ASP.Net MVC Web Application which works fine. But it needs some .resx file (some translated culture/language) file which comes by making an API Call to a third party end point . These .resx file needs to be brought in the application's corresponding folder everytime my web project builds . Because these resx file may change at the third party location so I need to get fresh file every time I run a build on my web application. Project 1: So till now I have a MVC

How to trigger a cruise control .net build manually?

偶尔善良 提交于 2019-12-11 10:37:44
问题 I am trying to install cruise control on a windows server 2012, but there are some issue with IIS so I can not access the dashboard website. I have modified the ccnet.config, is there a way to trigger the build without using dashboard website, so I can verify whether my setting is correct. Please help, thank you. 回答1: CC.Net "Tray" can be used to pop off builds..without going through the website. How to get CCTray however, cctray needs to talk to some kind of service........so you may be in a

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

MSBuild: Permanently Change PropertyGroup Property of a Project

穿精又带淫゛_ 提交于 2019-12-11 06:15:36
问题 I was hoping to find a way to set a value in my csproj file during my build to a value. Is there a task in MSBuild that I can use to set a property permanently to a value? In the example below, can I set CustomValue = Yes permanently? <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> ..... <CustomValue>XXXX</CustomValue <FileAlignment>512</FileAlignment> <ProjectTypeGuids><

Exec task in msbuild TFS won't execute exe properly

怎甘沉沦 提交于 2019-12-11 05:28:52
问题 I'm using web deploy to a remote server, through which we can only connect through a Cisco VPN client. In my TFS project file I have an EXEC task to open the client, then one to close it. <Exec Command="start $(COMSPEC) /C "C:\Program Files (x86)\Cisco Systems\VPN Client\vpnclient.exe" connect profile user me pwd password" ContinueOnError="false" /> Without these EXEC tasks and if I open the connection manually then the deployment works. But these commands aren't opening the client in the