msbuild

MSBuild /m:4 fails because it builds the same project twice

前提是你 提交于 2020-01-03 08:55:28
问题 My team has a large solution (~500 csproj's). We use VS2012, and build using TFS Build, which uses MSBuild 4. Currently we build serially, but we want to build in parallel (using msbuild /maxcpucount:4 ). However, when I try it on my 4-proc machine, I get a weird failure: 11:2>CSC : fatal error CS0042: Unexpected error creating debug information file 'C:\Common\obj\Debug\Common.PDB' -- 'C:\Common\obj\Debug\Common.pdb: The process cannot access the file because it is being used by another

MSBuild /m:4 fails because it builds the same project twice

徘徊边缘 提交于 2020-01-03 08:55:05
问题 My team has a large solution (~500 csproj's). We use VS2012, and build using TFS Build, which uses MSBuild 4. Currently we build serially, but we want to build in parallel (using msbuild /maxcpucount:4 ). However, when I try it on my 4-proc machine, I get a weird failure: 11:2>CSC : fatal error CS0042: Unexpected error creating debug information file 'C:\Common\obj\Debug\Common.PDB' -- 'C:\Common\obj\Debug\Common.pdb: The process cannot access the file because it is being used by another

MSBUILD Splitting text file into lines

岁酱吖の 提交于 2020-01-03 05:51:08
问题 Note that I have already went through: Is there a way to print a new-line when using <Message...>? Read text file and split every line in MSBuild But for some strange reason I can't make it work. I have: <ReadLinesFromFile File="$(OutputPath)myfile.log"> <Output PropertyName="FileOutput" TaskParameter="Lines" /> </ReadLinesFromFile> <Message Text="$(FileOutput)"/> -- This works, entire file content is shown on the screen. Now I would like for each line in that file to report a warning/error.

xUnit.net Test Stripper [to remove test code embedded in binaries prior to deployment/shipping]

强颜欢笑 提交于 2020-01-03 05:19:12
问题 Is there a Test Stripper (as defined in xUnit Test Patterns) available that supports removing classes containing methods tagged as [Fact]s etc. plus the dependency on xunit.dll from binaries [as part of a build process] ? Further details of the full requirements and context are at this xUnit CodePlex post. Failing that (something that removes the tests and the reference to the DLL), does anyone have a utility/proven clean approach to removing the xunit.dll dependecy without too much monkeying

MSBuild task to Build other solution projects fails in VS but works with MSBuild.exe command line

痞子三分冷 提交于 2020-01-03 03:43:06
问题 I have a custom MSBuild task which among other things adds embedded resources to other projects in the solution. After adding the resources I'd like to then build those projects, but found I can't get this working within Visual Studio. To test, I stripped out the custom task entirely and redefined a simple AfterBuild target in the web project of a Silverlight solution. The target uses the MSBuild task to build the Silverlight application project in the solution, and looks like this: <Target

Building on Windows XP, when development is on VS2012?

守給你的承諾、 提交于 2020-01-03 01:34:07
问题 We're planning moving from Visual Studio 2005 to Visual Studio 2012 (Visual-C++-11). (We would very much like to skip 2010 if we can help it, since the newer version is already there and offers a better C++ experience.) But we've hit a little roadblock: Our build servers still run Windows 2003r2 (all inside dedicated virtual machines), and due to messy tool support/issues, we're in no position to upgrade the build servers to a newer OS. Developers mostly have switched to Windows7 by now, so

Cordova build windows on Windows 10 and VisualStudio 2017

烈酒焚心 提交于 2020-01-02 23:01:55
问题 Trying to build the Cordova App on Windows 10 always fails with (node:31) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): No valid MSBuild was detected for the selected target. on Windows 10 Pro 1709 with VisualStudio 2017 Community Edition. I exactly followed all instructions for Windows 10 in the cordova docs for windows I have installed VS with package Mobile Development with Javascript which includes the cordova tools. I also installed the additional Build

Targeting multiple frameworks with Cake script

我只是一个虾纸丫 提交于 2020-01-02 18:07:13
问题 A co-worker recently added .NET Standard support to one of our projects using the new VS2017 .csproj format: This seems to have broken my script as I get the following error when using the Cake MSBuild alias (http://cakebuild.net/api/Cake.Common.Tools.MSBuild/MSBuildAliases/C240F0FB): error : Project 'C:\example\path\myproj.csproj' targets '.NETFramework,Version=v4.6.1'. It cannot be referenced by a project that targets '.NETStandard,Version=v1.6'. Does Cake support building against multiple

Versioning an assembly info past the UInt16 barrier

十年热恋 提交于 2020-01-02 17:25:26
问题 In the past ive usually used the changeset or svn number to version the binary e.g. 1.1.123.3 where the large number is the changeset or rev from the source control system. However, with the system im now using we are well past the uint barrier at something like 70000+ changesets so that causes an overflow and a compiler error when used as the asssembly version attribute or assembly file version attribute. See: http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute

TFS 2010 Build Definition: MSBuild Arguments seems to be ignored

时光毁灭记忆、已成空白 提交于 2020-01-02 12:02:13
问题 I am trying to create a package after a build in TFS 2010. When I launch the following command on my computer: MSBuild.exe Fenicorp.Front.Web.FunnyApplication.sln /p:DeployOnBuild=true;DeployTarget=Package the solution is compiled and there is a package inside the obj folder. However, when I specify /p:DeployOnBuild=true;DeployTarget=Package as MSBuild Arguments in a Build Definition and queue a new build, there is no package in my drop folder. Moreover the build status is Successfull, as if