msbuild

ILRepack for .Net Core Projects with MSBuild

帅比萌擦擦* 提交于 2019-12-23 04:22:33
问题 I want to integrate ILRepack in my MSBuild pipeline for a .Net Core project to merge all required dlls into a single exe/dll. The useful NuGet-Package ILRepack.MSBuild.Task seems well fitted for that, however the example in the GitHub readme does not quite work for .Net Core projects and I can't figure out how I have to change this to be compatible with a .Net Core project: <!-- ILRepack --> <Target Name="AfterBuild" Condition="'$(Configuration)' == 'Release'"> <ItemGroup> <InputAssemblies

Is there a way to create more than one deployment with msbuild on a single build?

为君一笑 提交于 2019-12-23 03:55:13
问题 I am using msbuild command line multiple times to create a deployment zip file for my dev / test / production websites. I have already configured the parameters and configuration xml for each one. I want to know if i can condense my 3 calls to msbuild down to one, and have it build all three at once? right now i have to run msbuild.exe myproject.sln /T:Build /p:DeployOnBuild=True /p:PublishProfile="Dev Server" msbuild.exe myproject.sln /T:Build /p:DeployOnBuild=True /p:PublishProfile="Prod

MSBuild appears to only use old output files for custom build tools

て烟熏妆下的殇ゞ 提交于 2019-12-23 03:33:32
问题 I have an ANTLR grammar file as part of a C# project file and followed the steps outlined in the User Manual. <Project ...> <PropertyGroup> <Antlr3ToolPath>$(ProjectDir)tools\antlr-3.1.3\lib</Antlr3ToolPath> <AntlrCleanupPath>$(ProjectDir)AntlrCleanup\$(OutputPath)</AntlrCleanupPath> </PropertyGroup> <ItemGroup> <Antlr3 Include="Grammar\Foo.g"> <OutputFiles>FooLexer.cs;FooParser.cs</OutputFiles> </Antlr3> <Antlr3 Include="Grammar\Bar.g"> <OutputFiles>BarLexer.cs;BarParser.cs</OutputFiles> <

Using MSBuild with external xml parameter file

牧云@^-^@ 提交于 2019-12-23 03:21:34
问题 How do I have an MSBuild task use a parameter from an external xml parameter file? Example: Use the 'MyConnectionStringParameter' from an external xml file for my MSBuild task. MSBuild File: <?xml version="1.0"?> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Migrate"> <UsingTask TaskName="FluentMigrator.MSBuild.Migrate" AssemblyFile="../bin/FluentMigrator.MSBuild.dll"/> <PropertyGroup> <TargetPath>../bin/Target.dll</TargetPath> </PropertyGroup> <Target

In MsBuild, how do I run something PowerShell and have all errors reported [duplicate]

前提是你 提交于 2019-12-23 03:00:13
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Any good PowerShell MSBuild tasks? Powershell doesn't seem to have an easy way to trigger it with an arbitrary command and then bubble up parse and execution errors in a way that correctly interoperates with callers that are not PowerShell - e.g., cmd.exe , TeamCity etc. My question is simple. What's the best way for me with OOTB MSBuild v4 and PowerShell v3 (open to suggestions-wouldnt rule out a suitably

Writing to output build pane + error list in Visual Studio 2013 with ability to double click entry to go to error without using msbuild/new process

浪子不回头ぞ 提交于 2019-12-23 02:53:30
问题 I'm using a custom build tool which I call as a dll from within a Visual Studio 2013 extension package I'm creating and I would like to take the string output returned from this tool, parse it for the error, line number etc. and output it to the build pane + error list complete with the ability to double click to go to the source location in the file with the error. Currently I can output the information to the pane and error list but the double click to go to source functionality does not

Access Denied when try to use Web deploy

一世执手 提交于 2019-12-23 02:45:10
问题 I have been following Standard Environments for Automated Deployment and Testing and I have run into some errors. I have two servers, one Windows Server 2008 R2 and another Windows Server 2012 . On both I've installed Web Deploy 3 and the service Web Deployment Agent Service is running on both machines. I have the service account in my domain and I added the account on both machines to Administrators group. I also used this account for the Build and Test controller and agent. The 2008 server

Is there a way to convert omake build to ms build

半世苍凉 提交于 2019-12-23 02:36:47
问题 I would like to convert omake projects (clearcase) to msbuild (TFS). Please let me know whether any tool is available for the conversion. I would appricate if you have give me an example 回答1: omake project is a Rational® ClearCase® utility to build, maintain, update, and regenerate groups of programs. It includes many of the configuration management facilities provided by the clearmake utility. omake is intended for use in dynamic views. You can use omake in a snapshot view, but none of the

MSBuild Failure When PrecompileBeforePublish is enabled

╄→гoц情女王★ 提交于 2019-12-23 02:07:23
问题 I'm using following command to compile a project using msbuild with pre compile enabled msbuild C:\WebGoat.NET-master\WebGoat\WebGoat.NET.csproj /p:OutputPath=bin /p:DeployOnBuild=true /p:WebPublishMethod="FileSystem";PrecompileBeforePublish=true;EnableUpdateable=false;DebugSymbols=true /p:UseMerge=true;WDPMergeOption="MergeAllOutputsToASingleAssembly";SingleAssemblyName="ContosoWebPrecompiled" Build is getting failed with following error message "C:\WebGoat.NET-master\WebGoat\WebGoat.NET

How to build 2 solutions from a single TFS team build definition

邮差的信 提交于 2019-12-22 18:29:34
问题 I have a pretty large complicated application that has a smart client front end in one solution and a web services layer in another solution. We use 2 team build definitions in TFS 2010 to build the solutions. We are still using MS Build scripts not the new workflow based templates. How can we use a single build definition to build both solutions. We are open to either tricks inside MS Build scripts or moving to the new workflow templates. 回答1: You can simply set two Solutions to build by