msbuild

Find out the “Bit”ness of the current OS in MSBuild

走远了吗. 提交于 2020-01-02 03:39:13
问题 I have a build script that needs to hard code a path to an executable. The path is: C:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools\cabwiz.exe This has worked fine, but now I am running on a 64 bit OS (but my coworker and build server are on 32 bit still). I need the path to be this for me: C:\Program Files (x86) \Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools\cabwiz.exe But use the normal path for the others. Here is how I set it up: <PropertyGroup> <CabWiz>"C:

Pass custom msbuild target from Solution to Project

你离开我真会死。 提交于 2020-01-02 02:41:12
问题 I have a Solution with a large number of associated .csproj files. Each .csproj file has a <Target Name="PublishQA">... . The build fails when I try to compile the whole solution: > msbuild mysolution.sln /t:PublishQA` "c:\myproj.sln" (publishqa target) (1) -> c:\myproj.sln.metaproj : error MSB4057: The target "PublishQA" does not exist in the project. [c:\myproj.sln] When I build the .csproj project directly, it builds just fine. How do I tell msbuild to pass the target to the project files?

Visual Studio 2017 build tools not installing on windows server 2012

天大地大妈咪最大 提交于 2020-01-02 01:15:08
问题 I am trying my best to setup a build server. I went to install and downloaded the latest build tools but as soon as I try to install it shows me this So I though ok maybe it does not support it so I went here requirements If you scroll down to build tools it says it support windows 2012 am I missing something. thanks 回答1: Only Windows Server 2012 R2 (with Update 2919355): Essentials, Standard, Datacenter is Supported https://docs.microsoft.com/en-us/visualstudio/productinfo/vs2017-system

Assembly added via Add Reference not copied to output directory unless referred to in code

偶尔善良 提交于 2020-01-02 00:55:09
问题 Situation: Project 1 is an assembly in the solution Project 2 is an executable assembly project in the same solution Project 2 has a project reference (via Add Reference) to Project 1 Project 2 does not directly refer to namespaces/types in Project 1 in the code Project 2 uses Ninject to dynamically load Project 1 and use the implementation classes within it Problem: Even though Copy Local is set to True for the reference, and the referenced assembly does not exist in the GAC, the referenced

How or why is MSBuild choosing the x64 platform when I don't specify it instead of AnyCPU?

扶醉桌前 提交于 2020-01-02 00:50:09
问题 I'm running msbuild.exe via Rake from a regular PowerShell console. This is the command as printed from a diagnostic level run "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" "D:/Projects/machine.specifications/Source/Machine.Specifications/Machine.Specifications.csproj31881140" /maxcpucount /target:Build /verbosity:diagnostic /property:Configuration=Debug /property:TrackFileAccess=false /property:BuildInParallel=false /property:BuildRunner=Rake And the build is failing because

Adding and running custom target by msbuild

扶醉桌前 提交于 2020-01-01 19:27:08
问题 I am struggling with seemingly very basic task at the moment, that is addding a new custom target to csproj file and run it from the command line using msbuild. I did an extensive research on the net but I found no solution that is actually working. Let's say that I add the following target to my csproj file: <Target Name="TeamCity"> <Message Text="I am Running!"/> </Target> or even something that depends on Build: <Target Name="TeamCity" DependsOnTargets="Build"> <Message Text="I am Running!

DefineCustomFiles and CustomCollectFiles are not fired by TeamCity

流过昼夜 提交于 2020-01-01 17:28:52
问题 I'm trying to publish extra files with TeamCity. I also opened a subject here: Publish extra dll files not included in the web project but here I'm focused on the fact that DefineCustomFiles and CustomCollectFiles seem not fired. My build step looks like this: And my custom build file looks like this : <?xml version="1.0" encoding="utf-8"?> <!-- This file is used by the publish/package process of your Web project. You can customize the behavior of this process by editing this MSBuild file. In

ASP.NET 5 (vNext) Deployment via TFS 2015

Deadly 提交于 2020-01-01 10:04:53
问题 We're trying to work through the new tool chain for building and deploying an ASP.NET 5 (vNext) CoreCLR web site to a server cluster. Between the new compilation changes and the changes to TFS, I'm not sure how everything now gets built and deployed. The scenario is as follows: On-premise TFS for source control and build agent Targeting ASP.NET 5 under CoreCLR, hosted via IIS Questions are: Using TFS for continuous integration builds (and hopefully deployment to an on-premise IIS server), how

ASP.NET 5 (vNext) Deployment via TFS 2015

折月煮酒 提交于 2020-01-01 10:04:24
问题 We're trying to work through the new tool chain for building and deploying an ASP.NET 5 (vNext) CoreCLR web site to a server cluster. Between the new compilation changes and the changes to TFS, I'm not sure how everything now gets built and deployed. The scenario is as follows: On-premise TFS for source control and build agent Targeting ASP.NET 5 under CoreCLR, hosted via IIS Questions are: Using TFS for continuous integration builds (and hopefully deployment to an on-premise IIS server), how

Web Deployment Project & TeamCity

大憨熊 提交于 2020-01-01 09:40:53
问题 I am trying to build a web deployment project 2010 project for a solution. I have installed the Windows SDK and Web Deployment Project 2010 RTW on the build server, as well as copied over the missing .target files for MSBuild. When attempting to build the project it spits out the following error C:\Program Files\MSBuild\Microsoft\WebDeployment\v10.0\Microsoft.WebDeployment.targets(1589, 9): error MSB6004: The specified task executable location "C:\Program Files\MSBuild\Microsoft\WebDeployment